.chat-wrapper {
    position: fixed;
    bottom: 0;
    right: 50px;
    width: 350px;
    border-radius: 5px 5px 0 0;
    background: #fff;
    z-index: 1000;
}

.chat-wrapper-header {
    padding: 10px;
    border-radius: 5px 5px 0 0;
    background: #ddd;
    color: #000;
    cursor: pointer;
}

.chat-wrapper-header .new {
    display: none;
}

.chat-new .chat-wrapper-header {
    background: #00743e;
    color: #fff;
}

.chat-new .chat-wrapper-header .new {
    display: inline;
}

.chat-wrapper-header h4 {
    margin: 0;
}

.chat-wrapper-content {
    display: none;
    padding: 0 0 0 10px;
}

.chat-wrapper.open .chat-wrapper-content {
    display: block;
}

.direct-chat-messages {
    max-height: 300px;
    overflow-y: scroll;
    padding-right: 10px;
}

.chat-offline-message {
    margin: 10px 0;
    padding: 5px 10px;
    background: #fdb813;
    border-radius: 5px;
    color: #fff;
    font-weight: bolder;
}

.chat-wrapper .chat-message-new {
    padding: 10px 10px 10px 0;
}

.direct-chat-msg {
    margin-bottom: 10px;
}

.direct-chat-info {
    display: block;
    margin-bottom: 2px;
    font-size: 12px;
}

.direct-chat-name {
    font-weight: 600;
}

.direct-chat-timestamp {
    color: #999;
}

.direct-chat-text {
    border-radius: 5px;
    position: relative;
    padding: 5px 10px;
    background: #d2d6de;
    border: 1px solid #d2d6de;
    margin: 5px 0 0 50px;
    color: #444444;
}

.direct-chat-primary .right > .direct-chat-text {
    background: #3c8dbc;
    border-color: #3c8dbc;
    color: #ffffff;
}

.direct-chat-primary .right > .direct-chat-text a {
    color: #fff;
}

.right .direct-chat-text {
    margin-right: 50px;
    margin-left: 0;
}

.direct-chat-text:after,
.direct-chat-text:before {
    position: absolute;
    right: 100%;
    top: 15px;
    border: solid transparent;
    border-right-color: #d2d6de;
    content: ' ';
    height: 0;
    width: 0;
    pointer-events: none;
}

.direct-chat-text:before {
    border-width: 6px;
    margin-top: -6px;
}

.direct-chat-text:after {
    border-width: 5px;
    margin-top: -5px;
}

.right .direct-chat-text:after, .right .direct-chat-text:before {
    right: auto;
    left: 100%;
    border-right-color: transparent;
    border-left-color: #d2d6de;
}

.direct-chat-primary .right > .direct-chat-text:after,
.direct-chat-primary .right > .direct-chat-text:before {
    border-left-color: #3c8dbc;
}