{box-sizing: border-box;}

/* Button used to open the chat form - fixed at the bottom of the page */
.open-button {
    background-color: #555;
    color: white;
    padding: 16px 20px;
    border: none;
    cursor: pointer;
    position: fixed;
    bottom: 0;
    right: 0;
    width: 280px;
    font-size: 15px;
    border-radius: 5px;
}
.open-button:hover{
    background-color: #f27dad;
    border-radius: 5px;
}

.chat-main-container {
    padding: 16px 20px;
    border: none;
    position: fixed;
    bottom: 0;
    z-index: 99999;
    right: 0;
}

/* The popup chat - hidden by default */
.form-popup {
    display: none;
    position: fixed;
    height: 430px;
    bottom: 0;
    right: 0;
    z-index: 999999999;
    width: 280px;
    background-color: #f7f7f7;
}

/* Add styles to the form container */
.form-container {
    position: relative;
    z-index: 0;
    max-width: 300px;
    padding: 10px;
    background-color: white;
}

/* Add a red background color to the cancel button */
.form-container .cancel {
    background-color: red;
}

/* Add some hover effects to buttons */
.form-container .btn:hover, .open-button:hover {
    opacity: 1;
}

.alert-close-container{
    position: relative;
    background-color: #506073;
    padding: 16px 20px;
    border: none;
    border-radius: 5px 5px 0 0;
    margin-top: -5px;
    height: 10px;
}

.alert-close-container .alert-close{
    right: 10px;
    top: -2px;
    color: #ffffff;
    font-size: 24px;
    position: absolute;
}
.chat-container .alert-close-container .alert-close{
    position: absolute;
    left: 15px;
    top: 6px;
}

.chat-container .chat_user_close{
    position: absolute;
    top: -7px;
    right: 4px;
    background: unset;
    font-size: 22px;
    border: none;
    color: white;
}
.chat-container .chat_user_close:hover{
    box-shadow: none;
    background: none;
}
.alert-close-container .alert-close a.chat_user_name{
    font-size: 14px;
    float: left;
    font-weight: bold;
    color: white;
}

.alert-close {
    color: black;
    cursor: pointer;
    margin-top: 0;
}

.dsp-user-container{
    cursor: pointer;
}

.chat-container1 img.dsp-image-container{
    width: 44px;
    height: 44px;
    padding:10px;
}
.chat-container1 .dsp-user-container{
    font-size: 14px;
    color: #000;
    opacity: 0.9;
    height: 45px;
    border-bottom: 1px solid #d6cdcd;
    background: #fff;
    position: relative;
}
.chat-container1 .dsp-user-container span{
    position: absolute;
    top: 10px;
}

#chat-main-container .form-popup{
    border: 1px solid #d0d2d4;
}

.chat-container{
    margin-right: 280px;
    position: fixed;
    height: 400px;
    bottom: 0;
    right: 0;
    border: 3px solid #f1f1f1;
    z-index: 0;
    width: 280px;
    background-color: white;
}

.open-container-button{
    width: 280px;
    bottom: 0;
    right: 0;
    position: fixed;
    display: none;
    font-size: 14px;
    border-radius: 5px;
    text-transform: none;
}

.open-container-button.active{
 animation: blink 1s linear infinite;
}

.open-container-button:hover{
    text-transform: unset;
    border-radius: 5px;
}

.user-chat-box{
    overflow-y: scroll;
    height: 78%;
    overflow-x: hidden;
}

.send-message-container .chat-sent-button{
    font-family: Lato, sans-serif;
    background-color: #008CBA;
    border: none;
    color: white;
    padding: 15px 32px;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    font-size: 16px;
    margin: 4px -6px;
    cursor: pointer;
}

.send-message-container .chat-sent-button:hover{
    border-radius:0;
}

.send-message-container .chat-text{
    width: 120%;
    height: 45px;
    padding: 10px;
    margin: 0px 0px 2px -10px;
    box-sizing: border-box;
    border: 3px solid #ccc;
    outline: none;
    font-size: 12px;
}

#chat-main-container .tab{
    background-color: #fff;
    border: none;
}

#chat-main-container .tab .tablinks{
    background-color: #ffffff;
    color: #f27dad;
    text-transform: capitalize;
    border-radius: 0px;
    padding: 8px 16px;
    width: 49.5%;
}
#chat-main-container .tab  .tablinks-active{
    color: #fff;
    background-color: #ef5d98;
}

#chat-main-container .tab .tablinks:hover,
#chat-main-container .tab .tablinks:active
{
    text-transform: capitalize;
    color: #fff;
    background-color: #ef5d98;
    text-decoration: none;

}
.dsp-user-container div{
    background-color: #fff;
    border-bottom: 1px solid lightgray;
    padding: 5px 0 0 0;

}

.dsp-user-container img.dsp-image-container{
    width: 44px;
    height: 44px;
    padding: 10px;
    float: left;
}

.dsp-user-container p{
    font-size: 12px;
    color: #566c8a;
    padding-bottom: 0;
    padding: 0px 10px;
}
#search-name, #search-chat-name{
    height: 32px;
    padding: 10px;
    font-size: 14px;
    border-left: 0;
    border-right: 0;
    color: #9ab3d5;
    border-top: 1px solid #eeeeee;
    width: 100%;
}
#recent-chat-container .dsp-user-container{
    font-size: 14px;
    color: #000;
    opacity: 0.9;
    font-weight: 600;
    line-height: 18px;
}

.send-message-container{
    padding-top: 7px;
}
.send-message-container .chat-sent-button{
    vertical-align: top;
    padding: 8px 16px;
    border-radius: 5px;
}

.user-chat-container-1 div{
    /*text-align: right;
    background-color: #825e5e;
    color: #fff;
    max-width: 90%;
    float: right;
    padding: 5px 8px;
    border-radius: 12px;*/
}

.online-users{
    display: none;
}

.recent-chats{
    border-left: 1px solid #d6d6d6;
}

.hidden-chat-box-container{
    bottom: 0;
}

.plus-icon{
    background-color: #008CBA;
    width: 36px;
    height: 36px;
    font-size: 14px;
    float: right;
    padding: 0 !important;
    text-align: center;
}

.plus-icon:hover{
    background-color: #008CBA;
    padding: 0 !important;
}

.hidden-chat-box{
    background-color: #109F9F;
    display: block;
    height: 36px;
    width: auto;
    text-align: center;
    border: 1px solid #ccc;
}

.hidden-chat-box .btn1{
    background: unset;
    padding: 0 15px !important;
    font-size: 14px;
    display: inline-block;
    margin-top: 0;
    line-height: 18px;
}

.hidden-chat-box .btn1:hover{
    box-shadow: none;
}

.hidden-chat-box .btn2{
    font-size: 20px;
    background: unset;
    padding: 0px 10px !important;
    color: white;
}

.hidden-chat-box .btn2:hover{
    box-shadow: none;
}

.message-container-right .message-text{
    background: #56a8e3;
    color: #ffffff;
    display: inline-block;
    border-radius: 10px;
    line-height: 1.28;
    margin: 10px 15px 0px 0px;
    min-height: 14px;
    padding: 4px 9px 4px 9px;
    font-size: 13px;
    max-width: 200px;
    text-align: left;
    word-break: break-all;
}

.message-container-right .message-image{
    display: inline-block;
    border-radius: 10px;
    line-height: 1.28;
    margin: 10px 15px 0px 0px;
    min-height: 14px;
    padding: 4px 9px 4px 9px;
    font-size: 13px;
    max-width: 200px;
    text-align: left;
    border: 2px solid #e0d9d9;
}

.message-container-right .message-time{
    color: #A9A9A9;
    font-size: 10px;
    bottom: 0px;
    position: relative;
    right: 15px;
}

.message-container-left .message-text{
    background: #d6d6d6;
    color: #060606;
    display: inline-block;
    border-radius: 10px;
    line-height: 1.28;
    margin: 10px 0px 0px 10px;
    min-height: 14px;
    padding: 4px 9px 4px 9px;
    font-size: 13px;
    max-width: 220px;
}

.message-container-left .message-image{
    display: inline-block;
    border-radius: 10px;
    line-height: 1.28;
    margin: 10px 0px 0px 10px;
    min-height: 14px;
    padding: 4px 9px 4px 9px;
    font-size: 13px;
    max-width: 220px;
    border: 2px solid #e0d9d9;
}

.message-image img {
    height: 87px;
    width: 82px;
}

.message-container-left .message-time{
    color: #A9A9A9;
    font-size: 10px;
    bottom: 0px;
    position: relative;
    left: 15px;
}

.message-container-right{
    text-align: right;
}

.message-container-left{
    text-align: left;
}

.message-container-error{
    text-align: center;
}

.message-container-error .message-text{
    background: #ff3b3b;
    color: #ffffff;
    display: inline-block;
    border-radius: 10px;
    line-height: 1.28;
    margin: 10px 0px 0px 10px;
    min-height: 14px;
    padding: 4px 9px 4px 9px;
    font-size: 13px;
    max-width: 200px;
}

.dsp-user-container span.chat-online{
    float: right;
    list-style: circle;
    background: rgb(66, 183, 42) none repeat scroll 0% 0%;
    border-radius: 50%;
    display: inline-block;
    height: 6px;
    margin-right: 12px;
    margin-top: 16px;
    width: 6px;
}

.message-text a{
    color: thistle;
}

.recent-chats .recent-chat-container .dsp-user-container  .active{
    background-color: #8a8a8a;
}

@keyframes blink{
    0%{opacity: 0;}
    50%{opacity: .5;}
    100%{opacity: 1;}
}


.hidden-chat-box-container .active{
    /*background-color: #2c3335;*/
    animation: blink 1s linear infinite;
}
.user-chat-box .message-container-right .unread{
    background-color: #90caf3;
}

.no-user-text{
    color: #ada1a1;
    margin: 62px;
    text-align: center;
    font-size: 18px;
}

.send-message-container .image-selector img{
    width: 126%;
    height: 34px;
    margin: 8px 0px 1px 6px;
}

.chat-container .file-input{
    margin-top: 0px;
    display: none;
    height: 29%;
    border: 2px solid #cccccc;
}

.file-input a{
    color: #cccccc;
    font-size: 15px;
    text-align: center;
    position: absolute;
    margin: 25px 5px 26px 47px;
    cursor: pointer;
}
.file-input a:hover{
    color: blue;
}

.file-input img{
    height: 84px;
    width: 220px;
    display: none;
    margin: 14px 0px 0px 28px;
}

.file-input input[type=file]{
    display: none;
}

.conn-error{
    text-align: center;
    position: relative;
    margin: 84px 0px;
    font-size: 18px;
    color: #b9b9b9;
}

::placeholder {
    color: #ada1a1;
    opacity: 1;
}

.dsp-user-container span.msg-unread{
    float: right;
    border-radius: 50%;
    display: inline-block;
    height: 6px;
    margin-right: 35px;
    margin-top: 12px;
    font-size: 13px;
    color: darkred;
}

/*.chat-container{*/
/*    overflow-y: scroll;*/
/*    height: 400px;*/
/*}*/