.chat {
    width: 922px;
    position: fixed;
    right: 0;
    bottom: 0;
    z-index: 2147483644;
    padding: 0 15px;
    transition: height 0.2s;
}

.chat.c-show {
    height: 480px;
}

.chat.c-hide {
    height: 35px;
}

.chat .frame {
    position: relative;
    float: right;
    min-width: 100%;
    background-color: white;
    border-radius: 4px 4px 0 0;
    box-shadow: 0 2px 6px rgb(0 0 0 / 35%);
    outline: none;
}

.chat .c-header {
    width: 100%;
    height: 35px;
    background-color: #ad4105;
    border-radius: 4px 4px 0 0;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
}

.c-header h2 {
    display: inline-block;
    color: #fff;
    font-size: 19px;
    font-weight: normal;
    margin: 0 10px 0 15px;
    line-height: 35px;
}

.c-header .option {
    position: relative;
    float: right;
    margin: 0;
    padding: 0;
}

.c-header .option:hover i {
    color: #ccc;
}

.c-header .icon {
    width: 28px;
    height: 35px;
    color: #eeeeee;
    vertical-align: middle;
    text-align: center;
    font-size: 12pt;
    cursor: pointer;
    padding-top: 5px;
}

.chat.c-hide .frame .c-header .icon .fa.fa-chevron-down,
.chat.c-show .frame .c-header .icon .fa.fa-chevron-up {
    display: none;
}

.c-content {
    overflow-y: scroll;
    overflow-x: hidden;
    height: 400px;
    min-height: 300px;
}

.c-content .message-wrapper:nth-child(odd) {
    background-color: #f3f6f9;
}

.c-content .message-wrapper {
    background-color: #fff;
    padding: 3px 3px 3px 15px;
    white-space: nowrap;
}

.c-content .message-wrapper .avatar-wrapper {
    display: inline-block;
    vertical-align: top;
    padding-right: 10px;
}

.c-content .message-wrapper .avatar-wrapper .avatar {
    width: 26px;
    height: 26px;
    border-radius: 26px;
    font-size: 13px;
    line-height: 26px;
    cursor: pointer;
    display: inline-block;
    box-sizing: content-box;
    color: #fff;
    text-align: center;
    vertical-align: top;
    background-color: #e4f6f5;
    font-weight: normal;
}

.c-content .message-wrapper .message-block {
    display: inline-block;
    width: 94%;
}

.c-content .message-wrapper .message-block .toolbar .name {
    position: relative;
    display: inline;
    color: #000;
    font-weight: bold;
    cursor: pointer;
}

.c-content .message-wrapper .message-block .toolbar .toolbar-right {
    display: inline;
}

.c-content .message-wrapper .message-block .toolbar .timestamp {
    display: inline;
    color: #7c7c7c;
    cursor: pointer;
    padding-right: 10px;
    text-align: right;
    white-space: nowrap;
    font-size: 12px;
    overflow: hidden;
    text-overflow: ellipsis;
    float: right;
}

.c-content .message-wrapper .message-block .message {
    padding: 5px 10px 5px 0px;
    word-break: break-word;
    white-space: normal;
    min-height: 30px;
}

.c-footer input[type="text"] {
    resize: none;
    width: 85%;
    border-radius: 8px;
    background-color: #e5e9ec;
    border: none;
    margin: 5px 5px 5px 15px;
    outline: none;
    padding: 3px 8px;
    overflow: auto;
    font-family: inherit;
    font-size: inherit;
    line-height: inherit;
    color: inherit;
    font: inherit;
}

.c-footer .icon.send {
    color: #d2d1d1;
}

.c-footer .icon {
    color: #d2d1d1;
    display: inline-block;
    height: 100%;
    vertical-align: top;
    text-align: center;
    font-size: 17pt;
    padding: 0px 3px;
    cursor: pointer;
    user-select: none;
    -webkit-user-select: none;
}

.c-footer .icon.send :hover {
    color: #ad4105;
}

.c-footer #chat-limitter {
    text-align: center;
    line-height: 29px;
    color: #adadad;
    float: right;
    padding: 2px 8px;
}

/* Small devices (tablets, 768px and up) */

@media (max-width: 992px) {
    .chat {
        width: 100%;
    }
    .c-footer input[type="text"] {
        width: 75%;
    }
}

/* Medium devices (desktops, 992px and up) */

@media (min-width: 992px) {
    .chat {
        width: 700px;
    }
}

/* Large devices (large desktops, 1200px and up) */

@media (min-width: 1200px) {
    .chat {
        width: 600px;
    }
}