:root {
    --crmc-large-font-size: 1.6rem;
    --crmc-medium-font-size: 0.9rem;
    --crmc-small-font-size: 0.8rem;
    --crmc-extra-small-font-size: 0.5rem;

    --crmc-icon-font-size: 1.6rem;
    --crmc-small-icon-font-size: 1.5rem;
    --crmc-extra-small-icon-font-size: 1.2rem;

    --crmc-letter-spacing: 0.05rem;

    --crmc-primary: linear-gradient(120deg, #00b5fd 0%, #0047b1 100%);
    --crmc-white-linear: linear-gradient(120deg, #ffffff 0%, #f8f8f8 100%);
    --crmc-yellow: linear-gradient(120deg, #f0c219 0%, #d26109 100%);
    --crmc-green: linear-gradient(120deg, #8BC34A 0%, #35690f 100%);
    --crmc-red: linear-gradient(120deg, #ff5934 0%, #a50000 100%);

    --crmc-transparent: rgba(255, 255, 255, 0);
    --crmc-blue: #0088de;
    --crmc-yellow-single: #f0c219;
    --crmc-black: #000000;
    --crmc-white: #ffffff;
    --crmc-darkest-grey: #888888;
    --crmc-grey: #f8f8f8;
    --crmc-dark-grey: #ececec;
}

.chat-loader {
    display: none;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
    box-sizing: border-box;
    background: var(--crmc-white);
    color: var(--crmc-blue);
    position: absolute;
    top: 0;
    left: 0;
    /* transition: all 0.3s; */
    z-index: 999999999999999999;
    visibility: hidden;
    opacity: 1;
}

.chat-spinner {
    display: inline-block;
    width: 2.5rem;
    height: 2.5rem;
    vertical-align: text-bottom;
    border: .28em solid currentColor;
    border-right-color: transparent;
    border-radius: 50%;
    -webkit-animation: chat-spinner-border .75s linear infinite;
    animation: chat-spinner-border .75s linear infinite;
}

.chat-text {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    white-space: nowrap;
    border: 0;
}

@keyframes chat-spinner-border {
    100% {
        -webkit-transform: rotate(360deg);
        transform: rotate(360deg);
    }
}

.crmc-main-container {
    display: block;
    position: fixed;
    bottom: 0;
    right: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
    font-size: var(--crmc-medium-font-size);
    letter-spacing: var(--crmc-letter-spacing);
    -webkit-tap-highlight-color: var( --crmc-transparent);
    user-select: none;
    z-index: 99999999999999;
}

.crmc-main-button {
    position: relative;
    background: var(--crmc-primary);
    color: var(--crmc-white);
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 15px;
    box-sizing: border-box;
    font-size: var(--crmc-icon-font-size);
    cursor: pointer;
    border-radius: 50%;
    margin: 15px;
    box-shadow: 0 14px 28px rgb(0 0 0 / 25%), 0 10px 10px rgb(0 0 0 / 22%);
}

.crmc-main-button-counter {
    position: absolute;
    top: -12px;
    right: -9px;
    background: var(--crmc-yellow);
    color: var(--crmc-white);
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 5px 8px 5px 8px;
    box-sizing: border-box;
    font-size: var(--crmc-small-font-size);
    border-radius: 50%;
    width: 30px;
    height: 30px;
}

.crmc-main-chat-box {
    position: fixed;
    bottom: 0;
    right: 0;
    width: 350px;
    height: 550px;
    margin: 10px;
    background: var(--crmc-white);
    margin-bottom: 90px;
    display: none;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    box-shadow: 0 14px 28px rgba(0,0,0,0.25), 0 10px 10px rgba(0,0,0,0.22);
    border-radius: 2px;
    overflow: hidden;
    box-sizing: border-box;
}

@media (max-width: 780px) {
    .crmc-main-chat-box {
        position: fixed;
        bottom: 0;
        right: 0;
        width: 100%;
        height: 100%;
        margin: 0;
        background: var(--crmc-white);
        margin-bottom: 0;
        display: none;
        flex-direction: column;
        align-items: flex-start;
        justify-content: flex-start;
        box-shadow: 0 14px 28px rgb(0 0 0 / 25%), 0 10px 10px rgb(0 0 0 / 22%);
        border-radius: 0;
        overflow: hidden;
        box-sizing: border-box;
    }
}

.crmc-chat-box-header {
    background: var(--crmc-primary);
    color: var(--crmc-white);
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 20px 15px;
    box-sizing: border-box;
}

.crmc-chat-box-header > div {
    display: flex;
    justify-content: flex-start;
    align-items: center;
}

.crmc-chat-box-header > div > i {
    font-size: var(--crmc-small-icon-font-size);
    background: var(--crmc-white-linear);
    color: var(--crmc-blue);
    border-radius: 50%;
    padding: 10px;
    box-sizing: border-box;
    margin-right: 10px;
}

.crmc-chat-box-header > div > span {
    font-weight: 600;
}

.crmc-chat-box-header > i {
    font-size: var(--crmc-small-icon-font-size);
    margin-top: -3px;
    cursor: pointer;
}

.crmc-chat-box-body-container {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.crmc-chat-box-body {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    height: 100%;
    overflow: hidden;
    width: 100%;
    box-sizing: border-box;
    overflow-y: auto;
    overscroll-behavior: contain;
}

.crmc-chat-box-body-login-main {
    padding: 20px;
}

.crmc-chat-box-body::-webkit-scrollbar {
    width: 0;
}

.crmc-chat-box-body::-webkit-scrollbar-track {
    box-shadow: inset 0 14px 28px rgba(0,0,0,0.25), inset 0 10px 10px rgba(0,0,0,0.22);
}

.crmc-chat-box-body::-webkit-scrollbar-thumb {
    background: var(--crmc-green);
}

.crmc-chat-box-body .crmc-chat-box-body-login-main .crmc-login-main-header {
    font-size: var(--crmc-small-font-size);
    margin-bottom: 25px;
}

.crmc-chat-box-body .crmc-chat-box-body-login-main .crmc-login-form-group {
    margin-bottom: 20px;
}

.crmc-chat-box-body .crmc-chat-box-body-login-main input, .crmc-chat-box-body .crmc-chat-box-body-login-main button {
    background: var(--crmc-grey);
    width: 100%;
    padding: 13px !important;
    box-sizing: border-box;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    border-radius: 45px !important;
    border: 0 !important;
    outline: none !important;
    font-size: var(--crmc-small-font-size) !important;
    font-family: 'Poppins', sans-serif !important;
    letter-spacing: var(--crmc-letter-spacing) !important;
    text-transform: none !important;
    color: var(--crmc-black) !important;
    -webkit-text-fill-color: var(--crmc-black) !important;
}

.crmc-chat-box-body .crmc-chat-box-body-login-main button {
    justify-content: center;
    background: var(--crmc-yellow) !important;
    color: var(--crmc-white) !important;
    -webkit-text-fill-color: var(--crmc-white) !important;
    cursor: pointer;
}

.crmc-chat-box-body .crmc-chat-box-body-login-main button i {
    font-size: var(--crmc-extra-small-icon-font-size);
    margin-right: 10px;
    margin-top: -3px;
}

.crmc-chat-box-body .crmc-chat-box-body-main {
    font-size: var(--crmc-small-font-size);
    background: var(--crmc-green);
    color: var(--crmc-white);
    padding: 10px;
    box-sizing: border-box;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    margin: 0 auto;
    margin-bottom: 20px;
    border-radius: 45px;
}

.crmc-chat-box-body .crmc-chat-box-body-main .crmc-chat-box-body-main-left {
    display: flex;
    justify-content: flex-start;
    align-items: center;
}

.crmc-chat-box-body .crmc-chat-box-body-main .crmc-chat-box-body-main-left .crmc-chat-box-body-main-left-inner {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    width: 220px;
}

.crmc-chat-box-body .crmc-chat-box-body-main .crmc-chat-box-body-main-left .crmc-chat-box-body-main-left-inner .preview-message {
    color: var(--crmc-darkest-grey);
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    width: 100%;
    display: flex;
    justify-content: flex-start;
    align-items: center;
}

.crmc-chat-box-body .crmc-chat-box-body-main .crmc-chat-box-body-main-left .crmc-chat-box-body-main-left-inner .preview-message.unread {
    color: var(--crmc-black);
    font-weight: 600;
}

.crmc-chat-box-body .crmc-chat-box-body-main .crmc-chat-box-body-main-left i {
    font-size: var(--crmc-extra-small-icon-font-size);
    margin-right: 10px;
    background: var(--crmc-yellow);
    border-radius: 50%;
    padding: 8px;
    color: var(--crmc-white);
}

.crmc-chat-box-body .crmc-chat-box-body-main .crmc-chat-box-body-main-left .user-live-status {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    margin-right: 10px;
}

.crmc-chat-box-body .crmc-chat-box-body-main .crmc-chat-box-body-main-left .user-live-status.online {
    background: var(--crmc-green);
}

.crmc-chat-box-body .crmc-chat-box-body-main .crmc-chat-box-body-main-left .user-live-status.offline {
    background: var(--crmc-red);
}

.crmc-chat-box-body .crmc-chat-box-body-main .crmc-chat-box-body-main-right i {
    font-size: var(--crmc-extra-small-icon-font-size);
}

/* inbox */

.crmc-chat-box-body .crmc-chat-box-body-main .crmc-chat-box-body-main-center {
    display: flex;
    justify-content: center;
    align-items: center;
}

.crmc-chat-box-body .crmc-chat-box-body-main .crmc-chat-box-body-main-center i {
    font-size: var(--crmc-extra-small-icon-font-size);
    margin-right: 10px;
    padding: 8px 0;
}

.crmc-chat-box-body .crmc-chat-box-body-main .crmc-chat-box-body-main-center .user-live-status {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    margin-right: 10px;
    background: var(--crmc-green);
}

.crmc-chat-box-footer-main {
    width: 100%;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    padding: 15px;
    box-sizing: border-box;
}

.crmc-chat-box-footer-main-left {
    background: var(--crmc-grey);
    width: 100%;
    margin-right: 10px;
    padding: 0 13px;
    box-sizing: border-box;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    border-radius: 45px;
}

.crmc-chat-box-footer-main-left input {
    border: 0 !important;
    width: 100% !important;
    outline: none !important;
    font-size: var(--crmc-small-font-size) !important;
    font-family: 'Poppins', sans-serif !important;
    letter-spacing: var(--crmc-letter-spacing) !important;
    margin-right: 10px !important;
    background: var(--crmc-grey) !important;
    padding: 13px 0 !important;
    color: var(--crmc-black) !important;
    -webkit-text-fill-color: var(--crmc-black) !important;
    text-transform: none !important;
}

.crmc-chat-box-footer-main-left input:-webkit-autofill,
.crmc-chat-box-footer-main-left input:-webkit-autofill:hover,
.crmc-chat-box-footer-main-left input:-webkit-autofill:focus {
    box-shadow: 0 0 0px 1000px var(--crmc-grey) inset !important;
    -webkit-text-fill-color: var(--crmc-black) !important;
}

.crmc-chat-box-footer-main-left i {
    font-size: var(--crmc-extra-small-icon-font-size);
    cursor: pointer;
}

.crmc-chat-box-footer-main-left i.icon-loader {
    animation: rotateUploader 3500ms infinite linear;
}

@keyframes rotateUploader {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

.crmc-chat-box-footer-main-right {
    display: flex;
    justify-content: center;
    align-items: center;
}


.crmc-chat-box-footer-main-right i {
    background: var(--crmc-yellow);
    font-size: var(--crmc-extra-small-icon-font-size);
    cursor: pointer;
    color: var(--crmc-white);
    padding: 12px;
    border-radius: 50%;
}

.crmc-chat-box-message-main {
    padding: 20px;
    box-sizing: border-box;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    overflow-y: auto;
    background: url(/chat/assets/image/bg.png) repeat;
    user-select: text;
    position: relative;
    /* scroll-behavior: smooth; */
    overscroll-behavior: contain;
}

.crmc-chat-box-message-main::-webkit-scrollbar {
    width: 0;
}

.crmc-chat-message-body {
    display: flex;
    width: 100%;
    box-sizing: border-box;
    margin-bottom: 15px;
}

.crmc-chat-message-body:last-child {
    margin-bottom: 0;
}

.crmc-chat-message-body.send-by-sender {
    justify-content: flex-end;
}

.crmc-chat-message-body.send-by-receiver {
    justify-content: flex-start;
}

.crmc-chat-message-body .chat-messge-body-main {    
    padding: 10px;
    border-radius: 2px;
    max-width: 80%;
    word-break: break-word;
}

.crmc-chat-message-body.send-by-sender .chat-messge-body-main {
    background: var(--crmc-white);
}

.crmc-chat-message-body.send-by-receiver .chat-messge-body-main {
    background: var(--crmc-white);
}

.crmc-chat-message-body .message-text {
    font-size: var(--crmc-small-font-size);
    display: flex;
    justify-content: center;
    align-items: center;
}

.crmc-chat-message-body .message-text i {
    margin-right: 10px;
    font-size: var(--crmc-extra-small-icon-font-size);
}

.crmc-chat-message-body .message-text a {
    text-decoration: none !important;
    color: #000000;
    word-break: break-all;
}

.crmc-chat-message-body-toptobottom {
    background: var(--crmc-grey);
    position: absolute;
    bottom: 74px;
    right: 0;
    margin: 20px;
    border-radius: 100%;
    padding: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    background: var(--crmc-white);
    cursor: pointer;
    box-shadow: 0 3px 6px rgb(0 0 0 / 16%), 0 3px 6px rgb(0 0 0 / 23%);
}

.unread-chat {
    background: var(--crmc-primary);
    width: 20px;
    height: 20px;
    display: block;
    justify-content: center;
    align-items: center;
    color: var(--crmc-white);
    margin-right: 5px;
    border-radius: 50%;
    font-size: var(--crmc-extra-small-font-size);
    display: inline-flex;
    padding: 2px 2px 0px 2px;
}

.crmc-text-body {
    display: block;
}

.chat-messge-body-main .crmc-text-body .text-body-time {
    font-size: 0.5rem;
    color: var(--crmc-darkest-grey);
    white-space: nowrap;
    margin-left: 5px;
    float: right;
    justify-content: flex-start;
    margin-top: 6px;
}
/*
     FILE ARCHIVED ON 05:15:00 Mar 29, 2023 AND RETRIEVED FROM THE
     INTERNET ARCHIVE ON 21:33:26 May 13, 2026.
     JAVASCRIPT APPENDED BY WAYBACK MACHINE, COPYRIGHT INTERNET ARCHIVE.

     ALL OTHER CONTENT MAY ALSO BE PROTECTED BY COPYRIGHT (17 U.S.C.
     SECTION 108(a)(3)).
*/
/*
playback timings (ms):
  captures_list: 0.376
  exclusion.robots: 0.03
  exclusion.robots.policy: 0.023
  esindex: 0.006
  cdx.remote: 7.432
  LoadShardBlock: 36.571 (3)
  PetaboxLoader3.datanode: 58.826 (5)
  PetaboxLoader3.resolve: 56.819 (2)
  load_resource: 113.119
  loaddict: 20.013
*/