/* Shared header/footer navigation. No product-card or wishlist selectors. */
.header-delivery-row { display:flex; align-items:center; gap:12px; min-width:0; }
.header-delivery-row > :first-child { flex:1; min-width:0; }
.silsila-header-chat { position:relative; display:inline-flex; flex:none; align-items:center; justify-content:center; width:40px; height:40px; border:1px solid rgba(255,255,255,.34); border-radius:14px; color:#fff !important; text-decoration:none; background:linear-gradient(145deg,rgba(255,255,255,.25),rgba(255,255,255,.1)); box-shadow:0 4px 12px rgba(54,32,0,.16),inset 0 1px 0 rgba(255,255,255,.16); -webkit-tap-highlight-color:transparent; transition:transform .18s ease,background .18s ease,box-shadow .18s ease; }
.silsila-header-chat svg { width:22px; height:22px; stroke-width:2; }
.silsila-header-chat:hover { background:rgba(255,255,255,.3); box-shadow:0 5px 15px rgba(54,32,0,.2); }
.silsila-header-chat:active { transform:scale(.96); }
.silsila-header-chat:focus-visible { outline:2px solid #fff; outline-offset:2px; }
.silsila-chat-unread { position:absolute; top:-3px; right:-4px; min-width:18px; padding:2px 4px; border-radius:12px; background:#dd2349; color:#fff; font-size:10px; line-height:14px; text-align:center; }
.silsila-chat-unread[hidden] { display:none !important; }
@media (max-width:520px) {
    .silsila-header-chat { width:36px; height:36px; border-radius:12px; }
    .silsila-header-chat svg { width:20px; height:20px; }
}
.silsila-information-links { display:flex; flex-wrap:wrap; justify-content:center; gap:12px 22px; padding:24px 16px 96px; font-size:13px; }
.silsila-information-links a { color:#667385; text-decoration:none; }
.silsila-information-links a:hover { color:#005bff; text-decoration:underline; }

#myshop-seller-chat { max-width:1060px; margin:24px auto 0; font-family:inherit; border-radius:22px; overflow:hidden; background:#fff; box-shadow:0 8px 35px rgba(32,42,66,.08); border:1px solid #e5e9f1; }
#myshop-seller-chat .support-chat-header { display:flex; align-items:center; justify-content:space-between; gap:12px; padding:20px; background:#222d48; color:#fff; }
#myshop-seller-chat .support-chat-header h2 { margin:0; color:inherit; font-size:22px; }
#myshop-seller-chat .support-chat-header p { margin:6px 0 0; color:#ced5e6; font-size:13px; }
#myshop-seller-chat .support-chat-header > div { display:block; min-width:0; }
#myshop-seller-chat .silsila-support-link { padding:9px 12px; border-radius:10px; color:#fff; background:rgba(255,255,255,.12); text-decoration:none; font-size:13px; }
.silsila-messages-layout { display:grid; grid-template-columns:minmax(210px,280px) minmax(0,1fr); }
.silsila-message-inbox { position:relative; min-width:0; padding:14px 10px; border-right:1px solid rgba(255,255,255,.12); background:#1f2228; color:#f7f8fa; max-height:760px; overflow:auto; }
.silsila-chat-search { box-sizing:border-box; width:100%; min-height:44px; margin:0 0 10px; padding:10px 12px; border:1px solid rgba(255,255,255,.2); border-radius:12px; background:#292d35; color:#fff; font:inherit; font-size:13px; }
.silsila-chat-search::placeholder { color:#b7bbc3; }
.silsila-chat-day { width:fit-content; max-width:90%; margin:12px auto; padding:5px 12px; border-radius:12px; background:rgba(125,145,165,.15); color:inherit; font-size:12px; text-align:center; }
.silsila-chat-new-messages { align-self:center; flex-shrink:0; min-height:40px; margin:5px auto; padding:8px 15px; border:0; border-radius:20px; background:#f98202; color:#010101; font:inherit; font-size:12px; cursor:pointer; }
.silsila-chat-new-messages[hidden] { display:none!important; }
.silsila-chat-retry { min-height:40px; margin-left:8px; padding:4px 10px; border:1px solid currentColor; border-radius:10px; color:inherit; background:transparent; font:inherit; cursor:pointer; }
.silsila-message-inbox h3 { margin:6px 10px 14px; color:#f7f8fa; font-size:15px; }
.silsila-message-thread { min-width:0; }
.silsila-conversation { display:flex; align-items:center; gap:12px; position:relative; width:100%; min-height:86px; padding:10px 8px; margin:0 0 3px; border:1px solid transparent; border-radius:16px; background:transparent; text-align:left; cursor:pointer; font:inherit; color:#f7f8fa; }
.silsila-conversation:hover { background:#292d35; }
.silsila-conversation.is-current { background:rgba(0,122,255,.2); border-color:rgba(0,122,255,.32); }
.silsila-conversation-avatar { display:grid; width:62px; height:62px; flex:0 0 62px; place-items:center; overflow:hidden; border-radius:16px; background:#30343b; color:#f7f8fa; font-size:17px; font-weight:700; }
.silsila-conversation-avatar img { display:block; width:100%; height:100%; object-fit:cover; }
.silsila-conversation-copy { display:block; min-width:0; flex:1; }
.silsila-conversation-meta { display:flex; align-items:center; gap:7px; min-width:0; }
.silsila-conversation-name { display:flex; align-items:center; gap:6px; min-width:0; flex:1; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; font-size:14px; font-weight:700; }
.silsila-self-chat-badge { display:inline-flex; flex:none; align-items:center; padding:3px 7px; border:1px solid rgba(137,180,255,.35); border-radius:999px; color:#d9e7ff; background:rgba(0,91,255,.18); font-size:9px; line-height:1.2; font-weight:700; }
.silsila-conversation-time { flex:none; color:#b7bbc3; font-size:10px; white-space:nowrap; }
.silsila-verified { display:inline-grid; width:15px; height:15px; flex:none; place-items:center; border-radius:50%; background:#007aff; }
.silsila-verified svg { width:10px; height:10px; fill:none; stroke:#fff; stroke-width:2; stroke-linecap:round; stroke-linejoin:round; }
.silsila-conversation-preview-row { display:flex; align-items:center; gap:8px; min-width:0; margin-top:7px; }
.silsila-conversation-preview { display:block; min-width:0; flex:1; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; color:#b7bbc3; font-size:12px; }
.silsila-inbox-unread { display:inline-flex; min-width:20px; height:20px; padding:0 5px; align-items:center; justify-content:center; border-radius:10px; background:#007aff; color:#fff; font-size:10px; font-weight:700; }
.silsila-more-chats, .silsila-inbox-retry, .silsila-thread-retry { display:block; margin:12px auto; padding:9px 14px; border:1px solid #dce3f1; background:#fff; border-radius:10px; color:#005bff; font:inherit; cursor:pointer; }
.silsila-chat-compose { position:sticky; z-index:2; bottom:10px; display:grid; width:52px; height:52px; margin:12px 8px 2px auto; place-items:center; border:0; border-radius:50%; background:#ff8800; color:#fff; box-shadow:0 6px 18px rgba(0,0,0,.3); cursor:pointer; }
.silsila-chat-compose svg { width:21px; height:21px; fill:none; stroke:currentColor; stroke-width:2; stroke-linecap:round; stroke-linejoin:round; }
.silsila-chat-compose:focus-visible { outline:2px solid #fff; outline-offset:3px; }
#myshop-seller-chat .support-chat-toolbar { display:flex; gap:10px; padding:14px 18px; border-bottom:1px solid #e8ebf1; align-items:center; }
.js-seller-thread-title { margin:0; overflow-wrap:anywhere; font-size:14px; line-height:1.5; color:#222d48; }
.js-seller-chat-status { margin:0; padding:0 18px; color:#61718b; font-size:12px; line-height:1.5; }
.js-seller-chat-status:not(:empty) { padding-top:9px; padding-bottom:9px; }
.js-seller-chat-status.is-error { color:#b42318; background:#fff5f3; }
#myshop-seller-chat .support-chat-messages { height:min(54vh,510px); min-height:300px; }
#myshop-seller-chat .support-message-bubble p { white-space:normal; }
#myshop-seller-chat .support-chat-composer { display:flex; flex-wrap:wrap; gap:10px; align-items:flex-end; padding:14px 18px; border-top:1px solid #e8ebf1; background:#fff; }
.silsila-message-label { width:100%; font-size:12px; color:#68758b; }
#myshop-seller-chat .js-seller-file-previews { flex:1 1 100%; width:100%; margin:0; }
#myshop-seller-chat .silsila-seller-composer-row { display:grid; grid-template-columns:44px minmax(0,1fr) auto; gap:8px; align-items:end; width:100%; }
#myshop-seller-chat .silsila-seller-composer-row .support-attach-button { flex:0 0 44px; cursor:pointer; }
#myshop-seller-chat .silsila-seller-composer-row .support-attach-button svg { width:20px; height:20px; }
#myshop-seller-chat .silsila-seller-composer-row .support-attach-button.has-files { background:#eef3ff; border-color:#c7d9ff; }
#myshop-seller-chat .support-file-chip button { flex:0 0 30px; width:30px; height:30px; border:0; border-radius:9px; background:#fff; color:#5f6678; font-size:18px; line-height:1; cursor:pointer; }
#myshop-seller-chat textarea { flex:1; min-width:0; min-height:58px; padding:12px; border:1px solid #dfe4ef; border-radius:12px; resize:vertical; font:inherit; font-size:14px; color:#222d48; background:#fafbfe; }
#myshop-seller-chat textarea:focus { outline:2px solid #c7d9ff; border-color:#005bff; }
#myshop-seller-chat .support-send-button { display:inline-flex; min-height:44px; padding:10px 14px; width:auto; align-items:center; justify-content:center; border:0; border-radius:12px; color:#fff; background:#005bff; cursor:pointer; font:inherit; font-size:13px; }
#myshop-seller-chat .support-send-button:disabled { opacity:.55; cursor:wait; }
#myshop-seller-chat [hidden] { display:none !important; }
.silsila-back-inbox { display:none; }
@media (max-width:640px) {
    #myshop-seller-chat { margin:12px 10px 0; border-radius:16px; }
    #myshop-seller-chat .support-chat-header { padding:16px; }
    #myshop-seller-chat .support-chat-header h2 { font-size:19px; }
    #myshop-seller-chat .support-chat-header p { font-size:11px; }
    .silsila-messages-layout { display:block; }
    .silsila-message-inbox { border:0; max-height:65vh; min-height:260px; }
    .silsila-message-thread { display:none; }
    .is-thread-open .silsila-message-thread { display:block; }
    .is-thread-open .silsila-message-inbox { display:none; }
    .silsila-back-inbox { display:block; border:0; padding:7px 9px; border-radius:9px; color:#005bff; background:#eef3ff; font:inherit; font-size:11px; cursor:pointer; flex:none; }
    #myshop-seller-chat .support-chat-toolbar { padding:10px 12px; }
    #myshop-seller-chat .support-chat-messages { height:48vh; min-height:240px; }
    #myshop-seller-chat .support-chat-composer { padding:12px; gap:8px; }
    #myshop-seller-chat .support-send-button { padding:9px 10px; font-size:12px; }
    #myshop-seller-chat .silsila-seller-composer-row { grid-template-columns:40px minmax(0,1fr) auto; gap:6px; }
    #myshop-seller-chat .silsila-seller-composer-row .support-attach-button { flex-basis:40px; width:40px; height:42px; border-radius:11px; }
    body.silsila-messages-page { overflow:hidden !important; }
    #myshop-seller-chat {
        position:fixed;
        z-index:120000;
        inset:0;
        display:flex;
        width:100%;
        max-width:none;
        height:100vh;
        height:100dvh;
        min-height:0;
        margin:0;
        flex-direction:column;
        border:0;
        border-radius:0;
        overflow:hidden;
        box-shadow:none;
        padding-top:env(safe-area-inset-top);
        padding-bottom:env(safe-area-inset-bottom);
        box-sizing:border-box;
    }
    #myshop-seller-chat .support-chat-header { flex:none; }
    #myshop-seller-chat .silsila-messages-layout { display:flex; min-height:0; flex:1; flex-direction:column; overflow:hidden; }
    #myshop-seller-chat .silsila-message-inbox { width:100%; min-height:0; max-height:none; flex:1; overflow-y:auto; overscroll-behavior:contain; }
    #myshop-seller-chat .silsila-message-thread { display:none; min-height:0; flex:1; flex-direction:column; overflow:hidden; }
    #myshop-seller-chat.is-thread-open .silsila-message-thread { display:flex; }
    #myshop-seller-chat.is-thread-open .silsila-message-inbox { display:none; }
    #myshop-seller-chat .js-seller-panel,
    #myshop-seller-chat .js-support-panel { display:flex; min-height:0; flex:1; flex-direction:column; overflow:hidden; }
    #myshop-seller-chat .support-chat-toolbar { flex:none; }
    #myshop-seller-chat .support-chat-messages,
    #myshop-seller-chat .js-support-panel .support-chat-messages { height:auto; min-height:0; flex:1; overflow-y:auto; overscroll-behavior:contain; }
    #myshop-seller-chat .support-chat-composer { flex:none; padding-bottom:max(12px, env(safe-area-inset-bottom)); }
    #myshop-seller-chat .js-seller-chat-status:not(:empty) { flex:none; }
}

/* Support dialog inside Messages */
#myshop-seller-chat button.silsila-support-link { border:0; font:inherit; font-size:13px; min-height:40px; cursor:pointer; }
#myshop-seller-chat button.silsila-support-link:hover { background:rgba(255,255,255,.22); }
#myshop-seller-chat button.silsila-support-link:focus-visible { outline:2px solid #fff; outline-offset:2px; }
.silsila-conversation:focus-visible { outline:2px solid #005bff; outline-offset:1px; }
#myshop-seller-chat .js-support-panel #myshop-support-client { max-width:none; margin:0; border:0; border-radius:0; box-shadow:none; }
#myshop-seller-chat .js-support-panel .support-chat-header { display:none; }
#myshop-seller-chat .js-support-panel .support-chat-messages { height:min(50vh,470px); min-height:280px; }
@media (max-width:640px) {
    #myshop-seller-chat .js-support-panel .support-chat-messages { height:46vh; min-height:230px; }
    #myshop-seller-chat .js-support-panel .support-chat-form { padding:12px; }
}
