.chat-box{
    position: fixed;
    width: 200px;
    bottom: 0;
    left: 5px;
    right: auto;
    z-index: 99;
    border-top-right-radius: 3px;
    border-top-left-radius: 3px;
    overflow: hidden;
    -webkit-box-shadow: 0px 9px 28px -9px rgba(0,0,0,0.75);
    -moz-box-shadow: 0px 9px 28px -9px rgba(0,0,0,0.75);
    box-shadow: 0px 9px 28px -9px rgba(0,0,0,0.75);
    font-size: 12px;
}
.chat-box .btn{
    margin: 0;
}
.chat-box .btn i{
    font-size: 12px;
}

.chat-box .col-md-12{
    padding-left: 30px;
    padding-right: 30px;
}

.chat-head{
    position: relative;
    overflow: hidden;
    background-color: #8a6559;
    color: #fff;
    cursor: pointer;
    padding: 10px 0;
}
.chat-head .chat-head-left, .chat-head .chat-head-right{
    padding: 5px 10px;
}
.chat-head .chat-head-left{
    float: left;
}
.chat-head .chat-head-right{
    float: right;
}

.chat-body{
    background-color: #fff;
    position: relative;
    overflow: hidden;
    height: 300px;
}
.chat-login{
    margin-top: 20px;
}
.chat-login-lbl{
    font-size: 18px;
    line-height: 1;
}


.chat-body-top{
    width: 100%;
    height: 265px;
}
.chat-conversation{
    position: relative;
    overflow-x: hidden;
    overflow-y: scroll;
    height: 100%;
    padding: 5px 12px;
}
.chat-large{
    position: relative;
    overflow: hidden;
}
.chat-conversation-row{
    position: relative;
    overflow: hidden;
    width: 100%;
    margin-bottom: 5px;
}
.chat-conversation .me{
    text-align: right;
}
.chat-conversation .your{
    text-align: left;
}
.chat-name{
    font-size: 9px;
    color: #999999;
}
.chat-messege{
    color: #333;
    font-size: 13px;
    width: auto;
    background-color: #f5f5f5;
    padding: 3px 5px;
    border-radius: 5px;
    margin: 5px;
    -webkit-box-shadow: 0px 1px 5px -1px rgba(0,0,0,0.75);
    -moz-box-shadow: 0px 1px 5px -1px rgba(0,0,0,0.75);
    box-shadow: 0px 1px 5px -1px rgba(0,0,0,0.75);
    max-width: 80%;
}
.chat-messege img{
    max-width: 100%;
}
.me .chat-messege{
    float: right;
    background-color: #ce9686;
    color: #fff;
    max-width: 80%;
}
.your .chat-messege{
    float: left;
    background-color: #f5f5f5;
}

.chat-time{
    font-size: 9px;
    color: #999999;
    display: inherit;
}

.chat-body-bottom{
    position: absolute;
    bottom: 0;
    width: 100%;
    background-color: #fff;
}
.chat-input{
    border-top: 1px #f5f5f5 solid;
}
.chat-input .input-group .form-control:first-child{
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
    border: 0;
    font-size: 13px;
}
.chat-input .input-group-btn .btn-chat{
    border-left: 1px #3399ff solid;
}
.chat-input .input-group-btn:last-child>.btn{
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
    border: 0;

}
.chat-unread{
    background-color: #ff3333;
    color: #fff;
    float: right;
    margin-left: 10px;
    padding: 1px 5px;
    border-radius: 5%;
}

#inputfilechat{
    display: none;
}

.loadingChat{
    height: 100%;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.82);
    position: absolute;
    top: 0;
    text-align: center;
    display: none;
}
.loadingChat img{width: 20%;margin-top: 25%;}
.loadingChat-txt{color: #999999;font-size: 14px;}

@media (min-width: 768px) {
    .chat-box{
        right: 100px;
        left: auto;
        width: 300px;
    }
    .chat-body{
        height: 320px;
    }
    .chat-body-top{
        width: 100%;
        height: 285px;
    }
}