/* Modern Clients Chat Styling */


/* Notifications */

.notification {
    display: inline-block;
    position: relative;
    padding: 0.6em;
    border-radius: 0.2em;
    font-size: 1.3em;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
}

.notification::before,
.notification::after {
    color: #fff;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.notification::before {
    display: block;
    content: "\f0f3";
    font-family: "FontAwesome";
    transform-origin: top center;
}

.notification::after {
    font-family: Arial;
    font-size: 0.7em;
    font-weight: 700;
    position: absolute;
    top: -15px;
    right: -15px;
    padding: 5px 8px;
    line-height: 100%;
    border: 2px #fff solid;
    border-radius: 60px;
    opacity: 0;
    content: attr(data-count);
    opacity: 0;
    transform: scale(0.5);
    transition: transform, opacity;
    transition-duration: 0.3s;
    transition-timing-function: ease-out;
}

.notification.notify::before {
    animation: ring 1.5s ease;
}

.notification.show-count::after {
    transform: scale(1);
    opacity: 1;
}

@keyframes ring {
    0% {
        transform: rotate(35deg);
    }
    12.5% {
        transform: rotate(-30deg);
    }
    25% {
        transform: rotate(25deg);
    }
    37.5% {
        transform: rotate(-20deg);
    }
    50% {
        transform: rotate(15deg);
    }
    62.5% {
        transform: rotate(-10deg);
    }
    75% {
        transform: rotate(5deg);
    }
    100% {
        transform: rotate(0deg);
        -webkit-transform: rotate(0deg);
        -moz-transform: rotate(0deg);
        -ms-transform: rotate(0deg);
        -o-transform: rotate(0deg);
    }
}


/* Chat Notifications */

.chatNewNotification {
    background: #2ac865;
    position: absolute !important;
    padding: 0.6em;
    border-radius: 0.2em;
    font-size: 1.3em;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
    right: 58px !important;
    top: -18px;
    display: none;
    -webkit-border-radius: 0.2em;
    -moz-border-radius: 0.2em;
    -ms-border-radius: 0.2em;
    -o-border-radius: 0.2em;
}

.chatNewNotification::before,
.chatNewNotification::after {
    color: #fff;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.chatNewNotification::before {
    display: block;
    content: "\f0f3";
    font-family: "FontAwesome";
    transform-origin: top center;
    position: absolute;
    right: -2px;
    top: -3px;
    padding: 6px;
    padding-top: 6px;
    border-radius: 7px;
    padding-top: 3px;
    padding-bottom: 3px;
    -webkit-border-radius: 7px;
    -moz-border-radius: 7px;
    -ms-border-radius: 7px;
    -o-border-radius: 7px;
    font-size: 15px;
}

.chatNewNotification::after {
    right: -18px;
    top: -11px;
    font-family: Arial;
    font-size: 0.6em;
    font-weight: 700;
    position: absolute;
    padding: 3px 6px;
    line-height: 100%;
    border: 2px solid #fff;
    border-radius: 50%;
    opacity: 0;
    content: attr(data-count);
    opacity: 0;
    transition: transform, opacity;
    transition-duration: 0.3s;
    transition-timing-function: ease-out;
    -webkit-transition: transform, opacity;
    -moz-transition: transform, opacity;
    -ms-transition: transform, opacity;
    -o-transition: transform, opacity;
    transform: scale(0.5);
    -webkit-transform: scale(0.5);
    -moz-transform: scale(0.5);
    -ms-transform: scale(0.5);
    -o-transform: scale(0.5);
    background: #2ac865;
}

.chatNewNotification.notify::before {
    animation: ring 1.5s ease;
    -webkit-animation: ring 1.5s ease;
}

.chatNewNotification.show-count::after {
    transform: scale(1);
    opacity: 1;
    -webkit-transform: scale(1);
    -moz-transform: scale(1);
    -ms-transform: scale(1);
    -o-transform: scale(1);
}

@keyframes ring {
    0% {
        transform: rotate(35deg);
        -webkit-transform: rotate(35deg);
        -moz-transform: rotate(35deg);
        -ms-transform: rotate(35deg);
        -o-transform: rotate(35deg);
    }
    12.5% {
        transform: rotate(-30deg);
    }
    25% {
        transform: rotate(25deg);
    }
    37.5% {
        transform: rotate(-20deg);
    }
    50% {
        transform: rotate(15deg);
    }
    62.5% {
        transform: rotate(-10deg);
    }
    75% {
        transform: rotate(5deg);
    }
    100% {
        transform: rotate(0deg);
    }
}

.ch_pointer.chat_clients_view .ch_pointer-main {
    position: fixed;
    width: 64px;
    bottom: 24px;
    right: 24px;
    color: #fff;
    background: #667eea;
    padding: 0 15px 2px 15px;
    transition: all 0.3s ease;
    font-size: 15px;
    box-shadow: 0 8px 32px rgba(102, 126, 234, 0.4), 0 4px 16px rgba(0,0,0,0.15);
    height: 64px;
    border-radius: 50%;
    z-index: 999990;
    cursor: pointer;
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.ch_pointer .ch_pointer-main:hover {
    /*background: linear-gradient(135deg, #5a67d8 0%, #6b46c1 100%);*/
    transform: scale(1.05) translateY(-2px);
    box-shadow: 0 12px 40px rgba(102, 126, 234, 0.5), 0 6px 20px rgba(0,0,0,0.2);
}

.ch_pointer .ch_pointer-main svg {
    fill: #fff;
}

.ch_pointer .ch_pointer-main-first,
.ch_pointer .ch_pointer-main-under {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    margin: auto;
    width: 30px;
    height: 30px;
}

.ch_pointer .ch_pointer-main-first svg,
.ch_pointer .ch_pointer-main-under svg {
    width: 30px;
    height: 30px;
}

.ch_pointer .ch_pointer-main-under {
    display: none;
    width: 20px;
    height: 20px;
}

.ch_pointer .ch_pointer-main-under svg {
    width: 20px;
    height: 20px;
}

.ch_pointer .ch_pointer-main-body {
    display: inline-block;
    width: 100%;
    padding-left: 25px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ch_pointer.ch_pointer-open .ch_pointer-main {
    width: 60px;
}

.top_close_icon {
    position: absolute;
    z-index: 9;
    right: 16px;
    top: 12px;
    cursor: pointer;
    width: 32px;
    height: 32px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    backdrop-filter: blur(10px);
}

.top_close_icon:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

.info_company_name span {
    color: #000;
    font-size: 26px;
}

.info_company_name {
    margin-top: 16px;
    text-align: center;
    background: #fff;
    width: fit-content;
    border-radius: 12px;
    opacity: 0.6;
    margin: 0 auto;
    padding: 2px 14px 0px 14px;
    margin-top: 10px;
    -webkit-border-radius: 12px;
    -moz-border-radius: 12px;
    -ms-border-radius: 12px;
    -o-border-radius: 12px;
}

.company_top_info {
    /*height: 200px;*/
    position: relative;
    min-height: 55px;
    color: white;
    transition: height 160ms ease-out 0s;
    background: #667eea;
    border-radius: 8px 8px 0 0;
    overflow: hidden;
}

.company_top_info_parent {
    position: absolute;
    top: 0px;
    left: 0px;
    right: 0px;
    box-sizing: border-box;
    padding: 24px 40px 87px;
}

.mtopbottomfixed {
    margin-top: 53px;
    margin-bottom: -38px;
}

.company_logo_placeholder a {
    pointer-events: none;
    cursor: default;
}

.company_logo_placeholder {
    width: fit-content;
    margin-top: -7px;
    margin-left: -26px;
}

.company_logo_placeholder a {
    color: #ffffff;
}

.company_logo_placeholder img {
    display: flex;
}

.intercom-15952ex {
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
}

.intercom-15952ex>span {
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
}

.intercom-chmsnk {
    color: rgb(255, 255, 255);
    display: block;
    line-height: 1.5em;
}

.intercom-15952ex>span>span {
    white-space: pre;
}

/*.company_top_info::before {*/
/*    content: '';*/
/*    opacity: 0.75;*/
/*    top: -36px;*/
/*    left: 7px;*/
/*    bottom: 40px;*/
/*    right: -10px;*/
/*    position: absolute;*/
/*    background-image: url(./images/main_bg.svg);*/
/*    background-size: cover;*/
/*    pointer-events: none;*/
/*    margin-left: 183px;*/
/*}*/

.customer_first_co_wrapper {
    z-index: 1;
    width: 380px;
    background-color: #fff;
    border-radius: 12px;
    font-size: 14px;
    line-height: 1.4;
    color: #000;
    overflow: hidden;
    position: relative;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15), 0 8px 16px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
}


.staff_notification[data-notification]:after {
    content: attr(data-notification);
    animation: zoom 3s 3s both infinite;
    -webkit-animation: zoom 3s 3s both infinite;
}

.staff_notification {
    display: none;
    background: #6e8adc;
    width: 18px;
    font-size: 13px;
    text-align: center;
    border-radius: 50%;
    margin-left: 3px;
    position: absolute;
    clear: both;
    top: 0;
}

/*ol.chat {*/
/*    height: 390px;*/
/*    padding-top: 43px;*/
/*}*/

.userIsTyping {
    display: none;
    position: absolute;
    bottom: 34px;
    left: 0;
    clear: both;
}

.userIsTyping img {
    width: 30px;
}

.staff_image_second_children_div {
    position: relative;
}

.staff_container {
    cursor: pointer;
    display: inline-block;
    margin-left: -6px;
    padding: 0px;
}

.admin_name_placeholder a.admin_href_text:hover {
    color: #dedede;
    -webkit-transition: all 0.2s;
    -moz-transition: all 0.2s;
    -ms-transition: all 0.2s;
    -o-transition: all 0.2s;
    transition: all 0.2s;
}

.admin_name_placeholder a.admin_href_text {
    color: #fff;
    font-size: 15px;
}

.admin_name_placeholder {
    padding: 4px;
    background: #d4d2d2;
}

.chat {
    list-style: none;
    background: none;
    padding: 0;
    margin: 0;
}

.isUnseenPadding {
    padding-right: 2.5rem !important;
}

.tooltip {
    z-index: 999999999999;
}

.chat li {
    padding: 8px;
    padding: 0.5rem 0.7rem 0.5rem 0.5rem;
    font-size: 1rem;
    overflow: hidden;
    display: -webkit-box;
    display: -webkit-flex;
    display: -ms-flexbox;
    display: flex;
    color: #000000;
}

.fa.fa-paper-plane.send_client_message {
    position: relative;
    width: 44px;
    height: 44px;
    background: #667eea;
    color: #ffffff;
    border-radius: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3), 0 2px 4px rgba(0,0,0,0.1);
    border: none;
    flex-shrink: 0;
}

.fa.fa-paper-plane.send_client_message:hover {
    /*background: linear-gradient(135deg, #5a67d8 0%, #6b46c1 100%);*/
    transform: scale(1.08) translateY(-2px);
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.4), 0 4px 8px rgba(0,0,0,0.15);
}

.customer_admin .msg,
.customer_admin {
    -webkit-box-pack: start;
    -webkit-justify-content: flex-start;
    -ms-flex-pack: start;
    justify-content: flex-start;
    -webkit-box-align: start;
    -webkit-align-items: flex-start;
    -ms-flex-align: start;
    -ms-grid-row-align: flex-start;
    align-items: flex-start;
}

.client {
    -webkit-box-pack: end;
    -webkit-justify-content: flex-end;
    -ms-flex-pack: end;
    justify-content: flex-end;
    -webkit-box-align: end;
    -webkit-align-items: flex-end;
    -ms-flex-align: end;
    -ms-grid-row-align: flex-end;
    align-items: flex-end;
}

li.customer_admin:last-child {
    margin-bottom: 20px;
}

.customer_admin .msg {
    -webkit-box-ordinal-group: 2;
    -webkit-order: 1;
    -ms-flex-order: 1;
    order: 1;
    border-top-left-radius: 2px;
    margin-top: 5px;
}

.startMic {
    position: relative;
    width: 44px;
    height: 44px;
    fill: #667eea;
    cursor: pointer;
    border-radius: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.15) 0%, rgba(118, 75, 162, 0.15) 100%);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(102, 126, 234, 0.3);
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.2);
    flex-shrink: 0;
}

.startMic:hover {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.2) 0%, rgba(118, 75, 162, 0.2) 100%);
    fill: #5a67d8;
    transform: scale(1.05) translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.2);
}

#clientChat .chat p audio {
    max-width: 250px;
    height: 30px;
    margin-top: 5px;
}

.client .msg {
    -webkit-box-ordinal-group: 2;
    -webkit-order: 1;
    -ms-flex-order: 1;
    order: 1;
    border-top-right-radius: 2px;
}

.path {
    stroke: #8771ff;
    stroke-linecap: round;
    animation: dash 1.5s ease-in-out infinite;
    -webkit-animation: dash 1.5s ease-in-out infinite;
}

.message_client_loader {
    animation: rotate 2s linear infinite;
    display: none;
    z-index: 2;
    position: absolute;
    top: 30%;
    left: 40%;
    width: 85px;
    height: 85px;
    opacity: 1;
    -webkit-animation: rotate 2s linear infinite;
}

@keyframes dash {
    0% {
        stroke-dasharray: 1, 150;
        stroke-dashoffset: 0;
    }
    50% {
        stroke-dasharray: 90, 150;
        stroke-dashoffset: -35;
    }
    100% {
        stroke-dasharray: 90, 150;
        stroke-dashoffset: -124;
    }
}

@keyframes rotate {
    100% {
        transform: rotate(360deg);
        -webkit-transform: rotate(360deg);
        -moz-transform: rotate(360deg);
        -ms-transform: rotate(360deg);
        -o-transform: rotate(360deg);
    }
}

.msg {
    word-wrap: break-word;
    max-width: 85%;
    width: auto;
    padding: 14px 18px;
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border: 1px solid rgba(203, 213, 224, 0.6);
    border-radius: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08), 0 1px 2px rgba(0,0,0,0.04);
    transition: all 0.2s ease;
    backdrop-filter: blur(10px);
}

.msg:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,0.12), 0 2px 4px rgba(0,0,0,0.06);
    transform: translateY(-1px);
}

.client_name {
    float: right;
    margin-top: -4px;
    font-size: 12px;
    color: #667eea;
    font-weight: 600;
    text-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

.msg p {
    color: #1d1c1d;
    margin: 0;
    font-size: 14px;
    line-height: 1.4;
    clear: both;
    white-space: pre-wrap;
}

.msg .time {
    font-size: 12px;
    color: #868e96;
    margin-top: 4px;
    float: right;
    cursor: default;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

.closeIcon {
    vertical-align: middle;
}

.firstDiv {
    display: none;
    position: fixed;
    bottom: 100px;
    right: 24px;
    z-index: 999999999;
    box-sizing: content-box;
    overflow: hidden;
    border-radius: 16px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.25), 0 16px 32px rgba(0, 0, 0, 0.15);
    width: 420px;
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.thirdDiv {
    display: flex;
    align-items: center;
    padding: 0px 30px 0px 0px;
    font-size: 15px;
    font-weight: normal;
}

.clients_textarea {
    flex: 1;
    overflow: hidden;
    padding: 12px 18px;
    height: 44px;
    min-height: 44px;
    max-height: 44px;
    border: 2px solid rgba(203, 213, 224, 0.6);
    border-radius: 22px;
    outline: none;
    -webkit-box-shadow: none;
    -moz-box-shadow: none;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04), inset 0 1px 2px rgba(0,0,0,0.02);
    resize: none;
    font-size: 14px;
    line-height: 1.4;
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    transition: all 0.2s ease;
    margin: 0;
    backdrop-filter: blur(10px);
}

.clients_textarea:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1), 0 4px 12px rgba(0,0,0,0.08);
    background: #ffffff;
    transform: translateY(-1px);
}

.clients_textarea::placeholder {
    color: #a0aec0;
    font-style: italic;
}

.circled {
    width: 50px;
    height: 50px;
    border-radius: 34%;
    -webkit-border-radius: 34%;
    -moz-border-radius: 34%;
    -ms-border-radius: 34%;
    -o-border-radius: 34%;
}

.m-area {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    display: block;
    height: 455px;
    overflow-y: auto;
    overflow-x: hidden;
    border: none;
    padding: 20px 16px;
    box-sizing: border-box;
    /*border-radius: 0 0 12px 12px;*/
}

.m-area::-webkit-scrollbar {
    width: 6px;
}

.m-area::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.m-area::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 3px;
}

.m-area::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

.admin_name {
    padding-left: 8px;
    width: -webkit-fill-available;
    margin-left: -8px;
    font-size: 12px;
    color: #764ba2;
    font-weight: 600;
    text-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

body #clientChat .attachment,
.placeholder-messages .attachment {
    position: relative;
    width: 44px;
    height: 44px;
    font-size: 18px;
    color: #667eea;
    cursor: pointer;
    border-radius: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.15) 0%, rgba(118, 75, 162, 0.15) 100%);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(102, 126, 234, 0.3);
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.2);
    flex-shrink: 0;
}

body #clientChat .attachment:hover {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.2) 0%, rgba(118, 75, 162, 0.2) 100%);
    color: #5a67d8;
    transform: scale(1.05) translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.2);
}

/* Modern input container styling */
.placeholder-messages {
    position: relative;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    border-top: 1px solid rgba(203, 213, 224, 0.6);
    padding: 12px 16px;
    /*height: 68px;*/
    box-sizing: border-box;
    border-radius: 0 0 12px 12px;
    backdrop-filter: blur(10px);
}

.placeholder-messages form {
    position: relative;
    height: 100%;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0;
}

/* Form element order: textarea -> mic -> attachment -> send button */
/*.clients_textarea {*/
/*    order: 1;*/
/*}*/

/*.startMic {*/
/*    order: 2;*/
/*}*/

/*.placeholder-messages .attachment {*/
/*    order: 3;*/
/*}*/

/*.fa.fa-paper-plane.send_client_message {*/
/*    order: 4;*/
/*}*/

body .onlineStaff {
    border-color: #10b981 !important;
    box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.2) !important;
}

img.emoji {
    width: 22px !important;
    height: 22px !important;
    background-size: contain !important;
    float: none !important;
    margin-left: 3px;
    margin-top: -1px;
}

.lity {
    z-index: 999999999 !important;
}

img.prchat_convertedImage {
    border-radius: 0%;
    max-width: 27vh;
    width: auto;
    width: -webkit-fill-available;
}

* Chat Full Screen Loader for uploading files */ .chat-module-loader:before {
    content: 'Uploading...';
    position: absolute;
    bottom: 50vh;
    color: #ffffff;
}

.chat-module-loader {
    display: flex;
    position: absolute;
    width: 100%;
    align-items: center;
    background: rgb(0, 0, 0, 0.6);
    z-index: 99999999999999999;
    height: 100%;
    top: 50%;
    left: 50%;
    padding-left: 45%;
    transform: translate(-50%, -50%);
    -webkit-transform: translate(-50%, -50%);
    -moz-transform: translate(-50%, -50%);
    -ms-transform: translate(-50%, -50%);
    -o-transform: translate(-50%, -50%);
}

.chat-module-loader div {
    animation: chat-module-loader 1.2s cubic-bezier(0.5, 0, 0.5, 1) infinite;
    transform-origin: 32px 32px;
    -webkit-animation: chat-module-loader 1.2s cubic-bezier(0.5, 0, 0.5, 1) infinite;
}

.chat-module-loader div:after {
    content: ' ';
    display: block;
    position: absolute;
    width: 6px;
    height: 6px;
    border-radius: 20%;
    background: #fff;
    margin: -3px 0 0 -3px;
}

.chat-module-loader div:nth-child(1) {
    animation-delay: -0.036s;
}

.chat-module-loader div:nth-child(1):after {
    top: 50px;
    left: 50px;
}

.chat-module-loader div:nth-child(2) {
    animation-delay: -0.072s;
}

.chat-module-loader div:nth-child(2):after {
    top: 54px;
    left: 45px;
}

.chat-module-loader div:nth-child(3) {
    animation-delay: -0.108s;
}

.chat-module-loader div:nth-child(3):after {
    top: 57px;
    left: 39px;
}

.chat-module-loader div:nth-child(4) {
    animation-delay: -0.144s;
}

.chat-module-loader div:nth-child(4):after {
    top: 58px;
    left: 32px;
}

.chat-module-loader div:nth-child(5) {
    animation-delay: -0.18s;
}

.chat-module-loader div:nth-child(5):after {
    top: 57px;
    left: 25px;
}

.chat-module-loader div:nth-child(6) {
    animation-delay: -0.216s;
}

.chat-module-loader div:nth-child(6):after {
    top: 54px;
    left: 19px;
}

.chat-module-loader div:nth-child(7) {
    animation-delay: -0.252s;
}

.chat-module-loader div:nth-child(7):after {
    top: 50px;
    left: 14px;
}

.chat-module-loader div:nth-child(8) {
    animation-delay: -0.288s;
}

.chat-module-loader div:nth-child(8):after {
    top: 45px;
    left: 10px;
}

@keyframes chat-module-loader {
    0% {
        transform: rotate(0deg);
        -webkit-transform: rotate(0deg);
        -moz-transform: rotate(0deg);
        -ms-transform: rotate(0deg);
        -o-transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
        -webkit-transform: rotate(360deg);
        -moz-transform: rotate(360deg);
        -ms-transform: rotate(360deg);
        -o-transform: rotate(360deg);
    }
}

/* Modern mobile responsive styles */
@media screen and (max-width: 768px) {
    .firstDiv {
        right: 0;
        left: 0;
        bottom: 0;
        width: 100%;
        height: 100vh;
        border-radius: 0;
        box-shadow: none;
        border: none;
    }
    
    .customer_first_co_wrapper {
        width: 100%;
        height: 100%;
        border-radius: 0;
        box-shadow: none;
        border: none;
        display: flex;
        flex-direction: column;
    }
    
    .company_top_info {
        height: 120px;
        border-radius: 0;
        background: #667eea;
    }
    
    .customer_main_placeholder_top {
        padding: 20px 16px;
        border-radius: 0;
        flex: 0 0 auto;
    }
    
    .staff_online_text {
        font-size: 16px;
        margin-bottom: 12px;
    }
    
    .staff_muted_text_info {
        display: none;
    }
    
    .staff_image_parent {
        overflow-y: auto;
        max-height: 80px;
        justify-content: center;
    }
    
    .staff_children_parent_child_div {
        width: 48px;
        height: 48px;
        margin: 0 4px;
    }
    
    .staff_children_parent_child_div img {
        width: 44px;
        height: 44px;
    }
    
    .m-area {
        height: calc(100vh - 300px);
        flex: 1;
        border-radius: 0;
        padding: 16px 12px;
    }
    
     .placeholder-messages {
         height: 80px;
         padding: 16px 12px;
         border-radius: 0;
         border-top: 2px solid rgba(203, 213, 224, 0.8);
     }
     
     .placeholder-messages form {
         gap: 6px;
     }
    
     .clients_textarea {
         height: 48px;
         min-height: 48px;
         max-height: 48px;
         font-size: 16px;
     }
     
     .fa.fa-paper-plane.send_client_message {
         width: 48px;
         height: 48px;
         font-size: 18px;
         border-radius: 24px;
     }
     
     .startMic {
         width: 48px;
         height: 48px;
         border-radius: 24px;
     }
     
     body #clientChat .attachment,
     .placeholder-messages .attachment {
         width: 48px;
         height: 48px;
         border-radius: 24px;
         font-size: 20px;
     }
    
    .ch_pointer .ch_pointer-main {
        width: 60px;
        height: 60px;
        bottom: 20px;
        right: 20px;
        border-radius: 50%;
    }
    
    .top_close_icon {
        right: 12px;
        top: 12px;
        width: 36px;
        height: 36px;
    }
    
    .customer_admins_wrapper {
         position: static;
         margin: 0;
        width: 100%;
    }
     
     .chat_staff_footer {
         margin-top: 8px;
         padding: 10px 12px 6px;
         border-radius: 6px;
     }
     
     .staff_footer_header {
         font-size: 11px;
         margin-bottom: 6px;
         gap: 6px;
     }
     
     .staff_footer_avatars .staff_children_parent_child_div {
         width: 32px;
         height: 32px;
     }
     
     .staff_footer_avatars .staff_children_parent_child_div img {
         width: 28px;
         height: 28px;
     }
     
     .staff_footer_avatars .staff_children_parent_child_div.active_staff {
         width: 36px;
         height: 36px;
     }
     
      .staff_footer_avatars .staff_children_parent_child_div.active_staff img {
          width: 30px;
          height: 30px;
      }
      
      .staff_footer_avatars .staff_children_parent_child_div::after {
          top: -32px;
          font-size: 10px;
          padding: 5px 8px;
      }
      
      .staff_footer_avatars .staff_children_parent_child_div::before {
          top: -6px;
      }
}

@media screen and (max-width: 480px) {
     .clients_textarea {
         font-size: 16px;
         padding: 10px 14px;
     }
     
     .fa.fa-paper-plane.send_client_message {
         width: 46px;
         height: 46px;
         font-size: 17px;
     }
     
     .startMic {
         width: 46px;
         height: 46px;
     }
     
     body #clientChat .attachment,
     .placeholder-messages .attachment {
         width: 46px;
         height: 46px;
         font-size: 18px;
     }
    
    .placeholder-messages {
        height: 76px;
        padding: 14px 10px;
    }
    
    .placeholder-messages form {
        gap: 4px;
    }
    
    .staff_children_parent_child_div {
        width: 44px;
        height: 44px;
    }
    
    .staff_children_parent_child_div img {
        width: 40px;
        height: 40px;
    }
    
    .customer_main_placeholder_top {
        padding: 16px 12px;
    }
    
     .staff_online_text {
         font-size: 14px;
     }
     
     .chat_staff_footer {
         margin-top: 6px;
         padding: 8px 10px 4px;
         border-radius: 4px;
     }
     
     .staff_footer_header {
         font-size: 10px;
         margin-bottom: 4px;
         gap: 4px;
     }
     
     .staff_footer_header i {
         font-size: 12px;
     }
     
     .staff_footer_avatars .staff_image_wrapper {
         gap: 4px;
     }
     
     .staff_footer_avatars .staff_children_parent_child_div {
         width: 28px;
         height: 28px;
     }
     
     .staff_footer_avatars .staff_children_parent_child_div img {
         width: 24px;
         height: 24px;
     }
     
     .staff_footer_avatars .staff_children_parent_child_div.active_staff {
         width: 32px;
         height: 32px;
     }
     
      .staff_footer_avatars .staff_children_parent_child_div.active_staff img {
          width: 26px;
          height: 26px;
      }
      
      .staff_footer_avatars .staff_children_parent_child_div::after {
          top: -30px;
          font-size: 9px;
          padding: 4px 6px;
      }
      
      .staff_footer_avatars .staff_children_parent_child_div::before {
          top: -5px;
      }
}


/* Hide unwanted form elements */
form[name="staffMessagesFileForm"] {
    display: none !important;
    visibility: hidden !important;
    position: absolute !important;
    left: -9999px !important;
}

form[name="staffMessagesFileForm"] input[type="file"] {
    display: none !important;
    visibility: hidden !important;
}

form[name="staffMessagesFileForm"] input[type="submit"] {
    display: none !important;
    visibility: hidden !important;
}

/* Hide any visible file input elements that shouldn't be shown */
.placeholder-messages input[type="file"] {
    display: none !important;
    visibility: hidden !important;
}

.placeholder-messages input[type="submit"] {
    display: none !important;
    visibility: hidden !important;
}

/* Hide save button if it appears */
.placeholder-messages input[value="save"] {
    display: none !important;
    visibility: hidden !important;
}

/* Hide any other unwanted buttons */
.placeholder-messages .save {
    display: none !important;
    visibility: hidden !important;
}

/* Make sure only attachment icon is visible */
.placeholder-messages .attachment {
    display: flex !important;
    visibility: visible !important;
}

/* Compact Staff Members Footer */
.chat_staff_footer {
    margin-top: 12px;
    padding: 12px 16px 8px;
    background: linear-gradient(135deg, rgba(255,255,255,0.95) 0%, rgba(249,249,249,0.95) 100%);
    border-radius: 8px;
    border: 1px solid rgba(203, 213, 224, 0.4);
    backdrop-filter: blur(10px);
    position: relative;
    z-index: 1;
}

.staff_footer_header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
    font-size: 12px;
    font-weight: 600;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.staff_footer_header i {
    font-size: 14px;
    color: #667eea;
}

.staff_footer_avatars {
    display: flex;
    align-items: center;
    gap: 6px;
}

.staff_footer_avatars .staff_image_wrapper {
    margin: 0;
    display: flex;
    gap: 6px;
}

.staff_footer_avatars .staff_children_parent_child_div {
    width: 36px;
    height: 36px;
    border-width: 2px;
    margin: 0;
    transition: all 0.2s ease;
}

.staff_footer_avatars .staff_children_parent_child_div img {
    width: 32px;
    height: 32px;
    margin: 0;
}

.staff_footer_avatars .staff_children_parent_child_div:hover {
    transform: scale(1.1);
    border-color: rgba(102, 126, 234, 0.8);
    box-shadow: 0 4px 8px rgba(102, 126, 234, 0.2);
}

/* Disable tooltips on staff avatars to prevent flickering */
.staff_footer_avatars .staff_children_parent_child_div[data-toggle="tooltip"] {
    pointer-events: auto;
}

.staff_footer_avatars .staff_children_parent_child_div .tooltip {
    display: none !important;
}

/* Alternative: simpler hover info without tooltip */
.staff_footer_avatars .staff_children_parent_child_div::after {
    content: attr(title);
    position: absolute;
    top: -35px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0,0,0,0.85);
    color: white;
    font-size: 11px;
    padding: 6px 10px;
    border-radius: 6px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
    z-index: 99999;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    backdrop-filter: blur(4px);
}

.staff_footer_avatars .staff_children_parent_child_div:hover::after {
    opacity: 1;
}

/* Tooltip arrow pointing down */
.staff_footer_avatars .staff_children_parent_child_div::before {
    content: '';
    position: absolute;
    top: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-top: 4px solid rgba(0,0,0,0.85);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
    z-index: 99998;
}

.staff_footer_avatars .staff_children_parent_child_div:hover::before {
    opacity: 1;
}

.staff_footer_avatars .staff_children_parent_child_div.active_staff {
    /*border-width: 3px;*/
    border-color: #667eea;
    /*width: 40px;*/
    /*height: 40px;*/
    box-shadow: 0 0 0 2px rgba(102, 126, 234, 0.2), 0 4px 8px rgba(0,0,0,0.1);
    transform: scale(1.05);
}

.staff_footer_avatars .staff_children_parent_child_div.active_staff img {
    width: 34px;
    height: 34px;
}

.staff_footer_avatars .onlineStaff {
    border-color: #10b981 !important;
    box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.2) !important;
}

/* Seen / Unseen Feature */

.circle-unseen {
    position: relative;
    float: right;
    color: #929292;
    margin-right: -27px;
    margin-top: -44px;
    font-size: 16px;
}