.bd-live-chat {
    background: #fff;
    width: 300px;
    position: fixed;
    bottom: 0px;
    right: 30px;
    font-size: 13px;
    -webkit-box-shadow: 0 5px 40px rgba(0,0,0,.16);
    -moz-box-shadow: 0 5px 40px rgba(0,0,0,.16);
    box-shadow: 0 5px 40px rgba(0,0,0,.16);
    z-index: 1000000;
}

.bd-live-chat header {
    background: #3e454c;
    border-radius: 5px 5px 0 0;
    color: #fff;
    padding: 12px 15px;
}
.bd-live-chat h4 {
    font-size: 14px;
    margin: 0;
    font-weight: 600;
}
.bd-live-chat h4:before {
    background: #1a8a34;
    border-radius: 50%;
    content: "";
    display: inline-block;
    height: 8px;
    margin: 0 8px 0 0;
    width: 8px;
}
.chat-settings .btn,
.chat-close,
.chat-toggle {
    padding: 5px 6px;
    line-height: 0;
    font-size: 15px;
    color: #fff;
    border: 0;
    z-index: 10000;
}
.chat-close:hover,
.chat-toggle:hover,
.chat-settings .btn:hover{
    color: #fff;
    background: rgba(255,255,255,0.2)
}

.open.chat-toggle .fa-chevron-down{
    display: block
}
.chat-toggle .fa-chevron-down{
    display: none
}
.chat-toggle .fa-chevron-up{
    display: block
}
.open.chat-toggle .fa-chevron-up{
    display: none
}
.chat-settings .dropdown-menu {
    padding: 10px;
    margin-top: 12px;
    border-radius: 6px;
    box-shadow: 0 0 20px rgba(0,0,0,.04);
    border: none;
}
.chat-settings .dropdown-item {
    display: flex;
    align-items: center;
    padding: 8px 10px;
    font-size: 14px;
    cursor: pointer;
    color: #9a9a9a;
    border-radius: 6px;
    transition: all .3s;
}
.chat-settings .dropdown-item:hover {
    background: #f5f5f5;
}
.chat-settings .dropdown-menu hr {
    border-top: 2px solid #fbfbfb;
    margin: 10px;
}
.chat-settings .dropdown-menu i {
    margin-right: 10px;
    font-size: 16px;
}
.bd-chat {
    background: #fff;
    display: none;
}
/*messege content*/
.bd-message-content {
    overflow-y: scroll;
    -ms-overflow-style: none;
    overflow-x: hidden; 
    background-image: url(../img/messenger-bg.png);
    background-color: #f2f2f2;
    position: relative;
    padding: 15px;
    height: 300px;
}
.bd-message-content .date {
    display: flex;
    align-items: center;
    padding: 10px 0 15px;
    text-transform: uppercase;
    font-size: 12px;
    font-weight: 700;
}
.bd-message-content .date hr {
    width: 100%;
    /*border-top: 2px solid #fbfbfb;*/
    border-top: 1px solid #dadada;
    margin-top: 0;
    margin-bottom: 0;
}
.bd-message-content .date span {
    display: block;
    padding: 0 20px;
}
.bd-message-content .message {
    display: -ms-flexbox;
    display: flex;
    -ms-flex-align: end;
    align-items: flex-end;
    margin-bottom: 20px;
}
.bd-message-content .message:last-child {
    margin-bottom: 10px;
}
.bd-message-content .message.me {
    justify-content: flex-end;
}
.bd-message-content .message .avatar {
    width: 100%;
    height: 36px;
    min-width: 36px;
    max-width: 36px;
    /* border: 2px solid #fff; */
    border-radius: 100%;
    margin-right: 15px;
    box-shadow: 0 5px 10px 4px rgba(0,0,0,.04);
}
.bd-message-content .message .text-group {
    width: 100%;
    margin-top: 5px;
}
.bd-message-content .message .text-group.me {
    display: flex;
    justify-content: flex-end;
}
.bd-message-content .message .text {
    display: inline-block;
    padding: 10px;
    max-width: 450px;
    /*background: #f1f3f6;*/
    background: #fff;
    border-radius: 6px;
    position: relative;
}
.bd-message-content .message .text.text-img {
    padding: 3px;
    border-radius: 3px;
}
.text-action {
    position: absolute;
    top: 50%;
    left: 100%;
    transform: translate(4%, -50%);
    cursor: pointer;
    width: 32px;
    padding: 5px;
    /*display: none*/
}
.bd-message-content .message .text:hover .text-action{
    /*display: block*/
}
.bd-message-content .message .text.typing {
    padding: 0px 12px 4px;
}
.bd-message-content .message .text.typing .wave .dot {
    display: inline-block;
    width: 6px;
    height: 6px;
    border-radius: 100%;
    margin-right: 1px;
    background: #bdbac2;
    animation: wave 1.3s linear infinite;
}
.bd-message-content .message .text.typing .wave .dot:last-of-type {
    margin-right: 0;
}
.bd-message-content .message .text.typing .wave .dot:nth-child(2) {
    animation-delay: -1.1s;
}
.bd-message-content .message .text.typing .wave .dot:nth-child(3) {
    animation-delay: -0.9s;
}
@keyframes wave {
    0%, 60%, 100% {
        transform: initial;
    }
    30% {
        transform: translateY(-5px);
    }
}
.bd-message-content .message .text.me {
    background: #37a000;
    -moz-transition: all .3s;
    -webkit-transition: all .3s;
    transition: all .3s;
}
.bd-message-content .message .text .attachment {
    display: flex;
    align-items: center;
}
.attach {
    background: #37a000;
    color: #fff;
    border-radius: 100%;
}
.bd-message-content .message .text .attachment .attach {
    padding: 5px;
    width: 36px;
    height: 36px;
    margin-right: 10px;
}
.bd-message-content .message .text .attachment .file h5 {
    font-size: 14px;
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 0px;
    color: #212529;
}
.bd-message-content .message .text .attachment .file h5 a{
    color: #212529;
}
.bd-message-content .message .text p {
    font-weight: 400;
    line-height: 1.4;
    margin: 0;
    color: #212529;
}
.bd-message-content .message .text.me p {
    color: #fff;
}
.bd-message-content .message span {
    display: block;
    font-size: 12px;
    font-weight: 500;
    /*color: #9a9a9a;*/
    color: #212529;
}
.bd-message-content .message.me span {
    text-align: right;
}
.bd-message-content .message span i {
    position: relative;
    top: 2px;
    margin-right: 5px;
    font-size: 14px;
    font-weight: 600;
}
/*message content empty*/
.bd-message-content.empty {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    overflow-y: auto;
}
.bd-message-content.empty .no-messages {
    display: block;
    text-align: center;
    width: 100%;
    max-width: 400px;
    margin: 47px auto 45px;
}
.bd-message-content.empty .no-messages i {
    font-weight: 600;
    margin-bottom: 20px;
    font-size: 48px;
}
.bd-message-content.empty .no-messages p {
    font-size: 16px;
    font-weight: 400;
}
/*chat-area-bottom*/
.chat-area-bottom {
    padding: 15px;
    /*border-top: 1px solid #E4E4E4;*/
}
.chat-area-bottom .form-control {
    /*padding: 0 30px 0;*/
    padding: 10px 30px 10px 30px;
    height: 40px;
    resize: none;
    font-weight: 400;
    background: #f5f5f5;
    width: 100% !important;
    border-radius: 6px;
    border: none;
    font-size: 14px;
    color: #9a9a9a;
    box-shadow: none;
}
.chat-area-bottom label{
    margin: 0;
}
/*emojionearea*/
.emojionearea.emojionearea-inline>.emojionearea-editor {
    padding: 10px 0;
    margin: 0;
    left: 30px;
    right: 30px;
    height: 40px;
}
.emojionearea .emojionearea-picker {
    left: 0 !important;
}
.emojionearea .emojionearea-picker.emojionearea-picker-position-top .emojionearea-wrapper::after {
    left: 20px;
}
.emojionearea .emojionearea-button {
    position: absolute;
    top: 50% !important;
    bottom: 0;
    font-size: 19px;
    transform: translate(0%, -50%);
    left: 7px;
    right: auto;
    color: #9a9a9a;
    width: 18px;
    height: 18px;
    opacity: 1;
}
.emojionearea .emojionearea-button > div{
    background-image: none !important;
}
.emojionearea .emojionearea-button > div {
    /*font-family: 'themify';*/
    font-family: "Font Awesome 5 Free";
    speak: none;
    font-style: normal;
    font-weight: normal;
    font-variant: normal;
    text-transform: none;
    line-height: 1;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}
.emojionearea .emojionearea-button .emojionearea-button-open::before {
    content: "\f599";
}
.emojionearea .emojionearea-button .emojionearea-button-close::before {
    content: "\f00d";
}
.chat-area-bottom .btn.send {
    position: absolute;
    top: 0;
    bottom: 0;
    right: 0;
    font-size: 19px;
    color: #9a9a9a;
    padding: 0;
    border: 0;
    display: flex;
    align-items: center;
    padding-right: 10px;
}
.chat-area-bottom input {
    display: none;
}
.chat-area-bottom .btn.attach {
    width: 40px;
    height: 40px;
    color: #fff;
    margin-left: 15px;
    box-shadow: 0 5px 10px 4px rgba(0,0,0,.04);
    font-size: 16px;
    line-height: 38px;
    padding: 0;
}