.ng-hide {
    display: none !important;
}
.chat-window-bar {
    position: fixed;
    height: 34px;
    width: auto;
    bottom: 0;
    right: 10px;
    z-index: 1001;
}
.chat-window.open {
    top: 0;
    position: absolute;
    width: 100%;
}
.chat-window {
    /* border-radius: 3px; */
    /* z-index: 999999; */
    background-color: #f1f1f1;
    width: 200px;
    height: 100%;
    font-weight: bold;
    /* border: solid 1px #2196F3; */
    /* border-top: none; */
    /* box-shadow: 1px 1px 4px 1px rgba(0, 0, 0, 0.4); */
    /* float: right; */
    /* margin-left: 2px; */
}
.chat-window .chat-window-header::selection {
    background: none;
}
.chat-window .chat-window-header::-moz-selection {
    background: none;
}
.chat-window .chat-window-header .name {
    width: calc(100% - 78px);
    display: inline-block;
    overflow: hidden;
    vertical-align: middle;
    height: 28px;
}
.chat-window .avatar {
    width: 31px;
    margin-right: 5px;
    margin-top: -3px;
}
.chat-right-fixed * {
    font-family: Helvetica, Arial, sans-serif;
}
.chat-window a.chat-btn,
.chat-right-fixed a {
    text-decoration: none;
}
.chat-window a.chat-btn:hover,
.chat-right-fixed a.chat-btn:hover {
    opacity: 0.7 !important;
}
.chat-window .chat-window-header a.pull-right {
    color: #fff;
    font-size: 17px;
    line-height: 24px;
    margin-left: 5px;
}
.chat-window .chat-window-header {
    padding: 5px 10px;
    cursor: default;
    z-index: 999999;
    background-color: #2196f3;
    color: #fff;
    height: 36px;
}
.chat-window .chat-window-form .attach {
    display: table;
    float: left;
    margin-right: 5px;
}
.chat-window .chat-window-form .send,
.chat-window .chat-window-form .attach {
    display: table;
    float: left;
    margin-right: 5px;
    font-size: 22px !important;
    border: none;
    background: none;
    margin: 0;
    padding: 2px !important;
    line-height: 22px;
}
.chat-window .chat-window-form input {
    width: calc(100% - 70px);
    height: 36px;
    padding: 9px;
    border: solid 1px #eaeaea;
    font-weight: 400;
    outline: none;
    float: left;
    border-radius: 8px;
    margin-right: 5px;
}

.chat-window .chat-window-form {
    padding: 5px;
    /* width: 100%; */
    /* display: table; */
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 46px;
    gap: 5px;
}
.chat-window .chat-window-content {
    padding: 5px;
    padding-top: 0px;
    cursor: default;
    z-index: 999999;
    background-color: #fff;
    color: #333;
    height: calc(100% - 46px);
    overflow-y: scroll;
    overflow-x: hidden;
}
.chat-window .hide {
    display: none;
}
.chat-window .log-loading,
.chat-window .show-more {
    margin: 0;
}
.chat-window .show-more a {
    color: #2196f3;
    font-size: 12px;
    font-weight: 400;
}
.chat-window .chat-item {
    margin-bottom: 1px;
    display: table;
    width: 100%;
    font-size: 13px;
}
.chat-window .list-items {
    padding-top: 12px;
}
.chat-window .chat-item .chat-item-content {
    display: table;
    width: 100%;
    position: relative;
}
.chat-window .chat-item .chat-item-content.content-product span,
.chat-window .chat-item .chat-item-content.content-sticker span {
    background: none !important;
    padding: 0;
}
.chat-window .chat-item .chat-item-content span .send-product a {
    display: table;
    color: #000 !important;
    width: 100%;
}
.chat-window .chat-item .chat-item-content span .send-product {
    position: initial;
    width: 100%;
    text-align: left;
    min-width: 250px;
    display: table;
}
.chat-window .chat-item .chat-item-content span {
    background: #f1f1f1;
    padding: 1px 8px 1px 5px;
    border-radius: 5px;
    display: table;
    font-weight: 400;
    color: #333;
    float: left;
    max-width: calc(100% - 30px);
    line-height: 24px;
}
.chat-window .chat-item.text-right .chat-item-content span {
    background: #029cf7;
    float: right;
    color: #fff;
}
.chat-window .chat-item .chat-item-content span a {
    color: #333;
}
.chat-window .chat-item.text-right .chat-item-content span a {
    color: #fff;
}
.chat-window .chat-item.first-item {
    margin-top: 20px;
}
.chat-window .chat-item.first-item .avatar {
    opacity: 1 !important;
}
.chat-window .chat-item.first-item .name {
    display: table;
}
.chat-window .chat-item.first-item.text-right .name {
    right: 0;
}
.chat-window .chat-item .name {
    font-size: 12px;
    position: absolute;
    display: none;
    top: -20px;
    color: #333;
}
.chat-window .chat-item:hover .name i {
    display: inline-block;
}
.chat-window .chat-item .name i {
    padding: 0 35px;
    font-weight: 400;
    color: #908a8a;
    display: none;
    font-size: 9px;
}
.chat-window .chat-item.text-right .name i {
    float: left;
}
.chat-window .chat-item .avatar {
    width: 26px;
    margin: 0;
    margin-right: 4px;
    opacity: 0;
    float: left;
}
.chat-window .chat-item.text-right .avatar {
    float: right;
    margin: 0;
    margin-left: 4px;
}
.chat-window .chat-item.first-item p {
    margin-top: 22px;
}
.chat-window .chat-item p {
    word-break: break-word;
    white-space: pre-line;
    display: table;
    width: 100%;
    margin: 0;
    position: relative;
}
.show-chat-assistant-btn {
    position: fixed;
    bottom: 5px;
    right: 10px;
    border: none;
    cursor: pointer;
    background: #fff;
    border-radius: 50%;
    padding: 0;
}
.show-chat-btn {
    position: fixed;
    bottom: 0;
    right: 100px;
    background: #4987e1;
    border: none;
    color: #fff;
    z-index: 999;
    font-weight: bold;
    font-size: 16px;
    width: 120px;
    height: 30px;
    box-shadow: 1px 0px 4px 0 rgba(0, 0, 0, 0.62);
    font-family: Helvetica, Arial, sans-serif;
}
.show-chat-btn span {
    position: absolute;
    top: -14px;
    right: -10px;
    background: #f70000;
    width: 26px;
    height: 26px;
    font-size: 15px;
    line-height: 26px;
    border-radius: 17px;
}

.chat-right-fixed {
    position: fixed;
    bottom: 0;
    right: 10px;
    width: 650px;
    background: #fff;
    z-index: 2999999999;
    box-shadow: 1px 1px 4px 1px rgba(0, 0, 0, 0.4);
    height: 80vh;
    display: table;
    border-top-left-radius: 12px;
    border-top-right-radius: 12px;
    overflow: hidden;
}
div.chat-right-fixed .box-right div {
    float: initial;
    display: block;
}
.chat-right-fixed .box-left {
    float: left;
    width: 240px; /*sá»­a cĂ¡i nĂ y cáº§n sá»­a js pháº§n check mobile*/
    background: #fff;
}
.chat-right-fixed .box-right {
    float: left;
    width: calc(100% - 240px);
}
.chat-right-fixed.support-mode .box-right {
    width: 100%;
}
.chat-right-fixed .box-right .back {
    font-size: 14px;
    padding: 10px;
}
.chat-right-fixed .box-right .chat-box {
    position: relative;
    height: calc(80vh - 42px);
    border-left: solid 1px #eaeaeacc;
}
.chat-right-fixed.support-mode .box-right .chat-box {
    border-left: none;
}
.chat-right-fixed .box-right .support-tab {
    height: 100%;
    overflow-y: auto;
}
.chat-right-fixed .box-right .chat-box .empty {
    text-align: center;
    padding: 50px 10px;
}
.chat-right-fixed .box-right .chat-box .empty i {
    font-size: 150px;
    color: #efefef;
}
.chat-right-fixed .header a {
    color: #333;
    font-size: 24px;
    float: right;
}
.chat-right-fixed .sub-header {
    font-size: 15px;
    padding: 6px;
}
.chat-right-fixed .header {
    background-color: #fff !important;
    color: #333;
    /* padding: 10px 15px; */
    font-size: 16px;
    font-weight: bold;
    line-height: 22px;
    /*height: 42px;*/
    float: initial;
    display: block;
    border-bottom: 1px #eeeeee solid;
}
.chat-right-fixed > .header {
    position: relative;
    padding-bottom: 0;
}
.chat-right-fixed > .header > span {
    white-space: nowrap;
    display: block;
    padding-right: 40px;
}
.chat-right-fixed > .header > a.chat-btn {
    position: absolute;
    top: 6px;
    right: 10px;
}
.chat-right-fixed > .header .chat-tabs {
    width: 100%;
    padding: 0;
    /* margin-top: 8px; */
    gap: 0;
    border-top: 1px solid #eeeeee;
}
.chat-right-fixed > .header .chat-tabs .chat-tab {
    flex: 1;
    border: none;
    background: transparent;
    border-radius: 0;
    padding: 10px 6px;
    margin: 0;
    font-weight: 600;
    color: #666;
    border-bottom: 2px solid transparent;
}
.chat-right-fixed > .header .chat-tabs .chat-tab.active {
    background: transparent;
    color: #111;
    border-bottom-color: #ffbc6e;
}
.chat-right-fixed > .header .chat-tabs .chat-tab:focus {
    outline: none;
}
.support-tab {
    padding: 12px 10px;
}
.support-title {
    font-size: 16px;
    font-weight: 700;
    color: #111;
    margin-bottom: 10px;
    text-align: center;
}
.support-desc {
    font-size: 12px;
    color: #666;
    margin-bottom: 24px;
    text-align: center;
}
.support-row {
    display: grid !important;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    padding: 0 24px;
}
.support-card {
    border: 1px solid #eeeeee;
    border-radius: 10px;
    background: #fff;
    padding: 10px;
    display: flex !important;
    flex-direction: column;
    align-items: center;
    gap: 14px;
}
.support-icon {
    width: 40px;
    height: 40px;
}
.support-card-title {
    font-size: 16px;
    font-weight: 700;
    color: #111;
}
.support-card-desc {
    font-size: 11px;
    color: #666;
    line-height: 1.35;
    flex: 1;
    text-align: center;
}
.support-btn {
    display: inline-block;
    text-align: center;
    padding: 8px 10px;
    border-radius: 8px;
    background: #ffbc6e;
    color: #111 !important;
    font-size: 12px;
    font-weight: 700;
}
.support-btn:hover {
    opacity: 0.9;
}
.chat-right-fixed .chat-window-content > .header {
    position: sticky;
    top: 0;
    z-index: 5;
    padding: 10px 10px;
    margin: -5px -5px 5px -5px;
    background: #fff !important;
}
.chat-list-user.chat-conversations {
    width: 100%;
    height: calc(80vh - 42px);
}
.chat-list-user.list-friend {
    max-height: calc(100vh - 295px);
    overflow-y: scroll;
    overflow-x: hidden;
}
.chat-list-user.chat-conversations .list-item {
    height: 100%;
    overflow: scroll;
    overflow-x: hidden;
    display: block;
}
.chat-list-user.chat-conversations .unread .name {
    color: #000;
    font-weight: bold;
}
.chat-list-user.chat-conversations .name {
    margin: 0px 5px;
    font-size: 13px;
    line-height: 18px;
    height: auto;
}
.chat-list-user.chat-conversations .unread .last-message {
    color: #333;
    font-weight: bold;
}
.chat-list-user.chat-conversations .last-message {
    margin: 0px 5px;
    height: auto;
    float: left;
    font-size: 13px;
    line-height: 18px;
    width: calc(100% - 42px);
    color: #949494;
    height: 18px;
    overflow: hidden;
}
.chat-list-user.chat-conversations .unread .time {
    color: #0064ff;
}
.chat-list-user.chat-conversations .time {
    font-size: 10px;
    float: left;
    margin: 0 2px;
    color: #a2a2a2;
    position: absolute;
    right: 2px;
}
.chat-list-user.chat-conversations .avatar {
    width: 32px;
}
.chat-list-user.chat-conversations .user.active {
    background: #f5f5f5;
}
.chat-list-user.chat-conversations .user {
    width: 100%;
    float: left;
    position: relative;
}
.chat-list-user {
    width: 100%;
    padding: 0 0;
    position: relative;
}

.chat-list-user .avatar {
    width: 45px;
    float: left;
}
.chat-list-user .user:hover {
    background: #f5f5f5;
}
.chat-list-user .user {
    display: table;
    width: 100%;
    padding: 3px 6px;
    cursor: pointer;
}
.chat-list-user .name {
    width: calc(100% - 72px);
    float: left;
    margin: 0 2px 0 8px;
    color: #000;
    line-height: 18px;
    display: table;
    height: 45px;
    font-size: 12px;
}
.chat-list-user .name span {
    display: table-cell;
    vertical-align: middle;
}

.chat-list-user .online-status.online {
    background: #1ece00;
}
.chat-list-user .online-status {
    height: 10px;
    display: inline-block;
    width: 10px;
    background: #f1f1f1;
    border-radius: 50%;
    margin: 16px 0;
    position: absolute;
    right: 4px;
    top: 10px;
}

.chat-window .sticker-img {
    max-width: 80px;
}
.chat-window .stickers {
    position: absolute;
    bottom: 40px;
    background: #fff;
    width: 357px;
    border: solid 1px #d2d2d2;
    height: 300px;
    left: 30px;
    box-shadow: 1px 1px 4px #adadad;
}
.chat-window .stickers a img:hover {
    opacity: 0.7;
}
.chat-window .stickers a img {
    width: 50px;
    margin: 3px;
}
.chat-window.room {
    width: calc(100% - 170px);
    box-shadow: none;
    border-radius: 0;
    border: solid 1px #dcdcdc;
    float: left;
    margin: 0;
    height: 100%;
}
.chat-window.room .chat-window-content {
    height: calc(100% - 35px);
}
.chat-window-content .send-product {
    position: absolute;
    background: #ffffffe0;
    display: table;
    width: 80%;
    padding: 10px;
    z-index: 99;
    border-radius: 10px;
    color: #000;
    right: 2%;
    bottom: 39px;
    border: solid 1px #09baa0;
}

.chat-window-content .send-product .image {
    width: 45px;
    float: left;
    margin-right: 10px;
}
.chat-window-content .send-product div.info p {
    font-size: 12px;
    line-height: 18px;
    margin: 0;
}
.chat-window-content .send-product .price {
    color: red;
}
.chat-window-content .send-product div.info {
    float: left;
    display: table;
    width: calc(100% - 60px);
}
.chat-window-content .send-product > p {
    margin: 0;
}
.chat-window-content .send-product a.close {
    position: absolute;
    top: 3px;
    right: 8px;
}
.chat-window-content .send-product > div {
    display: table;
    width: 100%;
}
.chat-room .members {
    width: 170px;
    float: left;
    height: 100%;
    border: solid 1px #dcdcdc;
    border-right: none;
}
.chat-room .members .user:hover {
    background: #c0e8ff;
    cursor: pointer;
}
.chat-room .members .user {
    width: 100%;
    display: table;
    padding: 5px;
    position: relative;
}
.chat-room .members .user .online-status {
    height: 6px;
    display: block;
    width: 6px;
    background: #1ece00;
    border-radius: 50%;
    float: right;
    position: absolute;
    left: 23px;
    top: 23px;
}
.chat-room .members .user .name {
    font-size: 11px;
    color: #333;
    font-weight: bold;
}

.chat-room .members .user .avatar {
    width: 25px;
    float: left;
    margin-right: 5px;
}

.scroll-style {
    overflow-y: auto;
    overflow-x: hidden;
    /* For Firefox - thin scrollbar */
    scrollbar-width: thin;
    scrollbar-color: transparent transparent;
}

/* Firefox scrollbar on hover */
.scroll-style:hover {
    scrollbar-color: rgba(0, 0, 0, 0.3) transparent;
}

/* Webkit browsers (Chrome, Safari, Edge) */
.scroll-style::-webkit-scrollbar {
    width: 6px;
}

.scroll-style::-webkit-scrollbar-track {
    background: transparent;
    margin: 5px 0;
}

.scroll-style::-webkit-scrollbar-thumb {
    background-color: transparent;
    border-radius: 3px;
    transition: background-color 0.2s ease;
}

.scroll-style:hover::-webkit-scrollbar-thumb {
    background-color: rgba(0, 0, 0, 0.3);
}

.scroll-style::-webkit-scrollbar-thumb:hover {
    background-color: rgba(0, 0, 0, 0.5);
}

/*noti*/
.notification-count {
    position: absolute;
    top: -3px;
    font-size: 12px;
    color: #fff;
    background: red;
    padding: 0;
    right: -8px;
    border-radius: 14px;
    font-weight: bold;
    min-width: 18px;
    text-align: center;
    line-height: 18px;
    font-family: arial;
}
body ul.notification-list {
    width: 350px;
    right: 0;
    left: auto;
}

ul.notification-list li {
    color: #333;
    display: table;
    width: 100%;
    background: #fff;
    border-bottom: solid 1px #d2d2d2;
    padding: 5px 8px;
    margin: 0;
    -webkit-box-sizing: border-box; /* Safari/Chrome, other WebKit */
    -moz-box-sizing: border-box; /* Firefox, other Gecko */
    box-sizing: border-box; /* Opera/IE 8+ */
}
ul.notification-list li.notification-item a {
    display: table;
    width: 100%;
    padding: 0;
}
ul.notification-list .notification-header p {
    margin: 0;
}
ul.notification-list a {
    padding: 0;
}
ul.notification-list .notification-header a {
    font-size: 12px !important;
    color: #333;
    padding-top: 3px;
}
ul.notification-list li.notification-item a:hover,
ul.notification-list li.notification-view-all a:hover {
    background: none;
}
ul.notification-list li.notification-item.gray {
    background: #efefef;
}
ul.notification-list li.notification-item.gray:hover,
ul.notification-list li.notification-item:hover {
    background: #f5f5f5;
}
ul.notification-list li.notification-item a .img-notification img {
    max-width: 42px;
    position: absolute;
    top: 50%;
    left: 50%;
    margin-right: -50%;
    transform: translate(-50%, -50%);
    max-height: 42px;
}
ul.notification-list li.notification-item a .img-notification {
    float: left;
    width: 42px;
    height: 42px;
    margin-right: 10px;
    border-radius: 4px;
    display: table;
    position: relative;
    overflow: hidden;
}
ul.notification-list li.notification-item .notification-content {
    font-size: 12px;
    width: calc(100% - 58px);
    float: left;
    display: table;
}
ul.notification-list li.notification-item .notification-content .notification-text span {
    display: inline;
}
ul.notification-list li.notification-item .notification-content .notification-text {
    white-space: pre-line;
    color: #333;
    line-height: 20px;
    display: table;
}
ul.notification-list li.notification-item .notification-content .notification-time i {
    font-size: 10px;
}
ul.notification-list li.notification-item .notification-content .notification-time {
    color: #6d6d6d;
    font-size: 12px;
    line-height: 20px;
    display: table;
}
ul.notification-list li.notification-view-all {
    border: none;
    padding-bottom: 0;
    padding: 5px 8px;
    text-align: center;
}
ul.notification-list li.notification-view-all a {
    font-size: 12px !important;
    width: 100%;
    text-align: center;
    color: #007bff;
}
.alert-notification {
    background: #fff;
    box-shadow: 1px 1px 4px 0px #5454546e;
    width: 300px;
    padding: 10px;
    border: solid 1px #e0e0e0;
    font-size: 12px;
    color: #333;
    line-height: 1.5;
}
.alert-notification .notification-image {
    max-width: 40px;
    float: left;
    margin-right: 10px;
    display: table;
    border-radius: 4px;
}
.alert-notification .noticebar-item-body {
    display: table;
    width: calc(100% - 65px);
    float: left;
    padding-top: 5px;
}
.chat-tabs {
    display: flex;
    gap: 5px;
    padding: 10px 8px;
}
.chat-tabs .chat-tab {
    border: none;
    padding: 8px 15px;
    font-size: 12px;
    color: #333;
    background: #f5f5f5;
    border-radius: 5px;
    cursor: pointer;
}
.chat-tabs .chat-tab.active {
    background: #ffbc6e;
}
@media (max-width: 480px) {
    .show-chat-btn {
        left: 5px;
    }
    .chat-right-fixed {
        width: 100%;
        right: 0;
    }
    .chat-right-fixed .box-left {
        position: absolute;
        z-index: 99;
        width: 100%;
    }
    .chat-right-fixed .box-right {
        width: 100%;
    }
    .support-row {
        grid-template-columns: 1fr;
    }
}