.chat-window {
    position: fixed;
    bottom: 0;
    right: 1em;
    width: 250px;
    height: 420px;
    transition: all ease-out 250ms;
    z-index: 1000;
}

.chat-window-first{
    right:18em !important;
}

.chat-window-second{
    right:35em !important;
}

.chat-window-third{
    right:52em !important;
}
.chat-window.docked {
    transform: translateY(375px);
}
.chat-window.docked .chat-header span {
    opacity: 0;
}

.chat-window.docked .chat-header .icons-chat-base {
    opacity: 0;
}

.chat-window p {
    margin: 0;
}
.chat-window .chat-header {
    height: 45px;
    border-radius: 6px 6px 0 0;
    background: #C1CBDB;
    position: relative;
    cursor: pointer;
    box-shadow: 0 7px 14px 0 rgb(65 69 88 / 10%), 0 3px 6px 0 rgb(0 0 0 / 7%);

}
.chat-window .chat-header p {
    display: block;
    padding: 0 0 0 1em;
    color: black;
    font-weight: 700;
    line-height: 45px;
}
.chat-window .chat-header i {
    padding-right: 1em;
}
.chat-window .chat-header span {
    opacity: 1;
    position: absolute;
    display: block;
    top: calc(50% - (1em / 2));
    right: calc(1.5em - (1em / 2));
    width: 1em;
    height: 1em;
    transition-delay: 250ms;
    transition: all ease 350ms;
    color: gray;
}
.chat-window .chat-header .icons-chat-base {
    opacity: 1;
}


.chat-window .chat-header span:before, .chat-window .chat-header span:after {
    /* content: '';
    display: block;
    position: absolute;
    top: calc(50% - (5px / 2));
    left: -11%;
    width: 120%;
    height: 5px;
    background: gray;
    transform-origin: 50% 50%;
    border-radius: 20px; */
}
.chat-window .chat-header span:before {
    transform: rotate(45deg);
}
.chat-window .chat-header span:after {
    transform: rotate(-45deg);
}
.chat-window .chat-header:before {
    /* content: '';
    position: absolute;
    display: block;
    top: calc(50% - (.7em / 2));
    left: calc(1em - (.7em / 2));
    width: 0.7em;
    height: 0.7em;
    border-radius: 100%;
    background: gray; */
}
/* .chat-window .chat-header.online:before {
    background: #43a047;
}
.chat-window .chat-header.offline:before {
    background: #c62828;
} */
.chat-window-list-body {
    height: calc(450px - ( 45px + 33px));
    /* border: 1px solid #263238; */
    box-shadow: 0 7px 14px 0 rgb(65 69 88 / 10%), 0 3px 6px 0 rgb(0 0 0 / 7%);
    background: #fff;
    border-top: 0;
    border-bottom: 0;
    position: relative;
}

.chat-window .chat-body {
    height: calc(450px - ( 45px + 70px));
    /* border: 1px solid #263238; */
    box-shadow: 0 7px 14px 0 rgb(65 69 88 / 10%), 0 3px 6px 0 rgb(0 0 0 / 7%);
    background: #fff;
    border-top: 0;
    border-bottom: 0;
    position: relative;
}

.chat-window .chat-body .message-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow-y: scroll;
    overflow-x: hidden;
}
.chat-window .chat-body .message {
    position: relative;
    padding: 1em 0.7em 2em;
    margin-bottom: 0.5em;
    border-bottom: 1px dotted #cfd8dc;
}
.chat-window .chat-body .message .profile {
    position: absolute;
    top: 1em;
    left: 0.7em;
}
.chat-window .chat-body .message .profile img {
    width: 40px;
    height: auto;
    border-radius: 100%;
}
.chat-window .chat-body .message .message-meta {
    width: calc(100% - (40px + 1em));
    height: 25px;
    float: right;
}
.chat-window .chat-body .message .message-meta p {
    display: inline-block;
    font-size: 0.75em;
    font-weight: 700;
    color: #90a4ae;
    margin-top: 5px;
}
.chat-window .chat-body .message .message-meta p:last-child {
    font-size: 0.5em;
    vertical-align: bottom;
    margin-top: 7px;
    float: right;
}
.chat-window .chat-body .message .message-content {
    width: calc(100% - (40px + 1em));
    height: 40px;
    float: right;
}
.chat-window .chat-body .message .message-content p {
    text-align: left;
    line-height: 1.2;
    font-size: 0.9em;
    color: #263238;
}
.chat-window .chat-body .message .message-content p + p {
    margin-top: 0.5em;
}
.chat-window .chat-body .message:after {
    content: '';
    display: block;
    width: 100%;
    clear: both;
}
.chat-window .chat-body .message.user .profile {
    left: auto;
    right: 0.7em;
}
.chat-window .chat-body .message.user .message-meta, .chat-window .chat-body .message.user .message-content {
    float: left;
}
.chat-window .chat-body .message.user .message-meta p {
    float: right;
}
.chat-window .chat-body .message.user .message-meta p:last-child {
    float: left;
}
.chat-window .chat-body .message.user .message-content p {
    text-align: right;
}
.chat-window .chat-footer {
    height: 70px;
    /* border: 1px solid #263238; */
    border-top: 0;
    border-bottom: 0;
    margin-top: -30px;
}
.chat-window .chat-footer .progress-indicator {
    opacity: 1;
    background: rgba(255, 255, 255, .9);
    height: 30px;
    text-align: center;
    font-size: 0.7em;
    font-weight: 300;
    line-height: 30px;
    position: relative;
    z-index: 4;
    transition: all ease 150ms;
}
.chat-window .chat-footer .form-area {
    height: 40px;
    position: relative;
    background: white;
    border-top: 1px  solid #d8e2ef;
    border-right: 1px  solid #d8e2ef;

}

.chat-window .chat-footer .form-area textarea {
    width: 88%;
    height: 40px;
    width: calc(100% - (.7em + 2.5em + 2px));
    border: 0;
    padding: 0 0.7em;
    font-size: 1em;
    outline: none;
    font-family: 'Open Sans', sans-serif;
}

.chat-window .chat-footer .form-area input {
    height: 40px;
    width: calc(100% - (.7em + 2.5em + 2px));
    border: 0;
    padding: 0 0.7em;
    font-size: 1em;
    border-top: 1px dotted #607d8b;
    outline: none;
    font-family: 'Open Sans', sans-serif;
}
.chat-window .chat-footer .form-area input:focus + button:after {
    border-left: 1.6em solid #66bb6a;
}
.chat-window .chat-footer .form-area button {
    border: 0;
  position: absolute;
    display: block;
    /* width: 2.5em; */
    height: 40px;
    top: 0;
    right: 0;
    z-index: 2;
    background: white;
    outline: none;
    color: #9da9bb;
}
/* .chat-window .chat-footer .form-area button:before {
    position: absolute;
    top: calc(50% - .4em);
    left: 0.4em;
    content: '';
    display: block;
    width: 0;
    height: 0;
    border-top: 0.4em solid transparent;
    border-right: 0.4em solid transparent;
    border-bottom: 0.4em solid transparent;
    border-left: 0.4em solid #fff;
    z-index: 3;
}
.chat-window .chat-footer .form-area button:after {
    content: '';
    display: block;
    width: 0;
    height: 0;
    border-top: 0.8em solid transparent;
    border-right: 0.8em solid transparent;
    border-bottom: 0.8em solid transparent;
    border-left: 1.6em solid #b0bec5;
    z-index: 2;
} */
.hide {
    opacity: 0 !important;
}

.chat-base-file-upload {
    position: absolute;
    right: 1.8rem;
    z-index: 2;
    top: 0.45rem;
    color: #9da9bb;
}
p.chat-message.bg-200.p-2.rounded-soft a{
    text-decoration: underline;
}

  p.chat-message.bg-primary.text-white.p-2.rounded-soft a{
    color: white;
    text-decoration: underline;
  }
/* 
  ##Device = Tablets, Ipads (portrait)
  ##Screen = B/w 768px to 1024px
*/
.icons-chat-base {
    position: absolute;   
    padding: 10px;
    top: 1px;
    right: 27px;
    cursor: pointer;
    
  }

@media (min-width: 768px) and (max-width: 1024px) {
  
    /* CSS */
    .chat-window-third{
        display: none;
    }
  }
  
  /* 
    ##Device = Tablets, Ipads (landscape)
    ##Screen = B/w 768px to 1024px
  */
  
  @media (min-width: 768px) and (max-width: 1024px) and (orientation: landscape) {
    
    /* CSS */
    .chat-window-third{
        display: none;
    }

       
    .chat-window-second{
        display: none;
    }

    .chat-window-first{
        display: none;
    }

    .chat-window-list{
        display: none;
    }
  }
  
  /* 
    ##Device = Low Resolution Tablets, Mobiles (Landscape)
    ##Screen = B/w 481px to 767px
  */
  
  @media (min-width: 481px) and (max-width: 767px) {
    
    /* CSS */
    .chat-window-third{
        display: none;
    }
    
    .chat-window-second{
        display: none;
    }

    .chat-window-first{
        display: none;
    }

    .chat-window-list{
        display: none;
    }
  }
  
  /* 
    ##Device = Most of the Smartphones Mobiles (Portrait)
    ##Screen = B/w 320px to 479px
  */
  
  @media (min-width: 320px) and (max-width: 480px) {
    .chat-window-third{
        display: none;
    }
    .chat-window-second{
        display: none;
    }

    .chat-window-first{
        display: none;
    }

    .chat-window-list{
        display: none;
    }
    /* CSS */
    
  }