
/* html {
    -webkit-touch-callout: none;
    -webkit-user-select: none;
} */

.chat_overlay{
    background-color: rgba(0,0,0,.6);
    width: 100%;
    height: 100vh;
    position: fixed;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    z-index: 999;
    display: none;
}

.chat_box{
    height: calc(70% - 1rem);
    background: url('../img/new_images/whatsapp_bg.jpg') #fff;
    background-repeat: repeat;
    background-position: center;
    right: 5px;
    bottom: 0px;
    padding: 0 !important;
    position: fixed !important;
    border: none !important;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0,0,0,.7)!important;
    z-index: 999 !important;
    display: none;
}

.chat_box .chat_box_header{
    background-color: #2550de;
    padding: 10px 17px 7px 0px !important;
    height: 47px;
    width: 100% !important;
    position: absolute;
    top: 0px;  /* i put 10 bcos of letsmeet chats */
    z-index: 99;

    -webkit-touch-callout: none; /* iOS Safari */
    -webkit-user-select: none; /* Safari */
     -khtml-user-select: none; /* Konqueror HTML */
       -moz-user-select: none; /* Old versions of Firefox */
        -ms-user-select: none; /* Internet Explorer/Edge */
            user-select: none; /* Non-prefixed version, currently
                                  supported by Chrome, Edge, Opera and Firefox */
}

.empty_chats{
    text-align:center !important;
    padding-top:10px;
    font-size:14px;
    color:#444;
    margin-top: 40px !important;
    display: block;
    opacity: 0.5;
    /* background: url('../images/watermark.png') center bottom; */
    background: url('../img/new_images/watermark.png') center bottom;
    background-repeat: no-repeat;
    background-size: 40%;
    height: 60px;
    position: relative;
    left: 50%;
    transform: translate(100%, 100%);
}

.empty_chats label{
    position: relative;
    top: -20px;
    font-size: 15px !important;
    color:#000;
}

.chat_box h4{
    font-size: 15px;
    color:#fff;
}
.chat_box h4 img{
    border-radius: 30px;
    height: 32px;
    width: 32px;
    position: relative;
    top: -3px;
}

.chat_box .user_chat_name{
    position: relative;
    top: -13px;
    cursor: default;
}

.chat_box .min_chat i, .chat_box .close_chat i, .chat_box .max_chat i {
    font-size: 1.2em;
    color:#fff;
    cursor: pointer;
    -webkit-transition: .2s;
    transition: .2s;
    position: relative;
    font-weight: 400 !important;
    top: 0px;
}

.chat_box .min_chat i, .chat_box .max_chat i {
    left: -9px;
}

.chat_box .min_chat i {
    top: 2px;
    left: -8px;
}


.chat_box .min_chat i:hover, .chat_box .close_chat i:hover, .chat_box .max_chat i:hover {
    font-size: 1.4em;
    -webkit-transition: .2s;
    transition: .2s;
}
.chat_box .body_chat {
    padding: 3px 10px 10px 10px !important;
    font-size: 14px !important;
    min-width: 110% !important;
    border-radius: 0 !important;
    height: 100%;
    position: relative;
    bottom: 0px;
    color: #222 !important;
    overflow: hidden;
    overflow-y: scroll;
}
.chat_box .body_chat .user_chat, .chat_box .body_chat .customer_chat {
    border-radius: 10px;
    width: 95%;
    position: relative;
    padding: 7px 20px 17px 7px;
    margin: 0px 10px 8px 28px;
    line-height: 18px;
    -webkit-touch-callout: none; /* iOS Safari */
    -webkit-user-select: none; /* Safari */
     -khtml-user-select: none; /* Konqueror HTML */
       -moz-user-select: none; /* Old versions of Firefox */
        -ms-user-select: none; /* Internet Explorer/Edge */
            user-select: none; /* Non-prefixed version, currently
                                  supported by Chrome, Edge, Opera and Firefox */
}

.chat_box .body_chat .customer_chat {
    /* right: -7px !important; */
    left: -15px !important;
    right: -100% !important;
    width: 89% !important;
    background-color: rgb(208, 208, 208) !important;
    bottom: 5px !important;
}
.chat_box .body_chat .user_chat {
    right: -8px !important;
    /* left: 10px !important; */
    /* left: 100%; */
    background-color: rgba(21, 89, 156, 0.84) !important;
    color:#fff;
    bottom: 5px !important;
    width: 89% !important;
}

.chat_box .footer_chat{
    width: 108%;
    position: absolute;
    position: relative;
    bottom: 5px;  
}

.chat_box .footer_chat textarea{
    padding: 8px 5px 5px 8px !important;
    font-size: 15.5px !important;
    background-color: #fff !important;
    width: 100% !important;
    border-radius: 0px !important;
    height: 40px;
    line-height: 21px !important;
    padding-right: 55px !important;
    margin-left:-1px;
    border: none !important;
    outline: none !important;
    border: none !important;
    border-top:1px solid #ccc !important;
    position: relative;
    z-index: 9;
}

.chat_box .footer_chat textarea:focus, .chat_box .footer_chat textarea:active{
    outline: none !important;
    border: none !important;
    border-top:1px solid #ccc !important;
}

.chat_box .send_button{
    background: url('../img/new_images/send-button.png') #fff center;
    background-repeat: no-repeat;
    background-size: 75%;
    width: 34px;
    height: 31px;
    position: absolute;
    bottom: 6px;
    right: 18px;
    cursor: pointer;
    -webkit-transition: .1s;
    transition: .1s;
    z-index: 9;
}

.chat_box .send_button:hover{
    transform: scale(1.2);
    -moz-transform: scale(1.2);
    -webkit-transform: scale(1.2);
    -ms-transform: scale(1.2);
    -o-transform: scale(1.2);
    -webkit-transition: .1s;
    transition: .1s;
}

.body_chat {
    height: 370px !important;
    overflow: hidden;
    overflow-y: scroll;
    /* background-color: red; */
}

.body_chat_inner sub{
    margin-left:6px;
    color: #ddd;
    font-size: 11px;
    position: absolute;
    right: 20px;
    bottom: 0px !important;
}


.body_chat_inner .customer_chat sub{
    color: #333;
}
.user_chat font, .customer_chat font{
    position: absolute;
    right: 6px;
    /* top: 18px; */
    bottom: 2px;
    font-size: 11px;
}
.user_chat font, .customer_chat font i.green{
    color: #53f59c;
}


.small_ads{
    background-color: #fff;
    margin: 3px 0 20px 5px;
    padding: 6px 6px 0 6px;
    border:1px solid #ddd;
    /* height: 55px; */
    height: 100px;
    width: 100%;
    overflow: hidden;
    position: absolute;
    z-index: 9;
}

.small_ads_height{
    height: 55px;
}
 
.small_ads p{
    margin: 0;
}
.small_ads img{
    width: 40px;
    height: 40px;
    border-radius: 6px;
}
.small_ads p.prod_title{
    font-size: 12px;
    line-height: 15px;
    color:#333;
    font-weight: 600;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    margin-top: 1px;
}
.small_ads p.prod_cond{
    font-size: 11.5px;
    line-height: 15px;
    color:#0076A8;
    margin: 1px 0 0px 0;
}
.small_ads .prod_price{
    font-size: 13px;
    line-height: 16px;
    color:#222;
    font-weight: 600;
    margin-top: 2px;
}



@media (min-width: 768px) and (max-width: 991.95px) { 
    .chat_box .body_chat .user_chat, .chat_box .body_chat .customer_chat {
        width: 94.5%;
    }
}


@media (min-width: 221px) and (max-width: 479.95px) { /*Real mobile*/
    
    .chat_box{
        height: calc(80% - 1rem);
        right: 0px;
        bottom: -1px;
    }

    .chat_box .chat_box_header{
        padding: 10px 17px 7px 0px !important;
    }
    .chat_box .body_chat {
        padding: 3px 10px 10px 10px !important;
        min-width: 100% !important;
        bottom: 0px;
    }
    .chat_box .body_chat .user_chat, .chat_box .body_chat .customer_chat {
        width: 88%;
        padding: 8px 7px 12px 7px;
        margin: 0px 30px 8px 30px;
    }

    .chat_box .footer_chat{
        width: 105%;
        position: absolute;
        position: relative;
        bottom: 10px;  
    }

    .chat_box .footer_chat textarea{
        width: 102% !important;
        /* height: 40px; */
        bottom: -3px;
    }

    .chat_box .send_button{
        bottom: 7px;
        right: 18px;
    }

    .body_chat {
        height: 370px !important;
        overflow: hidden;
        overflow-y: scroll;
    }

    .chat_box .close_chat i {
        right: -2px;
        top: 4px;
        position: absolute;
    }

    .body_chat_inner sub{
        margin-left:6px;
        color: #ddd;
        position: absolute;
        right: 20px;
        bottom: -5px !important;
    }

}