#chat_list, #open_chat_list {
    right: 5px;
    position: absolute
}

#chat-body-errors {
    font-weight: 700;
    font-size: 11px
}

#chat-tune {
    display: none
}

#chat_box {
    margin-right: 70px
}

#chat_box .panel {
    display: inline-block;
    margin-right: 10px;
    margin-bottom: 0 !important;
    overflow: hidden
}

.chat-icon i {
    font-size: 10px;
    padding: 0 3px;
    color: #fff;
    cursor: pointer
}

.chat-icon i:last-child {
    padding: 0 0 0 3px
}

.chat_frame {
    position: fixed;
    bottom: 35px;
    right: 5px;
    z-index: 999999999;
    color: #000
}

#open_chat_list {
    bottom: 5px;
    color: #FFF
}

#open_chat_list span {
    font-size: 30px
}

#chat_list {
    display: none;
    bottom: -16px;
    width: 250px
}

@media (max-width: 480px) {
    #chat_list, #chat_box, #open_chat_list, .start_chat {
        display: none !important;
    }
}

.open_chat {
    margin-right: 256px !important;
}

.close_chat {
    margin-right: 70px !important;
}

@media only screen and (max-width: 767px) {
    #chat_list {
        width: 180px
    }

    /*#chat_box {*/
    /*margin-right: 170px !important;*/
    /*}*/
    .chat-body {
        width: 195px !important;
        overflow-x: hidden;
        height: 195px !important;
    }

    .chat-body .message-right:after {
        left: 16px;
    }
}

#chat_list .panel-heading {
    padding-top: 8px !important;
    padding-bottom: 8px !important;
    border-radius: 0 !important
}

.chat-icon {
    margin-left: 5px;
    margin-right: 5px;
    text-shadow: 0 1px 0 #000
}

.chat-body {
    width: 250px;
    height: 250px;
    overflow-y: scroll
}

.conversation_chat {
    height: 650px;
    overflow-y: scroll
}

.chat_badge, .minimize-chatbox {
    cursor: pointer;
    overflow: hidden
}

.chat-input-box {
    padding: 5px !important;
    background: #cfdbe2;
    border-radius: 0
}

.chat-input-box input {
    font-size: 13px;
    font-family: -webkit-body
}

.chat-body .text {
    width: 75%;
    display: flex;
    flex-direction: column
}

.chat-body .text > p:first-of-type {
    width: 100%;
    margin-top: 0;
    margin-bottom: auto;
    line-height: 13px;
    font-size: 12px
}

.chat-body .text-l > p:last-of-type {
    width: 100%;
    text-align: right;
    color: silver;
    margin-bottom: -7px;
    margin-top: auto
}

.chat-body .text-r > p:last-of-type {
    width: 100%;
    text-align: left;
    color: silver;
    margin-bottom: -7px;
    margin-top: auto
}

.chat-body .text-l {
    float: left;
    padding-right: 5px
}

.chat-body .text-r {
    float: right;
    padding-left: 5px
}

.chat-body .avatar {
    justify-content: center;
    align-items: center;
    width: 18%;
    float: left;
    padding-right: 10px
}

.chat-body .chat-message {
    margin-top: 5px;
    width: 95%;
    padding: 5px;
    display: flex
}

.chat-body .message-right {
    float: right;
    background: #e8e8e8
}

.chat-body .message {
    float: left;
    background: #dce5e7
}

.chat-body .chat-body > div:last-of-type {
    position: absolute;
    bottom: 5px;
    width: 100%;
    display: flex
}

.chat-body ul {
    width: 100%;
    list-style-type: none;
    padding: 0 12px;
    display: flex;
    min-height: 100%;
    flex-direction: column
}

.chat-body .message-right:after, .chat-body .message:before {
    width: 0;
    height: 0;
    content: "";
    top: -5px;
    position: relative;
    border-style: solid
}

.chat-body .message:before {
    left: -14px;
    border-width: 0 13px 13px 0;
    border-color: transparent #dce5e7 transparent transparent
}

.chat-body .message-right:after {
    left: 19px;
    border-width: 11px 11px 0 0;
    border-color: #e8e8e8 transparent transparent
}

.chat-body input:focus {
    outline: 0
}

.chat-body ::-webkit-input-placeholder {
    color: #d4d4d4
}

.chat-body ::-moz-placeholder {
    color: #d4d4d4
}

.chat-body :-ms-input-placeholder {
    color: #d4d4d4
}

.chat-body :-moz-placeholder {
    color: #d4d4d4
}

.chat-body .chat-icon i {
    font-size: 10px;
    padding: 0 3px;
    color: #000;
    cursor: pointer
}

.chat_badge {
    display: inline-block;
    padding: 2px 10px;
    font-size: 12px;
    margin-right: 10px
}

.badge-chat {
    position: absolute;
    top: -9px;
    background: #fa3c22 !important;
    color: #FFF;
    font-size: 7px !important;
    padding: 1px;
    margin-left: -10px
}

.minimize-chatbox {
    padding: 2px 10px !important;
    border-radius: 0 !important;
    font-size: 12px !important;
    margin-bottom: 0 !important
}

.chat-setting-dropdown {
    position: absolute;
    top: 6%;
    right: auto !important;
    left: 0;
    z-index: 1000;
    min-width: 120px
}

.chat-setting-dropdown > li > a {
    display: block;
    padding: 2px 9px;
    clear: both;
    font-weight: 400;
    line-height: 1.52857143;
    color: #333;
    white-space: nowrap;
    font-size: 12px;
    text-shadow: none
}