/*Custom*/

.live-chat-popup .display-none {
    display: none !important;
}

.live-chat-popup .error {
    color: #d60404;
    text-align: center;
    /* position: absolute; */
    bottom: 50px;
    font-size: 11px;
    margin-bottom: 0;
    border-top: 1px solid #efefef;
}

.live-chat-popup ul {
    padding: 0;
}

.live-chat-popup .btn-primary.focus, .live-chat-popup .btn-primary:focus {
    outline: unset;
    box-shadow: none;
}

.live-chat-popup button {
    border: none;
    /*height: fit-content;*/
}

.lead.emoji-picker-container {
    margin-bottom: 0;
}

/*End custom*/

#frame_livechat{
    display: none;
}

/*Avatar*/
.avatars {
    height: 45px;
    position: relative;
    display: inline-block;
    /* overflow: hidden; */
    width: 50px;
    /*display: contents;*/
}

.avatar-item {
    background: #fff;
    height: 45px;
    width: 45px;
    /*overflow: hidden;*/
    border-radius: 50%;
    float: left;
    /*position: absolute;*/
    border: 1px solid #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: -10px;
    position: relative;
}

.avatar-item:nth-child(1) {
    margin-left: 0;
    z-index: 3;
}

.avatar-item:nth-child(2) {
    z-index: 2;
}

.status-chat.online {
    background-color: #02ca37;
}

span.status-chat {
    height: 10px;
    width: 5px;
    background-color: #ccc;
    padding: 0px 5px;
    border-radius: 50%;
    position: absolute;
    right: 4px;
    bottom: 0px;
    z-index: 9;
}

.avatar-item img {
    z-index: 0;
    position: relative;
    max-height: 45px;
    max-width: 45px;
    border-radius: 50%;
}

.bot-chat-img{
    max-height: 90px;
    max-width: unset;
    height: 47px;
    width: auto;            
}

/*popup chào mừng khách truy cập website*/

.popup-chaomung, .popup-push {
    width: 300px;
    position: fixed;
    right: 1%;
    bottom: 155px;
    z-index: 10;
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0px 0px 5px var(--primary-bold-first);
}

.popup-chaomung .modal-header, .popup-push .modal-header {
    position: absolute;
    right: 0;
    border: none;
    z-index: 1;
}

.popup-chaomung .modal-header .close, .popup-push .modal-header .close {
    padding: 10px;
    border: none;
    background-color: unset;
}

.popup-chaomung .modal-body, .popup-push .modal-body {
    overflow: hidden;
}

.popup-chaomung .header-popup{
    overflow: hidden;
    align-items: center;
    display: flex;
    margin-bottom: 10px;
}

.popup-push .header-popup {
    overflow: hidden;
    align-items: center;
    display: flex;
}

.popup-chaomung .header-popup .name, .popup-push .header-popup .name {
    color: var(--primary);
    font-weight: bold;
    margin-left: 10px;
    float: left;
    width: calc(100% - 75px);
    text-align: left;
    margin: 0 5px;
}

.popup-chaomung .box-image, .popup-push .box-image {
    display: inline-block;
    float: left;
    width: 50px;
}

.popup-chaomung .image, .popup-push .image {
    max-width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 1px solid var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
}

.popup-chaomung .image img, .popup-push .image img {
    max-width: 40px;
}

.popup-chaomung .content, .popup-push .content {
    margin-left: 10px;
    margin-right: 10px;
    float: left;
}

.popup-chaomung .modal-footer, .popup-push .modal-footer {
    padding: 10px;
    justify-content: center;
}

/*Push*/
.popup-push {
    width: 300px;
    /*bottom: 10%;*/
    /*right: 6%;*/
}
/*end chào mừng, push*/

/*popup chat*/

.icon-chat {
    position: fixed;
    right: 17px;
    bottom: 85px;
    /*background: var(--primary);*/
    justify-content: center;
    align-items: center;
    display: flex;
    width: 50px;
    height: 50px;
    text-align: center;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
    padding: 10px;
}

.icon-chat .icon {
    display: flex;
    align-items: center;
    justify-content: center;
}

svg.chat-svg, svg.close-chat-svg {
    height: 30px;
    width: 30px;
    color: #fff;
}

svg.list-svg.cursor.menu-livechat-js {
    height: 25px;
    width: 25px;
    color: #fff;
    text-align: center;
    position: absolute;
    right: 10px;
}

.live-chat-popup svg.svg-dropdown {
    height: 13px;
    width: 13px;
    color: #fff;
    text-align: center;
    position: absolute;
    right: 5px;
    top: 5px;
}

svg.send-svg, svg.image-svg, svg.attachment-svg {
    height: 25px;
    width: 25px;
}

.btn-send-message {
    color: #fff;
    border-radius: 3px;
    float: left;
    padding: 6px 8px;
    width: 15%;
}

svg.download-svg {
    margin-right: 5px;
    height: 15px;
    width: 15px;
}

.live-chat-popup {
    /*display: none;*/
    position: relative;
    z-index: 999999999;
    /*margin: 10px 0;*/
    overflow: hidden;
}

.live-chat-popup .modal-header {
    background-color: var(--primary-bold-first);
    display: flex;
    align-items: center;;
    justify-content: stretch;
    position: relative;
}

.live-chat-popup .modal-header h5 {
    color: #fff;
    margin-left: 10px;
}

.live-chat-popup .modal-header .box-mnlivechat {
    position: absolute;
    background: var(--primary-bold-first);
    color: #fff;
    top: 100%;
    right: 0;
    padding: 10px;
    border: 1px solid #fff;
    border-radius: 5px;
    z-index: 1;
}

.live-chat-popup .modal-content {
    width: 300px;
    right: 17px;
    position: fixed;
    bottom: 12%;
    z-index: 9999;
    /* top: 10%;
    box-shadow: 1px 1px 10px #1b9bd2;
}

.live-chat-popup .list-services {
    margin-top: 15px;
}

.live-chat-popup .service-item {
    padding: 5px 8px;
    background-color: var(--primary);
    color: #fff;
    border-radius: 10px;
    margin-right: 5px;
    cursor: pointer;
    animation: all 4s;
    transition: .4s;
}

.live-chat-popup .service-item.active {
    background-color: var(--primary-bold-first);
    padding: 8px 11px;
}

.live-chat-popup .email, .live-chat-popup .phone {
    margin-top: 10px;
}

.live-chat-popup .btn.btn-primary, .live-chat-popup .btn.btn-primary:focus {
    width: 100%;
    border-radius: 5px;
    background-color: var(--primary-bold-first);
    border-color: var(--primary-bold-first);
}

.error{
    font: 13px;
    color: #f0f0f0;
}

.box-question {
    margin-top: 10px;
    /*height: 100px;*/
    /*overflow-y: scroll;*/
}

.group-sample p {
    margin-bottom: 0px;
}

.group-sample input {
    margin-right: 5px;
}

.list_messageSample {
    margin-left: 20px;
}

.show-content .title {
    margin-top: 10px;
}

/*Is chat*/

.count-chat {
    position: absolute;
    background: red;
    color: #fff;
    padding: 2px 8px;
    border-radius: 50%;
    top: 0;
    right: 0;
}

.live-chat-popup .box-chat {
    height: 100%;
    position: relative;
}

.live-chat-popup .modal-body{
    overflow: hidden;
}

.live-chat-popup.is-scroll .modal-body{
    overflow-y: scroll !important;
}

.live-chat-popup .modal-body{
    /*position: absolute;
    top: 0;
    bottom: 68px;
    left: 0;
    right: 0;
    border-bottom: 1px solid #d2dbe3;*/
    height: 350px;
    padding: 10px;
}

.live-chat-popup .modal-body .scroll-messages p {
    overflow: hidden;
    clear: both;
    position: relative;
}

.A_avatar {
    height: 33px; 
    width: 33px;
    position: absolute;
    left: 0px;
    border-radius: 50%;
    border: 1px solid #f2f2f2;
    /* overflow: hidden; */
    display: flex;
    align-items: center;
    justify-content: center;
}

.A_avatar img {
    border-radius: 50%;
    max-height: 30px;
    max-width: 30px;
}

.A_avatar .status-chat.online {
    bottom: 0;
    right: 0;
    height: 8px;
    width: 8px;
    padding: 0;
}

.live-chat-popup .list-images {
    width: 100%;
    clear: both;
    /*display: inline-block;*/
    padding: 0px 15px;
}

.live-chat-popup .image {
    float: left;
    display: flex;
    /*margin-right: 10px;*/
    margin-bottom: 5px;
    align-items: center;
    justify-content: center;
    position: relative;
    height: 50px;
}

.live-chat-popup .image img {
    max-width: 50px;
}

.close.remove-image-chat {
    position: absolute;
    top: -9px;
    right: -5px;
}

.live-chat-popup .image .close i {
    font-size: 15px;
}


.live-chat-popup .box-mess-time, .AAA {
    position: relative;
    overflow: hidden;
}

.live-chat-popup .box-mess-time .time {
    font-size: 10px;
    text-align: center;
    overflow: hidden;
    margin: 0;
}

.live-chat-popup .item-message, .live-chat-popup .fileA , .live-chat-popup .fileU {
    background-color: var(--primary-background);
    border-radius: 5px;
    padding: 5px 8px;
    color: #000;
    clear: both;
    margin-bottom: 3px;
}

.live-chat-popup .item-message, .live-chat-popup .fileA {
    margin-left: 37px;
    position: relative;
    color: #fff;
}

.live-chat-popup .AAA .item-message:before, .live-chat-popup .fileA:before {
    position: absolute;
    content: '';
    border-left: 5px solid transparent;
    border-top: 5px solid transparent;
    border-right: 5px solid var(--primary-background);
    border-bottom: 5px solid transparent;
    left: -10px;
}

.live-chat-popup .UUU .item-message:before, .live-chat-popup .fileU:before {
    position: absolute;
    content: '';
    border-right: 5px solid transparent;
    border-top: 5px solid transparent;
    border-left: 5px solid var(--primary-background);
    border-bottom: 3px solid transparent;
    right: -9px;
    bottom: 0px;
}

.live-chat-popup .fileU a{
    color: #fff;
}

.live-chat-popup .item-message.isUmess, .live-chat-popup .fileU {
    float: right;
    color: #fff;
    /*background-color: var(--primary);*/
    margin-right: 5px;
    border-bottom-right-radius: unset;
    position: relative;
}

.live-chat-popup .item-message.isUmess {
    margin-bottom: 3px;
}

.live-chat-popup .images-u {
    width: 100%;
    clear: both;
    float: right;
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.live-chat-popup .images-a {
    width: 100%;
    clear: both;
    float: right;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    position: relative;
}

.live-chat-popup .item-img {
    max-width: 21%;
    float: left;
    margin: 2%;
}

.live-chat-popup .images-a .item-img {
    margin-left: 35px;
}

.live-chat-popup .item-img img{
    max-width: 100%;
    height: 40px;
}

.live-chat-popup .box-btn-livechat{
    display: flex;
    margin-left: 0;
    width: 100%;
    vertical-align: middle;
}

.btn-upload-image {
    background: unset;
    /*width: 50px;*/
    padding-right: 0;
    /*margin-left: 10px;*/
}

.btn-upload-file {
    background: unset;
    padding-right: 0;
    float: left;
    padding: 6px;
    width: 15%;
}

.live-chat-popup .modal-footer {
    /*position: fixed;*/
    /*bottom: 11%;*/
    /*background-color: #fff;*/
    /*border-top: none;*/
    padding: 10px 10px 5px;
    display: block;
    overflow: hidden;
}

.js-showEmoji {
    padding: 5px;
    font-size: 20px;
    border-radius: 5px;
    border: 1px solid #bdbdbd !important;
    margin: 0 3px;
    /*height: 35px !important;*/
}

/*Emoji*/
/*.emoji-picker-container {
    margin: 0;
    margin-right: 5px;
    float: left;
    width: -webkit-fill-available;
}

.emoji-menu {
     top: -100%; 
    bottom: 100%;
}

.emoji-wysiwyg-editor {
    border-radius: 5px !important;
    max-width: 100%;
}

.emoji-picker-icon {
    top: 7px !important;
}

.emoji-menu .emoji-items-wrap{
    overflow-x: unset !important;
}*/

.box-mess{ position: relative; }

.emoji-picker{
    position: relative;
    box-shadow: 0 0 30px #525252;
    top: 10px;
    left: 0;
    right: 0;
    margin: 0;
    height: 200px;
}
.emoji-picker:before {
    content: '';
    position: absolute;
    border-bottom: 0px solid transparent;
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    border-top: 10px solid #303841;
    left: calc(50% - 10px);
    /*top: -10px;*/
    bottom: -10px;
}
#emojis {
    position: absolute;
    right: 0;
    bottom: 65px;
    /* top: 0; */
}

.emoji-selectables {
    max-height: 250px;
    overflow-y: scroll;
    width: unset;
}
.emoji-selectables span img {
    height: unset;
}

.emoji-content {
    max-width: 85%;
    min-width: 200px;
}

.js-showEmoji img, .item-message img {
    max-width: 25px;
}

/*Body chat*/

.live-chat-popup .modal-content.send-offline {
    height: 180px;
    position: fixed;
    top: unset;
}

.live-chat-popup .modal-content.send-offline .modal-body {
    height: 100px;
    border-bottom: none;
}

.success {
    background-color: #5ccf5c;
    padding: 10px;
    color: #fff;
    border-radius: 5px;
}

@media screen and (max-width: 767px)
{
    .live-chat-popup .modal-content {
        width: 280px;
    }
    
    .live-chat-popup .modal-body {
        height: 320px;
    }
    
    .live-chat-popup .txt_contact {
        margin-top: 10px !important;
    }
}

@media screen and (max-width: 320px)
{
    .popup-chaomung, .popup-push {
        max-width: 97%;
    }
}

/*Emoji*/