/* Scorpion Shop v249 — production chat widget */
.chat-widget {
    --accent-a: #e228ff;
    --accent-b: #6934ff;
    --chat-button-size: 52px;
    color-scheme: dark;
    font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
}
.chat-widget,
.chat-widget *,
.chat-widget *::before,
.chat-widget *::after,
.chat-image-viewer,
.chat-image-viewer *,
.chat-image-viewer *::before,
.chat-image-viewer *::after {
    box-sizing: border-box;
}
.chat-widget button,
.chat-widget textarea,
.chat-widget input,
.chat-image-viewer button {
    font: inherit;
}
.chat-widget button,
.chat-image-viewer button {
    -webkit-tap-highlight-color: transparent;
}
.chat-widget{position:fixed;right:max(18px,env(safe-area-inset-right));bottom:calc(22px + env(safe-area-inset-bottom));z-index:3000}.widget-actions{display:flex;flex-direction:column;align-items:flex-end;gap:10px}.chat-toggle,.test-help-toggle{position:relative;width:var(--chat-button-size);height:var(--chat-button-size);min-width:var(--chat-button-size);min-height:var(--chat-button-size);padding:0;overflow:hidden;border:1px solid rgba(214,48,255,.55);border-radius:50%;display:grid;place-items:center;color:#fff;background:linear-gradient(135deg,rgba(226,40,255,.96),rgba(105,52,255,.96));box-shadow:none;cursor:pointer;transition:filter .18s ease,background .18s ease,transform .18s ease}.chat-toggle:hover,.test-help-toggle:hover{filter:brightness(.84);box-shadow:none}.chat-toggle:active,.test-help-toggle:active{transform:scale(.95)}.chat-toggle:focus,.test-help-toggle:focus,.chat-attach:focus,.chat-send:focus,.test-help-close:focus,.test-help-request:focus,.chat-composer textarea:focus{outline:2px solid rgba(217,116,255,.78);outline-offset:3px}.test-help-toggle{font-size:25px;font-weight:900;line-height:1}.chat-toggle-icon{position:absolute;display:block;object-fit:contain;pointer-events:none;user-select:none;filter:invert(1);transition:opacity .24s ease,transform .32s cubic-bezier(.22,.8,.25,1)}.chat-toggle-icon-open{width:28px;height:28px;opacity:1;transform:rotate(0deg) scale(1)}.chat-toggle-icon-close{width:22px;height:22px;opacity:0;transform:rotate(110deg) scale(.48)}.chat-widget.is-open .chat-toggle-icon-open{opacity:0;transform:rotate(-105deg) scale(.48)}.chat-widget.is-open .chat-toggle-icon-close{opacity:1;transform:rotate(0deg) scale(1)}.chat-panel{position:absolute;right:0;bottom:calc((var(--chat-button-size) * 2) + 32px);width:min(378px,calc(100vw - 36px));height:min(570px,calc(100dvh - 150px));min-height:420px;display:grid;grid-template-rows:auto auto minmax(0,1fr) auto auto;overflow:hidden;border:1px solid rgba(255,255,255,.13);border-radius:24px;background:linear-gradient(180deg,rgba(18,21,34,.985),rgba(8,10,18,.99));box-shadow:0 30px 88px rgba(0,0,0,.58),0 0 42px rgba(217,47,255,.14);opacity:0;visibility:hidden;pointer-events:none;transform-origin:right bottom;transform:translateY(14px) scale(.94);transition:opacity .22s ease,transform .28s cubic-bezier(.22,.8,.25,1),visibility 0s linear .28s}.chat-widget.is-open .chat-panel{opacity:1;visibility:visible;pointer-events:auto;transform:translateY(0) scale(1);transition-delay:0s}.chat-header{min-height:74px;padding:15px 18px;display:flex;align-items:center;gap:12px;border-bottom:1px solid rgba(255,255,255,.08);background:linear-gradient(135deg,rgba(226,40,255,.12),rgba(105,52,255,.1))}.chat-avatar{width:42px;height:42px;flex:0 0 42px;overflow:hidden;border-radius:50%;background:#161a28}.chat-avatar img{display:block;width:100%;height:100%;object-fit:cover;filter:none}.chat-header-copy{min-width:0}.chat-header h2{margin:0;overflow:hidden;color:#fff;font-size:15px;line-height:1.25;text-overflow:ellipsis;white-space:nowrap}.chat-header p{margin:5px 0 0;display:flex;align-items:center;gap:7px;color:#afb5c8;font-size:12px}.chat-online-dot{width:7px;height:7px;border-radius:50%;background:#5de08a}.chat-notice{margin:12px 14px 0;padding:9px 11px;border:1px solid rgba(255,255,255,.07);border-radius:13px;color:#9fa6ba;background:rgba(255,255,255,.035);font-size:11px;line-height:1.45}.chat-messages{min-height:0;padding:16px 14px;display:flex;flex-direction:column;gap:10px;overflow-y:auto;overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:rgba(216,100,255,.36) transparent}.chat-message{max-width:84%;padding:10px 12px 7px;border-radius:16px;animation:message-in .25s ease both}.chat-message.is-support{align-self:flex-start;border:1px solid rgba(255,255,255,.08);border-bottom-left-radius:5px;color:#eff1fb;background:rgba(255,255,255,.07)}.chat-message.is-user{align-self:flex-end;border-bottom-right-radius:5px;color:#fff;background:linear-gradient(135deg,rgba(211,55,255,.88),rgba(100,61,238,.94));box-shadow:none}.chat-message-text{margin:0;overflow-wrap:anywhere;white-space:pre-wrap;font-size:13px;line-height:1.48}.chat-message-time{margin-top:5px;display:block;color:rgba(255,255,255,.58);font-size:10px;line-height:1;text-align:right}.chat-message-attachments{margin-top:8px;display:grid;gap:6px}.chat-message-attachments img{display:block;max-width:230px;max-height:210px;border-radius:11px;object-fit:cover}.chat-message-attachments a{color:#fff;text-decoration:underline;overflow-wrap:anywhere}.chat-selected-files{padding:8px 12px;display:flex;flex-wrap:wrap;gap:7px;border-top:1px solid rgba(255,255,255,.07);background:#0b0e18}.chat-file-chip{max-width:220px;padding:7px 9px;border-radius:10px;color:#d9dced;background:#242839;font-size:11px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.chat-composer{padding:11px 12px calc(11px + env(safe-area-inset-bottom));display:flex;align-items:flex-end;gap:8px;border-top:1px solid rgba(255,255,255,.08);background:rgba(9,11,20,.98)}.chat-composer textarea{width:100%;min-height:42px;max-height:116px;resize:none;padding:11px 13px;border:1px solid rgba(255,255,255,.11);border-radius:15px;color:#fff;background:rgba(255,255,255,.06);line-height:1.35;outline:none;overflow-y:auto;scrollbar-width:none;-ms-overflow-style:none;transition:border-color .2s ease,background .2s ease}.chat-composer textarea::-webkit-scrollbar{width:0;height:0;display:none}.chat-composer textarea::placeholder{color:#858ca2}.chat-composer textarea:focus{border-color:rgba(215,85,255,.48);background:rgba(255,255,255,.075)}.chat-attach,.chat-send{width:42px;height:42px;flex:0 0 42px;padding:0;border:0;border-radius:14px;display:grid;place-items:center;color:#fff;background:linear-gradient(135deg,var(--accent-a),var(--accent-b));box-shadow:none;cursor:pointer;transition:filter .18s ease,background .18s ease,transform .18s ease}.chat-attach:hover,.chat-send:hover{filter:brightness(.84);box-shadow:none}.chat-attach:active,.chat-send:active{transform:scale(.93)}.chat-attach img{width:22px;height:22px;object-fit:contain;filter:invert(1)}.chat-send svg{width:21px;height:21px}.chat-send:disabled,.chat-attach:disabled{opacity:.55;cursor:wait}.test-help-panel{position:absolute;right:0;bottom:0;width:min(330px,calc(100vw - 36px));padding:22px;border:1px solid rgba(255,255,255,.13);border-radius:22px;color:#fff;background:linear-gradient(180deg,#151927,#0c0f1a);box-shadow:0 28px 75px rgba(0,0,0,.52);opacity:0;visibility:hidden;pointer-events:none;transform:translateY(10px) scale(.96);transform-origin:right bottom;transition:opacity .2s ease,transform .24s ease,visibility 0s linear .24s}.chat-widget.is-help-open .test-help-panel{opacity:1;visibility:visible;pointer-events:auto;transform:translateY(0) scale(1);transition-delay:0s}.test-help-close{position:absolute;top:10px;right:12px;width:32px;height:32px;padding:0;border:0;border-radius:50%;color:#fff;background:rgba(255,255,255,.08);cursor:pointer;font-size:24px;line-height:1;transition:filter .18s ease}.test-help-close:hover{filter:brightness(.75)}.test-help-panel h3{margin:0 36px 12px 0;font-size:20px}.test-help-panel p{margin:0 0 12px;color:#c8ccda;font-size:14px;line-height:1.5}.test-help-hours{font-size:12px!important;color:#969db1!important}.test-help-email{display:inline-block;margin-bottom:16px;color:#e597ff;font-weight:800;text-decoration:none}.test-help-actions{display:flex;gap:10px;margin-bottom:16px}.test-help-actions a{width:42px;height:42px;border-radius:50%;display:grid;place-items:center;overflow:hidden;background:#242839;transition:filter .18s ease}.test-help-actions a:hover{filter:brightness(.8)}.test-help-actions img{width:32px;height:32px;object-fit:contain}.test-help-request{display:flex;min-height:44px;align-items:center;justify-content:center;border-radius:13px;color:#fff;background:linear-gradient(135deg,var(--accent-a),var(--accent-b));font-weight:850;text-decoration:none;transition:filter .18s ease}.test-help-request:hover{filter:brightness(.84)}.sr-only{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;white-space:nowrap!important;border:0!important}@keyframes message-in{from{opacity:0;transform:translateY(8px) scale(.98)}to{opacity:1;transform:translateY(0) scale(1)}}@media(max-width:760px){.chat-widget{--chat-button-size:48px}.test-page{align-items:start;padding-top:max(28px,env(safe-area-inset-top))}.test-card{padding:26px 22px;border-radius:24px}.install-card{align-items:flex-start;flex-direction:column}.chat-widget{right:max(14px,env(safe-area-inset-right));bottom:calc(14px + env(safe-area-inset-bottom))}.chat-panel{bottom:calc((var(--chat-button-size) * 2) + 28px);width:calc(100vw - 28px - env(safe-area-inset-left) - env(safe-area-inset-right));height:min(620px,calc(100dvh - 126px - env(safe-area-inset-top)));min-height:390px;border-radius:22px}.chat-toggle-icon-open{width:25px;height:25px}.chat-toggle-icon-close{width:20px;height:20px}.test-help-panel{width:calc(100vw - 28px - env(safe-area-inset-left) - env(safe-area-inset-right))}}@media(max-width:390px){.chat-panel{height:calc(100dvh - 122px - env(safe-area-inset-top))}.chat-header{min-height:68px;padding:12px 14px}.chat-avatar{width:39px;height:39px;flex-basis:39px}.chat-composer{gap:6px;padding-left:8px;padding-right:8px}.chat-attach,.chat-send{width:40px;height:40px;flex-basis:40px}}@media(prefers-reduced-motion:reduce){.chat-widget,.chat-widget *,.chat-widget *::before,.chat-widget *::after,.chat-image-viewer,.chat-image-viewer *{scroll-behavior:auto!important;animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important}}

/* Chat UX update v237 */
.chat-panel{grid-template-rows:auto minmax(0,1fr) auto auto auto}
.chat-online-dot.is-offline{background:#ff5365}
.chat-composer textarea:focus{outline:none!important;outline-offset:0!important;box-shadow:none!important;border-color:rgba(255,255,255,.16);background:rgba(255,255,255,.075)}
.chat-toggle:focus,.test-help-toggle:focus,.chat-attach:focus,.chat-send:focus,.test-help-close:focus,.test-help-request:focus,.chat-profile-submit:focus,.chat-profile-form input:focus{outline:2px solid rgba(217,116,255,.78);outline-offset:3px}
.chat-composer{align-items:flex-end}
.chat-composer textarea{min-width:0;flex:1 1 auto}
.chat-composer-actions{display:flex;align-items:center;gap:8px;flex:0 0 auto}
.test-help-toggle{font-size:0}
.test-help-icon-open,.test-help-icon-close{position:absolute;display:grid;place-items:center;pointer-events:none;user-select:none;transition:opacity .24s ease,transform .32s cubic-bezier(.22,.8,.25,1)}
.test-help-icon-open{width:100%;height:100%;font-size:25px;font-weight:900;line-height:1;opacity:1;transform:rotate(0deg) scale(1)}
.test-help-icon-close{width:22px;height:22px;object-fit:contain;filter:invert(1);opacity:0;transform:rotate(110deg) scale(.48)}
.chat-widget.is-help-open .test-help-icon-open{opacity:0;transform:rotate(-105deg) scale(.48)}
.chat-widget.is-help-open .test-help-icon-close{opacity:1;transform:rotate(0deg) scale(1)}
.test-help-panel{bottom:calc((var(--chat-button-size) * 2) + 32px)}
.chat-profile-form{padding:12px;border-top:1px solid rgba(255,255,255,.08);display:grid;gap:10px;background:#0a0d17}
.chat-profile-form[hidden]{display:none}
.chat-profile-fields{display:grid;grid-template-columns:1fr;gap:9px}
.chat-profile-fields label{display:grid;gap:5px;color:#aeb4c6;font-size:11px;font-weight:750}
.chat-profile-fields label[hidden]{display:none}
.chat-profile-form input{width:100%;min-height:42px;padding:10px 12px;border:1px solid rgba(255,255,255,.11);border-radius:13px;color:#fff;background:rgba(255,255,255,.06);outline:none}
.chat-profile-form input:focus{border-color:rgba(215,85,255,.48);background:rgba(255,255,255,.075)}
.chat-profile-error{margin:0;color:#ff9ca7;font-size:11px;line-height:1.4}
.chat-profile-error[hidden]{display:none}
.chat-profile-submit{min-height:42px;padding:0 16px;border:0;border-radius:13px;color:#fff;background:linear-gradient(135deg,var(--accent-a),var(--accent-b));font-weight:850;cursor:pointer;transition:filter .18s ease}
.chat-profile-submit:hover{filter:brightness(.84)}
.chat-profile-submit:disabled{opacity:.6;cursor:wait}
.chat-composer[hidden]{display:none}
@media(max-width:760px){.test-help-panel{bottom:calc((var(--chat-button-size) * 2) + 28px)}}
@media(max-width:390px){.chat-composer-actions{gap:6px}}


/* Chat visual fixes v238 */
.chat-profile-form input:focus {
    outline: none !important;
    outline-offset: 0 !important;
    box-shadow: none !important;
    border-color: rgba(255,255,255,.16) !important;
    background: rgba(255,255,255,.075) !important;
}
.test-help-actions a,
.test-help-actions a:hover,
.test-help-actions a:focus {
    background: transparent !important;
    box-shadow: none !important;
}
.chat-messages {
    scrollbar-width: none !important;
    -ms-overflow-style: none !important;
}
.chat-messages::-webkit-scrollbar {
    width: 0 !important;
    height: 0 !important;
    display: none !important;
}

/* Chat polish v239 */
.chat-message.is-auto {
    border-color: rgba(255,255,255,.09) !important;
    color: #eef0f6 !important;
    background: #2a2e39 !important;
}
.chat-composer textarea:focus,
.chat-profile-form input:focus {
    outline: none !important;
    outline-offset: 0 !important;
    box-shadow: none !important;
    border-width: 1px !important;
    border-color: rgba(217,47,255,.72) !important;
    background: rgba(255,255,255,.075) !important;
}

/* Chat controls and inline notices v240 */
.chat-widget button:focus,
.chat-widget button:focus-visible,
.chat-widget .install-btn:focus,
.chat-widget .install-btn:focus-visible,
.test-help-request:focus,
.test-help-request:focus-visible,
.test-help-actions a:focus,
.test-help-actions a:focus-visible {
    outline: none !important;
    outline-offset: 0 !important;
    box-shadow: none !important;
}
.chat-composer textarea:focus,
.chat-profile-form input:focus {
    outline: none !important;
    outline-offset: 0 !important;
    box-shadow: none !important;
    border: 1px solid rgba(217,47,255,.72) !important;
}
.chat-local-notice {
    align-self: center;
    max-width: 94%;
    padding: 9px 11px;
    border: 1px solid rgba(255,255,255,.1);
    border-radius: 12px;
    color: #f2f3f8;
    background: #303541;
    font-size: 12px;
    line-height: 1.4;
    text-align: center;
    overflow-wrap: anywhere;
}
.chat-local-notice.is-error {
    border-color: rgba(255,83,101,.4);
    color: #ffd7dc;
    background: rgba(113,34,44,.92);
}
.chat-toggle,
.test-help-toggle,
.chat-attach,
.chat-send,
.test-help-close,
.chat-profile-submit,
.chat-widget .install-btn {
    -webkit-tap-highlight-color: transparent;
}


/* Clickable links in chat messages v241 */
.chat-message-text .chat-text-link {
    color: #fff;
    text-decoration: underline;
    text-underline-offset: 2px;
    overflow-wrap: anywhere;
}

/* Stable chat restore and unread-message jump v244 */
.chat-messages {
    transition: opacity .12s ease;
}
.chat-messages.is-restoring {
    opacity: 0;
    visibility: hidden;
}
.chat-new-message[hidden] {
    display: none !important;
}
.chat-new-message {
    position: absolute;
    left: 50%;
    bottom: calc(78px + env(safe-area-inset-bottom));
    z-index: 12;
    min-height: 38px;
    padding: 8px 13px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    border: 1px solid rgba(55, 206, 112, .42);
    border-radius: 999px;
    color: #fff;
    background: #249a55;
    box-shadow: none;
    opacity: 0;
    transform: translate(-50%, 8px);
    transition: opacity .18s ease, transform .18s ease, background .18s ease;
    cursor: pointer;
    white-space: nowrap;
}
.chat-new-message.is-visible {
    opacity: 1;
    transform: translate(-50%, 0);
}
.chat-new-message:hover {
    background: #20894c;
}
.chat-new-message:focus,
.chat-new-message:focus-visible {
    outline: none;
    box-shadow: none;
}
.chat-new-message svg {
    width: 18px;
    height: 18px;
    flex: 0 0 18px;
}
@media (max-width: 760px) {
    .chat-new-message {
        bottom: calc(72px + env(safe-area-inset-bottom));
        min-height: 36px;
        padding: 7px 12px;
        font-size: 13px;
    }
}

/* Movable and resizable visitor chat, flat panel v245 */
.chat-panel {
    box-shadow: none !important;
}
.chat-resize-handle {
    display: none;
}
@media (min-width: 761px) and (pointer: fine) {
    .chat-header {
        cursor: move;
        user-select: none;
        touch-action: none;
    }
    .chat-panel.is-custom-position {
        position: fixed !important;
        right: auto !important;
        bottom: auto !important;
        min-width: 320px;
        min-height: 360px;
        max-width: calc(100vw - 16px);
        max-height: calc(100vh - 16px);
        transform: none !important;
        transform-origin: center !important;
    }
    .chat-panel.is-geometry-active {
        transition: none !important;
        user-select: none;
    }
    .chat-resize-handle {
        position: absolute;
        left: 4px;
        bottom: 4px;
        z-index: 30;
        width: 28px;
        height: 28px;
        padding: 0;
        display: block;
        border: 0;
        border-radius: 8px;
        background: transparent;
        cursor: nesw-resize;
        touch-action: none;
        -webkit-tap-highlight-color: transparent;
    }
    .chat-resize-handle::before,
    .chat-resize-handle::after {
        content: '';
        position: absolute;
        left: 6px;
        bottom: 6px;
        height: 1px;
        border-radius: 2px;
        background: rgba(255,255,255,.55);
        transform: rotate(-45deg);
        transform-origin: left center;
    }
    .chat-resize-handle::before { width: 14px; }
    .chat-resize-handle::after { width: 9px; left: 7px; bottom: 10px; }
    .chat-resize-handle:hover::before,
    .chat-resize-handle:hover::after { background: rgba(255,255,255,.9); }
    .chat-resize-handle:focus,
    .chat-resize-handle:focus-visible { outline: none !important; box-shadow: none !important; }
}

/* Scorpion Shop v246 — правый маркер размера и встроенный просмотр фото */
@media (min-width: 761px) and (pointer: fine) {
    .chat-panel:not(.is-custom-position) {
        top: auto !important;
        left: auto !important;
        right: 0 !important;
        bottom: calc((var(--chat-button-size) * 2) + 32px) !important;
    }
    .chat-resize-handle {
        left: auto;
        right: 4px;
        bottom: 4px;
        cursor: nwse-resize;
    }
    .chat-resize-handle::before,
    .chat-resize-handle::after {
        left: auto;
        right: 6px;
        bottom: 6px;
        transform: rotate(-45deg);
        transform-origin: right center;
    }
    .chat-resize-handle::after {
        right: 7px;
        bottom: 10px;
    }
}

.chat-image-preview {
    display: block;
    max-width: 100%;
    padding: 0;
    border: 0;
    border-radius: 11px;
    background: transparent;
    cursor: zoom-in;
    overflow: hidden;
    -webkit-tap-highlight-color: transparent;
}
.chat-image-preview:focus,
.chat-image-preview:focus-visible {
    outline: none !important;
    box-shadow: none !important;
}
.chat-image-preview img {
    transition: transform .18s ease, filter .18s ease;
}
.chat-image-preview:hover img {
    transform: scale(1.015);
    filter: brightness(.92);
}
.chat-image-viewer[hidden] {
    display: none !important;
}
.chat-image-viewer {
    position: fixed;
    inset: 0;
    z-index: 100000;
    display: grid;
    place-items: center;
    padding: max(18px, env(safe-area-inset-top)) max(18px, env(safe-area-inset-right)) max(18px, env(safe-area-inset-bottom)) max(18px, env(safe-area-inset-left));
    background: rgba(2, 3, 8, .88);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    opacity: 0;
    transition: opacity .18s ease;
}
.chat-image-viewer.is-open {
    opacity: 1;
}
.chat-image-viewer-image {
    display: block;
    max-width: min(94vw, 1500px);
    max-height: 90dvh;
    object-fit: contain;
    border-radius: 14px;
    user-select: none;
    -webkit-user-drag: none;
}
.chat-image-viewer-close {
    position: fixed;
    top: max(14px, env(safe-area-inset-top));
    right: max(14px, env(safe-area-inset-right));
    z-index: 1;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    display: grid;
    place-items: center;
    color: #fff;
    background: rgba(24, 27, 40, .94);
    font-size: 31px;
    font-weight: 300;
    line-height: 1;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}
.chat-image-viewer-close:focus,
.chat-image-viewer-close:focus-visible {
    outline: none !important;
    box-shadow: none !important;
}


/* Chat touch state and protected images v247 */
.chat-toggle,
.test-help-toggle {
    -webkit-tap-highlight-color: transparent !important;
    touch-action: manipulation;
}
.chat-toggle:focus,
.chat-toggle:focus-visible,
.test-help-toggle:focus,
.test-help-toggle:focus-visible {
    outline: none !important;
    outline-offset: 0 !important;
    box-shadow: none !important;
}
.chat-message-attachments img,
.chat-image-viewer-image {
    user-select: none !important;
    -webkit-user-select: none !important;
    -webkit-user-drag: none !important;
}
@media (hover: none), (pointer: coarse) {
    .chat-toggle:hover,
    .test-help-toggle:hover {
        filter: none !important;
        box-shadow: none !important;
    }
    .chat-toggle:not(:active),
    .test-help-toggle:not(:active) {
        transform: none !important;
    }
}

/* Scorpion Shop v253 — ограничение имени и индикатор набора текста */
.chat-panel {
    grid-template-rows: auto minmax(0, 1fr) auto auto auto auto;
}
.chat-typing-indicator {
    min-height: 28px;
    padding: 5px 14px 6px;
    display: flex;
    align-items: center;
    gap: 5px;
    border-top: 1px solid rgba(255,255,255,.05);
    color: #aeb5c8;
    background: rgba(10,13,23,.96);
    font-size: 11px;
    line-height: 1.2;
}
.chat-typing-indicator[hidden] {
    display: none !important;
}
.chat-typing-dots {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    height: 10px;
}
.chat-typing-dots i {
    width: 4px;
    height: 4px;
    display: block;
    border-radius: 50%;
    background: currentColor;
    opacity: .32;
    animation: chat-typing-dot 1.15s infinite ease-in-out;
}
.chat-typing-dots i:nth-child(2) { animation-delay: .16s; }
.chat-typing-dots i:nth-child(3) { animation-delay: .32s; }
@keyframes chat-typing-dot {
    0%, 60%, 100% { opacity: .28; transform: translateY(0); }
    30% { opacity: 1; transform: translateY(-3px); }
}

/* ===== Scorpion Shop v258 — открытый чат ниже закреплённой мобильной шапки ===== */
@media (max-width: 860px) {
    body.has-mobile-fixed-header .chat-panel:not(.is-custom-position) {
        height: min(
            620px,
            calc(100dvh - 228px - env(safe-area-inset-top) - env(safe-area-inset-bottom))
        ) !important;
        max-height: calc(100dvh - 228px - env(safe-area-inset-top) - env(safe-area-inset-bottom)) !important;
        min-height: 0 !important;
    }
}
