/* Novin Clothing Live Chat 2.0.9 */
#chat-widget-button{
    position:fixed;right:24px;left:auto;bottom:24px;width:66px;height:66px;padding:0;
    border:1px solid #e8eef4;background:#fff;color:#59c3f3;border-radius:50%;
    display:flex;align-items:center;justify-content:center;cursor:pointer;
    box-shadow:0 12px 32px rgba(25,84,120,.20),0 2px 8px rgba(0,0,0,.07);
    z-index:99999;transition:transform .2s ease,box-shadow .2s ease,background .2s ease;
    -webkit-tap-highlight-color:transparent
}
#chat-widget-button:hover{transform:translateY(-3px);box-shadow:0 16px 38px rgba(25,84,120,.25),0 3px 10px rgba(0,0,0,.08)}
#chat-widget-button:active{transform:scale(.95)}
#chat-widget-button:focus-visible{outline:3px solid rgba(89,195,243,.28);outline-offset:3px}
#chat-widget-button .lc-chat-icon{width:34px;height:34px;display:block}
#chat-widget-button .lc-chat-icon path{stroke:currentColor}
#online-status-dot{position:absolute;top:2px;right:2px;width:14px;height:14px;border-radius:50%;border:2px solid #fff;box-sizing:border-box;box-shadow:0 1px 5px rgba(0,0,0,.12)}
.status-online{background:#20c997}.status-offline{background:#e5484d}

/* Right-side modern support popup */
#chat-box-popup{
    position:fixed;right:24px;left:auto;bottom:104px;width:390px;height:590px;
    max-width:calc(100vw - 30px);background:#fff;border:1px solid #e3edf4;border-radius:22px;
    box-shadow:0 22px 65px rgba(24,70,99,.24),0 4px 16px rgba(0,0,0,.06);
    display:flex;flex-direction:column;z-index:99999;direction:rtl;
    font-family:Tahoma,Arial,sans-serif;overflow:hidden;transform-origin:bottom right;
    animation:lcPopupIn .2s ease-out
}
.chat-popup-hidden{display:none!important}
@keyframes lcPopupIn{from{opacity:0;transform:translateY(12px) scale(.97)}to{opacity:1;transform:translateY(0) scale(1)}}

.chat-header{
    min-height:118px;padding:15px 16px;background:linear-gradient(135deg,#1788ee 0%,#2f6ff3 100%);
    color:#fff;display:flex;justify-content:space-between;align-items:center;gap:10px;
    border:0;position:relative
}
.chat-header:after{content:"";position:absolute;inset:0;background:radial-gradient(circle at 15% 10%,rgba(255,255,255,.15),transparent 32%);pointer-events:none}
.lc-brand{display:flex;align-items:center;gap:12px;position:relative;z-index:1;min-width:0}
.lc-brand-logo-wrap{
    width:82px;height:82px;border-radius:15px;background:rgba(255,255,255,.98);
    display:flex;align-items:center;justify-content:center;flex:0 0 auto;
    box-shadow:0 5px 18px rgba(0,46,110,.16);overflow:hidden
}
.lc-brand-logo{width:76px;height:76px;object-fit:contain;display:block}
.lc-brand-text{display:flex;flex-direction:column;gap:7px;min-width:0}
.chat-title{font-size:18px;font-weight:800;line-height:1.5;color:#fff;white-space:nowrap}
.lc-online-line{display:flex;align-items:center;gap:6px;font-size:11px;color:rgba(255,255,255,.9)}
.lc-header-status-dot{width:8px;height:8px;border-radius:50%;display:inline-block;background:#20c997;box-shadow:0 0 0 3px rgba(32,201,151,.16)}
.lc-header-status-dot.status-offline{background:#ff6b6b;box-shadow:0 0 0 3px rgba(255,107,107,.16)}
#chat-status-text{font-size:11px;color:inherit;margin:0}
.chat-close-btn{
    position:relative;z-index:2;background:rgba(255,255,255,.14);border:1px solid rgba(255,255,255,.22);
    color:#fff;width:36px;height:36px;border-radius:11px;font-size:25px;line-height:1;
    cursor:pointer;display:flex;align-items:center;justify-content:center;transition:.18s ease
}
.chat-close-btn:hover{background:rgba(255,255,255,.24);transform:rotate(3deg)}

.chat-messages-body{
    flex:1;padding:18px;overflow-y:auto;background:#fbfdff;
    background-image:radial-gradient(rgba(91,187,238,.06) 1px,transparent 1px);
    background-size:18px 18px;display:flex;flex-direction:column;gap:10px
}
.message-bubble{max-width:82%;padding:10px 13px;border-radius:15px;font-size:13px;line-height:1.7;word-break:break-word}
.message-sent{background:#dff3ff;align-self:flex-start;color:#17435a;border-bottom-left-radius:5px}
.message-received{background:#fff;align-self:flex-end;border:1px solid #e2edf4;color:#304957;box-shadow:0 4px 12px rgba(31,74,99,.05);border-bottom-right-radius:5px}
.lc-message-actions{display:flex;gap:6px;margin-top:7px;padding-top:6px;border-top:1px solid rgba(23,67,90,.12)}
.lc-message-actions button{border:0;background:transparent;padding:3px 7px;border-radius:7px;cursor:pointer;font-size:11px;color:#4f6978}
.lc-message-actions button:hover{background:rgba(31,74,99,.08)}
.lc-time{display:block;font-size:9px;color:#8295a2;margin-top:3px}
.chat-img-msg{max-width:100%;max-height:220px;border-radius:9px;margin-top:6px;display:block}
.typing-indicator{font-size:11px;color:#777;padding:5px 18px;background:#fbfdff}

.chat-footer{display:flex;align-items:center;padding:12px;background:#fff;border-top:1px solid #edf2f6;gap:7px}
.chat-footer input[type=text]{
    flex:1;padding:12px 13px;border:1px solid #dce7ee;border-radius:13px;outline:none;
    font-size:13px;direction:rtl;background:#fbfdff;transition:.18s ease
}
.chat-footer input[type=text]:focus{border-color:#8fd5f5;box-shadow:0 0 0 3px rgba(88,189,242,.12);background:#fff}
.chat-file-btn{cursor:pointer;font-size:20px;color:#7d95a4;padding:4px}
.chat-footer button,.lc-registration button{
    background:#1989ee;color:#fff;border:0;padding:10px 16px;border-radius:12px;cursor:pointer;font-weight:700;
    transition:.18s ease
}
.chat-footer button:hover,.lc-registration button:hover{background:#0879dc;transform:translateY(-1px)}
.chat-footer button:disabled{opacity:.5;transform:none}

.lc-registration{padding:24px;display:flex;flex-direction:column;gap:13px;background:#fff;flex:1;justify-content:center}
.lc-welcome{background:#f2f9fd;border:1px solid #e1f1f9;border-radius:14px;padding:14px;line-height:1.9;font-size:13px;color:#31566b}
.lc-registration input{padding:12px;border:1px solid #d8e4eb;border-radius:11px;direction:rtl;font-family:inherit}
.lc-registration input:focus{outline:none;border-color:#8fd5f5;box-shadow:0 0 0 3px rgba(88,189,242,.10)}
.lc-call-link{text-align:center;text-decoration:none;padding:8px;color:#279bd4;font-size:12px}
.lc-registration #lc-start{width:100%;padding:12px}

@media(max-width:480px){
    #chat-widget-button{right:15px;left:auto;bottom:72px;width:60px;height:60px}
    #chat-box-popup{right:10px;left:10px;bottom:84px;width:auto;max-width:none;height:min(76vh,620px);border-radius:19px}
    .chat-header{min-height:105px;padding:13px}
    .lc-brand-logo-wrap{width:68px;height:68px;border-radius:13px}
    .lc-brand-logo{width:63px;height:63px}
    .chat-title{font-size:16px}
    .message-bubble{max-width:88%}
}

/* Admin */
.live-chat-admin-wrap{font-family:Tahoma,Arial,sans-serif}.live-chat-admin-grid{display:grid;grid-template-columns:330px minmax(0,1fr);gap:16px;margin-top:18px}.live-chat-conversations-panel,.live-chat-admin-chat{background:#fff;border:1px solid #ddd;border-radius:10px;overflow:hidden;min-height:650px}.live-chat-panel-head{display:flex;align-items:center;justify-content:space-between;padding:14px;border-bottom:1px solid #eee}.live-chat-panel-head h1{font-size:20px;margin:0}.lc-conversations{padding:8px}.lc-conversation-item{width:100%;border:0;border-bottom:1px solid #eee;background:#fff;padding:12px;text-align:right;display:flex;justify-content:space-between;align-items:center;cursor:pointer;direction:rtl}.lc-conversation-item:hover,.lc-conversation-item.active{background:#f3f7f6}.lc-conversation-item strong,.lc-conversation-item small{display:block}.lc-conversation-item small{color:#777;margin-top:4px}.lc-badge{font-style:normal;font-size:10px;padding:4px 7px;border-radius:10px;background:#eee}.lc-badge.open{background:#dff7ea;color:#147a4b}.lc-unanswered{display:block;color:#c62828;font-size:10px;margin-top:5px}.lc-empty{display:flex;align-items:center;justify-content:center;min-height:300px;color:#777;padding:25px;text-align:center}.lc-admin-header{min-height:62px}.lc-admin-header small{display:block;color:#d9eeee;font-size:11px;margin-top:4px}.lc-admin-actions{display:flex;gap:5px;align-items:center}.lc-admin-actions .button{font-size:11px}.live-chat-admin-chat #lc-admin-messages{height:525px}.live-chat-admin-chat .chat-footer{direction:rtl}
@media(max-width:850px){.live-chat-admin-grid{grid-template-columns:1fr}.live-chat-conversations-panel{min-height:300px}.live-chat-admin-chat{min-height:500px}}
@media(max-width:480px){
    #chat-widget-button{right:15px;left:auto;bottom:72px;width:58px;height:58px}
    #chat-box-popup{right:15px;left:auto;bottom:84px;width:calc(100vw - 30px);height:70vh;border-radius:16px}
    .message-bubble{max-width:88%}
}

#lc-chat-area{display:flex;flex-direction:column;flex:1;min-height:0;height:100%;overflow:hidden}
#lc-chat-area .chat-messages-body{flex:1;min-height:0;overflow-y:auto;overflow-x:hidden;-webkit-overflow-scrolling:touch;overscroll-behavior:contain;scrollbar-width:thin}
#lc-chat-area .typing-indicator{flex:0 0 auto}
#lc-chat-area .chat-footer{flex:0 0 auto;position:relative;z-index:2}
.chat-footer input[type=file]{display:none!important}

/* Delete selected conversation action */
#lc-delete{color:#b42318;border-color:#f0b4ae}
#lc-delete:hover{color:#8f1d14;border-color:#df8d84;background:#fff5f3}

/* Custom customer-side floating chat logo */
#chat-widget-button .lc-chat-floating-logo{width:100%;height:100%;max-width:100%;max-height:100%;object-fit:contain;border-radius:inherit;display:block;}
#chat-widget-button .lc-chat-icon{display:none;}

/* 2.0.9 functional enhancements - existing visual language preserved */
.lc-admin-filters{display:flex;gap:7px;padding:9px;border-bottom:1px solid #eee;background:#fafcfd}.lc-admin-filters input,.lc-admin-filters select{min-width:0;flex:1;border:1px solid #dce7ee;border-radius:9px;padding:8px;font-size:12px;background:#fff}.lc-admin-filters select{flex:0 0 125px}.lc-admin-header{align-items:flex-start}.lc-admin-header small{max-width:360px}.lc-quick-replies{display:flex;gap:6px;overflow:auto;padding:7px;background:#fbfdff;border-top:1px solid #edf2f6}.lc-quick-reply{border:1px solid #dce7ee;background:#fff;border-radius:10px;padding:6px 9px;font-size:10px;white-space:nowrap;cursor:pointer}.lc-quick-reply:hover{background:#f2f9fd}.lc-product-context{display:flex;align-items:center;gap:9px;padding:10px;border:1px solid #e2edf4;background:#f8fcff;border-radius:12px;font-size:12px}.lc-product-context img{width:48px;height:48px;object-fit:cover;border-radius:8px}.lc-product-context small{display:block;color:#71828d;margin-top:3px}.lc-product-meta{color:#d9eeee!important}.lc-drop-active{outline:2px dashed #7ccdf3;outline-offset:-7px;background:#f0faff!important}.lc-upload-preview{position:fixed;inset:0;background:rgba(0,0,0,.55);z-index:100000;display:flex;align-items:center;justify-content:center;padding:20px}.lc-upload-card{background:#fff;border-radius:16px;padding:14px;max-width:min(92vw,420px);box-shadow:0 20px 60px rgba(0,0,0,.25)}.lc-upload-card img{display:block;max-width:100%;max-height:60vh;border-radius:10px;object-fit:contain}.lc-upload-actions{display:flex;gap:8px;margin-top:12px}.lc-upload-actions button{flex:1;border:0;border-radius:10px;padding:10px;cursor:pointer;font-weight:700}.lc-upload-send{background:#1989ee;color:#fff}.lc-upload-cancel{background:#eef3f6;color:#334}.lc-lightbox{position:fixed;inset:0;background:rgba(0,0,0,.82);z-index:100001;display:flex;align-items:center;justify-content:center;padding:25px}.lc-lightbox img{max-width:95vw;max-height:90vh;object-fit:contain;border-radius:10px}.lc-lightbox button{position:absolute;top:18px;right:20px;width:40px;height:40px;border:0;border-radius:50%;font-size:28px;cursor:pointer;background:#fff}.chat-img-msg{cursor:zoom-in}.lc-call-link{display:block}
@media(max-width:850px){.lc-admin-filters{flex-wrap:wrap}.lc-admin-filters input,.lc-admin-filters select{flex:1 1 100%}.lc-admin-header{flex-wrap:wrap}.lc-admin-actions{width:100%;flex-wrap:wrap}.lc-quick-replies{scrollbar-width:thin}}

/* Quick replies settings */
.live-chat-quick-replies-settings {
    margin-top: 24px;
    padding: 20px;
    border: 1px solid #dcdcde;
    border-radius: 10px;
    background: #fff;
}

.live-chat-quick-replies-settings h2 {
    margin-top: 0;
}

.live-chat-quick-replies-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin: 16px 0;
}

.live-chat-quick-reply-row {
    display: grid;
    grid-template-columns: minmax(180px, 1fr) minmax(300px, 2fr) auto;
    gap: 14px;
    align-items: end;
    padding: 16px;
    border: 1px solid #e2e4e7;
    border-radius: 8px;
    background: #f8f9fa;
}

.live-chat-quick-reply-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.live-chat-quick-reply-field label {
    font-weight: 600;
}

.live-chat-quick-reply-field input,
.live-chat-quick-reply-field textarea {
    width: 100%;
    box-sizing: border-box;
}

@media (max-width: 782px) {
    .live-chat-quick-reply-row {
        grid-template-columns: 1fr;
    }
}

/* 2.0.6 - Customer support notice after unanswered timer starts */
.lc-support-notice{
    flex:0 0 auto;
    margin:0 12px 10px;
    padding:13px 14px;
    border:1px solid #dcecf5;
    border-radius:15px;
    background:linear-gradient(180deg,#f7fcff 0%,#eef8fd 100%);
    color:#31566b;
    text-align:center;
    box-shadow:0 5px 16px rgba(31,74,99,.06);
}
.lc-support-notice-text{
    font-size:11px;
    line-height:2;
}
.lc-support-call{
    display:flex;
    flex-direction:column;
    align-items:center;
    gap:7px;
    margin-top:10px;
}
.lc-support-call-button,
.lc-support-call-mobile{
    align-items:center;
    justify-content:center;
    gap:7px;
    min-height:42px;
    padding:8px 16px;
    border:0;
    border-radius:13px;
    background:#1989ee;
    color:#fff;
    text-decoration:none;
    cursor:pointer;
    font-family:inherit;
    font-size:11px;
    font-weight:700;
    box-shadow:0 7px 18px rgba(25,137,238,.20);
    transition:transform .18s ease,box-shadow .18s ease,background .18s ease;
}
.lc-support-call-button{display:flex}
.lc-support-call-mobile{display:none}
.lc-support-call-button:hover,
.lc-support-call-mobile:hover{background:#0879dc;color:#fff;transform:translateY(-1px);box-shadow:0 9px 21px rgba(25,137,238,.24)}
.lc-support-call-button svg,
.lc-support-call-mobile svg{width:21px;height:21px;flex:0 0 21px}
.lc-support-phone-number{
    display:none;
    direction:ltr;
    font-size:13px;
    font-weight:800;
    letter-spacing:.3px;
    color:#176fae;
    padding:7px 12px;
    border-radius:10px;
    background:#fff;
    border:1px solid #d7eaf5;
}
@media(max-width:767px){
    .lc-support-notice{margin:0 9px 8px;padding:11px 11px}
    .lc-support-notice-text{font-size:10.5px;line-height:1.95}
    .lc-support-call-button{display:none!important}
    .lc-support-call-mobile{display:flex!important;width:48px;height:48px;min-height:48px;padding:0;border-radius:50%;font-size:0;line-height:1;box-sizing:border-box}
    .lc-support-call-mobile span{display:none}
    .lc-support-call-mobile svg{width:23px;height:23px;flex:0 0 23px}
}

@media(min-width:768px){
    .lc-support-call-button{display:flex!important}
    .lc-support-call-mobile{display:none!important}
}

#lc-support-notice-text{white-space:pre-line;}

/* 2.0.9 - header action layout */
.lc-header-actions{
    position:relative;
    z-index:3;
    display:flex;
    flex-direction:column;
    align-items:center;
    justify-content:center;
    gap:7px;
    flex:0 0 auto;
}
.lc-new-chat-btn{
    order:2;
    position:relative;
    min-width:78px;
    min-height:30px;
    padding:6px 9px;
    border:1px solid rgba(255,255,255,.30);
    border-radius:10px;
    background:linear-gradient(180deg,rgba(255,255,255,.28) 0%,rgba(255,255,255,.12) 100%);
    color:#fff;
    font-family:inherit;
    font-size:9px;
    font-weight:800;
    line-height:1.3;
    cursor:pointer;
    opacity:1;
    box-shadow:0 5px 0 rgba(0,52,120,.24),0 8px 16px rgba(0,31,92,.16),inset 0 1px 0 rgba(255,255,255,.34);
    text-shadow:0 1px 2px rgba(0,38,90,.25);
    transition:transform .12s ease,box-shadow .12s ease,background .18s ease;
    -webkit-tap-highlight-color:transparent;
}
.lc-new-chat-btn:hover{
    background:linear-gradient(180deg,rgba(255,255,255,.38) 0%,rgba(255,255,255,.18) 100%);
    transform:translateY(-2px);
    box-shadow:0 7px 0 rgba(0,52,120,.22),0 11px 20px rgba(0,31,92,.20),inset 0 1px 0 rgba(255,255,255,.40);
}
.lc-new-chat-btn:active{
    transform:translateY(3px);
    box-shadow:0 2px 0 rgba(0,52,120,.26),0 4px 9px rgba(0,31,92,.14),inset 0 2px 4px rgba(0,31,92,.12);
}
.lc-new-chat-btn:focus-visible{
    outline:2px solid rgba(255,255,255,.8);
    outline-offset:2px;
}
.chat-close-btn{order:1;}

/* 2.0.9 - real two-way typing indicator and character counters */
.typing-indicator{display:none;font-size:11px;color:#6b7f8d;padding:6px 14px;background:#fbfdff;min-height:18px;box-sizing:border-box;}
.lc-char-count{font-size:9px;color:#8a9aa5;white-space:nowrap;min-width:42px;text-align:center;direction:ltr;}
.lc-char-count.is-limit{color:#d32f2f;font-weight:700;}
.lc-admin-notification{position:fixed;top:42px;right:28px;z-index:100001;max-width:420px;background:#1d2327;color:#fff;border-radius:10px;padding:12px 16px;box-shadow:0 8px 30px rgba(0,0,0,.18);font-family:Tahoma,Arial,sans-serif;font-size:13px;line-height:1.8}
.lc-live-chat-menu-badge{margin-right:6px;vertical-align:middle}


/* 2.0.15 - Responsive viewport hardening
 * Optimized for desktop/mobile browser zoom, dynamic mobile browser chrome,
 * on-screen keyboards and safe-area insets. Existing functionality is unchanged.
 */
:root{
    --lc-vh: 100vh;
    --lc-safe-top: env(safe-area-inset-top, 0px);
    --lc-safe-right: env(safe-area-inset-right, 0px);
    --lc-safe-bottom: env(safe-area-inset-bottom, 0px);
    --lc-safe-left: env(safe-area-inset-left, 0px);
}

#chat-widget-button{
    right:max(16px, var(--lc-safe-right));
    bottom:max(16px, var(--lc-safe-bottom));
    width:clamp(56px, 4.25vw, 66px);
    height:clamp(56px, 4.25vw, 66px);
}

#chat-box-popup{
    right:max(16px, var(--lc-safe-right));
    bottom:calc(max(16px, var(--lc-safe-bottom)) + clamp(56px, 4.25vw, 66px) + 14px);
    width:min(390px, calc(100vw - max(32px, var(--lc-safe-left) + var(--lc-safe-right) + 32px)));
    height:min(590px, calc(var(--lc-vh) - var(--lc-safe-top) - var(--lc-safe-bottom) - 118px));
    min-height:360px;
    max-height:calc(var(--lc-vh) - var(--lc-safe-top) - var(--lc-safe-bottom) - 24px);
}

.chat-header{min-height:clamp(92px, 12vh, 118px)}
.chat-messages-body{min-height:0}

/* Avoid oversized controls when the browser is zoomed in. */
.chat-header,
.chat-footer,
.lc-registration,
.lc-support-notice{box-sizing:border-box}

@media (max-width:767px){
    #chat-widget-button{
        right:max(12px, var(--lc-safe-right));
        bottom:max(12px, var(--lc-safe-bottom));
        width:58px;height:58px;
    }

    #chat-box-popup{
        left:max(10px, var(--lc-safe-left));
        right:max(10px, var(--lc-safe-right));
        bottom:calc(max(10px, var(--lc-safe-bottom)) + 58px + 14px);
        width:auto;
        max-width:none;
        height:min(720px, calc(var(--lc-vh) - var(--lc-safe-top) - var(--lc-safe-bottom) - 92px));
        min-height:320px;
        max-height:calc(var(--lc-vh) - var(--lc-safe-top) - var(--lc-safe-bottom) - 20px);
        border-radius:clamp(14px, 4vw, 19px);
    }

    .chat-header{
        min-height:clamp(86px, 16svh, 105px);
        padding:clamp(10px, 3vw, 13px);
    }

    .lc-brand-logo-wrap{
        width:clamp(58px, 17vw, 68px);
        height:clamp(58px, 17vw, 68px);
    }
    .lc-brand-logo{width:calc(100% - 5px);height:calc(100% - 5px)}

    .chat-title{font-size:clamp(14px, 4vw, 16px)}
    .message-bubble{max-width:min(88%, 34rem)}
    .chat-footer{padding:max(8px, 2.5vw)}
    .chat-footer input[type=text]{min-width:0;font-size:16px; /* prevents iOS auto-zoom */}
    .chat-footer button{min-width:44px;min-height:44px;padding:9px 13px}
    .chat-file-btn{min-width:40px;min-height:40px;display:flex;align-items:center;justify-content:center}

    /* Keep the support notice inside the scroll layout on short screens. */
    .lc-support-notice{margin-left:8px;margin-right:8px}
}

@media (max-height:560px) and (orientation:landscape){
    #chat-box-popup{
        bottom:max(8px, var(--lc-safe-bottom));
        height:calc(var(--lc-vh) - var(--lc-safe-top) - var(--lc-safe-bottom) - 16px);
        min-height:280px;
    }
    .chat-header{min-height:72px;padding:8px 10px}
    .lc-brand-logo-wrap{width:50px;height:50px}
    .chat-title{font-size:14px}
    .chat-messages-body{padding:10px}
    .chat-footer{padding:7px}
}

/* Respect reduced-motion preferences without changing layout. */
@media (prefers-reduced-motion:reduce){
    #chat-widget-button,
    #chat-box-popup,
    .chat-close-btn,
    .chat-footer button,
    .lc-support-call-button,
    .lc-support-call-mobile{animation:none!important;transition:none!important}
}

/* Admin workspace: use the available browser viewport instead of fixed heights. */
.live-chat-admin-grid{min-height:0}
.live-chat-conversations-panel,
.live-chat-admin-chat{min-height:min(650px, calc(var(--lc-vh) - 150px))}
.live-chat-admin-chat #lc-admin-messages{
    height:min(525px, calc(var(--lc-vh) - 245px));
    min-height:280px;
}

@media (max-width:850px){
    .live-chat-conversations-panel,
    .live-chat-admin-chat{min-height:420px}
    .live-chat-admin-chat #lc-admin-messages{
        height:min(58svh, 525px);
        min-height:300px;
    }
}

@media (max-width:480px){
    .live-chat-admin-chat #lc-admin-messages{height:min(55svh, 460px)}
}


/* 2.0.15 mobile bottom navigation compatibility
 * Lift floating chat and shrink popup by the same detected bottom offset.
 */
:root{--lc-bottom-nav-offset:0px;}
@media(max-width:767px){
    #chat-widget-button{
        bottom:calc(max(12px, var(--lc-safe-bottom)) + var(--lc-bottom-nav-offset));
    }
    #chat-box-popup{
        bottom:calc(max(10px, var(--lc-safe-bottom)) + 58px + 14px + var(--lc-bottom-nav-offset));
        height:calc(min(720px, calc(var(--lc-vh) - var(--lc-safe-top) - var(--lc-safe-bottom) - 92px)) - var(--lc-bottom-nav-offset));
        max-height:calc(var(--lc-vh) - var(--lc-safe-top) - var(--lc-safe-bottom) - 20px - var(--lc-bottom-nav-offset));
    }
}


/* Contact channel chooser */
#lc-contact-menu{padding:18px;background:#fff;direction:rtl;overflow:auto;flex:1;min-height:0;}
.lc-contact-menu-title{text-align:center;font-size:15px;font-weight:800;color:#253746;margin:3px 0 15px;}
.lc-contact-options{display:flex;flex-direction:column;gap:9px;}
.lc-contact-option{width:100%;display:flex;align-items:center;gap:11px;box-sizing:border-box;border:1px solid #e2ebf0;background:#fff;border-radius:13px;padding:10px 12px;text-decoration:none;color:#263746;cursor:pointer;transition:transform .15s ease,box-shadow .15s ease,background .15s ease,border-color .15s ease;min-height:58px;font-family:inherit;}
.lc-contact-option:hover{transform:translateY(-1px);box-shadow:0 8px 20px rgba(30,70,90,.10);background:#f8fcff;border-color:#cfe1ea;}
.lc-contact-option-icon{width:40px;height:40px;min-width:40px;border-radius:11px;background:#f1f6f8;display:flex;align-items:center;justify-content:center;overflow:hidden;}
.lc-contact-option-icon img{width:100%;height:100%;object-fit:cover;display:block;}
.lc-contact-fallback-icon{font-size:19px;line-height:1;}
.lc-contact-option-label{font-size:13px;font-weight:700;flex:1;text-align:right;}
.lc-contact-option-arrow{font-size:23px;color:#7a8d98;line-height:1;transform:rotate(180deg);}
.lc-contact-live{font-family:inherit;text-align:right;border:2px solid #1783c6;background:linear-gradient(135deg,#eef9ff,#ffffff);box-shadow:0 8px 22px rgba(23,131,198,.16);min-height:70px;position:relative;}
.lc-contact-live:hover{background:linear-gradient(135deg,#e5f6ff,#ffffff);border-color:#0f75b4;box-shadow:0 10px 26px rgba(23,131,198,.22);}
.lc-contact-live .lc-contact-option-icon{width:46px;height:46px;min-width:46px;background:#1783c6;color:#fff;border-radius:13px;font-size:22px;}
.lc-contact-live .lc-contact-option-label{font-size:15px;color:#116c9f;}
.lc-contact-live .lc-contact-option-label strong{display:block;font-weight:900;line-height:1.35;}
.lc-contact-live .lc-contact-option-label small{display:block;margin-top:3px;font-size:10px;font-weight:600;color:#6d808b;}
.lc-contact-live:before{content:"پیشنهاد ما";position:absolute;top:-9px;right:12px;background:#1783c6;color:#fff;border-radius:10px;padding:2px 8px;font-size:9px;font-weight:800;box-shadow:0 3px 8px rgba(23,131,198,.18);}
.lc-contact-back{border:0;background:transparent;color:#1783c6;padding:0 0 10px;cursor:pointer;font-family:inherit;font-size:11px;font-weight:700;}
.lc-contact-back:hover{text-decoration:underline;}
@media(max-width:480px){#lc-contact-menu{padding:14px}.lc-contact-option{min-height:54px;padding:8px 10px}.lc-contact-option-icon{width:36px;height:36px;min-width:36px}.lc-contact-option-label{font-size:12px}.lc-contact-live{min-height:64px}.lc-contact-live .lc-contact-option-icon{width:42px;height:42px;min-width:42px}.lc-contact-live .lc-contact-option-label{font-size:14px}.lc-contact-live .lc-contact-option-label small{font-size:9px;}}
