.chat-main-container{
    max-height: 100vh;
    max-height: -webkit-fill-available;
}
.chat-container{
    width: 100%;
    overflow-x: hidden;
    max-height: -webkit-fill-available;
}
.chat-container h1{
    font-size:18px;
    font-weight: bold;
}
.chat-container h2{
    font-size:16px;
    font-weight: bold;
    margin-bottom: 10px;
    margin-top:5px;
}
.chat-resources{
 padding: 10px 20px; 
 margin-top:10px;
 overflow-x: scroll;
 height: calc(100vh - 100px);

}
.chat-resources .alert{
    font-size:14px;
}
.chat-materials{
    margin-left:0;
    font-size:14px;
    padding-left: 20px;
}
.chat-materials li{
    margin-bottom: 5px;
}
.chat-wrap{
    /*   height:calc(100vh - 56px); 
        max-height: -webkit-fill-available;
    */
    position: relative;
    display: flex;
    flex-direction: column;
    height: calc(100vh - 56px);
    max-height: -webkit-fill-available;
    width: 100%;
    border-left:1px solid rgba(0,0,0,0.2);
    border-right:1px solid rgba(0,0,0,0.2);
    background: #fff;
    background:url('/img/chat-bg.png');
    background-position: left;
    
    
}
.chat-header{
    border-bottom:1px solid rgba(0,0,0,0.2);
    padding:10px 20px;
    background-color: #fff;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    height: 76px;
}

.chat-body{
    padding:10px 20px 20px 20px;
    overflow-y:scroll; 
    flex-grow: 1;
   /* height: calc(100vh - 132px); */
   

}
.chat-body .alert-warning{
    font-size:14px;
    padding:5px;
}

.chat-send{
    position: relative;
    height:75px;
    padding:10px 20px;
    background-color: #fff;
   /*  position: absolute;
    bottom:0; */
    width: 100%;
}


.chat-wrap:fullscreen {
    width: 100vw;
    height: 100vh;
    min-height: 100vh;
    /* mobile viewport bug fix */
    min-height: -webkit-fill-available;
}

.no-padding{
    padding:0;
}
.no-padding-right{
    padding-right:0;
}
.no-padding-left{
    padding-left:0;
}
.chat-message{
    display: flex;
    flex-direction: row;
    margin-bottom: 10px;
   
}
.chat-sidebar{
    height:calc(100vh - 56px);
    max-height: -webkit-fill-available;
    background-color: #fff;
    padding: 10px;
    width: 100%;
    display:flex;
    flex-direction: column;
}
.chat-sidebar select{
    line-height: 20px;
}
.chat-sidebar-head{
    height: 87px;
}
.chat-list{
    margin-top:10px;
    overflow-x: hidden;
    overflow-y: scroll;
    flex-grow: 1;
}

.chat-item{
    display: flex;
    flex-direction: row;
    padding:10px;
    border-radius: 0px;
    cursor: pointer;
    margin-bottom: 5px;
}
.chat-item:hover, .chat-item.active{
    background: #f1f1f1;
}
.chat-item-avatar{
    margin-right:10px;
}
.chat-item-avatar img{
    width: 40px;
    height: 40px;
    border-radius: 50%;
    
}

.chat-item-name{
    flex-shrink: 1;
    width: 100%;
    max-width: calc(100% - 50px);

}
.chat-item-name span{
    font-size:16px;
    text-overflow: ellipsis;
    white-space: nowrap;
    overflow-x: hidden;
    overflow-y: hidden;
}
.chat-item-description{
    font-size:12px;
    text-overflow: ellipsis;
    white-space: nowrap;
    overflow-x: hidden;
    overflow-y: hidden;
    max-width: 300px;
}


.chat-message-user{
    justify-content: flex-end;
}
.chat-message-content{
    background:#e4e6eb; padding:15px; border-radius:20px;  margin-bottom:10px;
    max-width: 80%;
}
.chat-message-user .chat-message-content{
    background:#f68600; color:#fff;
}


.chat-message-author-avatar{
    margin-right: 10px;
    align-self: flex-end;
    margin-bottom: 10px;
}

.chat-body:fullscreen {
    height: calc(100vh - 146px);
}
.chat-message-author{
    font-size:12px; color:coral; font-weight:bold;
}
.chat-message-author-user{
    color:#2196f3;
}
.chat-date{
    text-align: center;
    margin-bottom: 5px;
    font-weight: bold;
    font-size: 12px;
}
.chat-message-typing{
    font-style: italic;
    color:#999;
    margin: 0 0 10px 0;
}
.chat-message-author-avatar img{
    width: 40px;
    height: 40px;
    border-radius: 50%;
    margin-right: 10px;
}
.chat-header{
    border-bottom:1px solid rgba(0,0,0,0.2);
    padding:10px 20px;
    background-color: #fff;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    max-height: 76px;
}
.chat-header-contacts{
    margin-right: 10px;

}
.chat-header-contacts a{
    font-size: 24px;
    font-weight: bold;
    
    display: block;
    padding-left:5px;
    padding-right:5px;
    padding-top: 14.5px;
    padding-bottom: 14.5px;
    line-height: 25px;
}
.chat-header-person{
    display: flex;
    flex-direction: row;
}
.chat-header-avatar img{
    width: 50px;
    height: 50px;
    border-radius: 50%;
    margin-right: 10px;
}

.chat-header-name{
    margin-top:3px;
    
}
.chat-header-toolbar{
  
    display: flex;
    flex-direction: row;
}
.chat-header-font{
    font-size: 24px;
    font-weight: bold;
    width: 90px;
   
    
    padding-top: 14.5px;
    padding-bottom: 14.5px;
    line-height: 25px;
}
.chat-header-font a{
    color:#bdbdbd;
    margin:0 5px;
    cursor: pointer;
    text-decoration: none;
}
.chat-header-font a:hover{
    text-decoration: none;
    color: #999;
}
.chat-header-share{
   
    width: 25px;
   
    padding-top: 14.5px;
    padding-bottom: 14.5px;
    line-height: 25px;
    font-size: 24px;
    margin-right: 20px;
}
.chat-header-share a{
    color:#bdbdbd;
    margin:5px 0;
    cursor: pointer;
}
.chat-header-share a:hover{
    color: #999;
}

.chat-header-action a.dropdown-toggle{
    color:#bdbdbd;
    font-size: 24px;
    padding-left:15px; 
    padding-right:15px;
}

.chat-header-action a.dropdown-toggle .caret {
   display: none;
}
.chat-header-action a.dropdown-toggle:hover, .chat-header-action a.dropdown-toggle:focus, .chat-header-action a.dropdown-toggle:active{
    background: none;
    color: #999;
    

}
.chat-header-name span{
    font-size:18px;
    font-weight: bold;
}
.chat-header-status{
    font-size:13px;
    color:#009688;
}

.chat-send .chat-limit{
    font-size:12px;
    line-height: 12px;;
    position: absolute;
    top:-5px;
    right:25px;
    font-style: italic;
    color:#333;
}
.chat-send label, .chat-send .help-block{
    display: none;
    width: 100%;
}
.chat-send textarea{
    resize: none;
    padding-top:15px;
    padding-bottom:15px;
    padding-right: 60px;
}
.chat-message-init p{
    margin-bottom: 0;
}
.chat-q-list{
    margin-top:0;
    margin-bottom: 0;
}
.chat-q-list a{
    cursor: pointer;
}

.chat-send-button{
    background:none;
    border:0;
    padding:0;
    margin:0;
    position: absolute;
    bottom:22px;
    right:40px;
    width: 30px;
    height: 30px;

}
.chat-send-button img{
    width: 30px;
    height: 30px;
}


/* If screen size less than 767px write css
 

*/


@media (max-width:767px) {
    .chat-header-action .navbar-nav .open .dropdown-menu{
        position: absolute !important;
        background: #fff !important;
        left: -218px !important;
        float: left !important;
        width: 250px !important;
        /* right: 0; */
        border: 1px solid #ccc !important;
    }
    .chat-header-action .navbar-nav>li{
        margin-left: -20px;
        margin-top: -5px;
    }


 }




 .chat-counter-widget{
    border: 1px solid #ffbb10;
    padding:5px 10px;
    width: 225px;
    border-radius: 20px;
    margin-top:20px;
 }
 .chat-counter-widget img{
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border:1px solid #fff;

 }
 .chat-counter-widget img.cwi-1{

 }
 .chat-counter-widget img.cwi-2{
    margin-left:-20px;
 }
 .chat-counter-widget img.cwi-3{
    margin-left:-20px;
    
 }
 .chat-counter-widget span{
    font-weight: bold;
    margin-left:5px;
    font-size:16px;
    line-height: 40px;
 }

 .chat-promo{
    border-radius: 0px;
    
    padding: 2px;
    box-shadow: 0px 0 2px rgba(0,0,0,.2);
 }
.direction-section{
    border-bottom-right-radius: 0px;
    border-bottom-left-radius: 0px;
    box-shadow: 1px 0 2px rgba(0,0,0,.2) !important;
    margin-bottom: 0 !important;
}
.direction-benefits{
    margin-top:30px!important;
    margin-bottom:0px!important;
}
.direction-benefit{
    border-radius: 0px;
    margin-bottom: 15px !important;
    box-shadow: 1px 0 2px rgba(0,0,0,.2) !important; 
}
 .chat-index-item{
    display:block;
    text-decoration:none; 
  
    margin-bottom:20px;
    display: flex;
    flex-direction: column;
    width: 100%;
    box-shadow: 1px 2px 4px rgba(0,0,0,.1)  !important; 
 }
 .chat-index-item:hover{
    text-decoration: none;
 }
 .chat-index-item-image{
   
 }
.chat-index-item-image img{
    width: 100%;
  

}
.chat-index-item-name{
    display: block;
    width: 100%;
    height: 80px;
    padding:20px 010px;
    background-color: #fff;
    color:#333;
    font-size:16px;
    line-height: 20px;
    font-weight: bold;
    display: flex;
    justify-content: center;
    text-align: center;
    align-items: center;   /* <---- NEW    */
}
.chat-index-item-name:hover{
    color:#666;
    text-decoration: none;

}
.chat-index-filter{
    margin-top:15px;
}
.chat-index-filter .form-group{
    margin-bottom: 15px !important;
}



