/*! Copyright (c) 2026 StickerMint LLC. All rights reserved. Proprietary software. See LICENSE.txt. Third-party components retain their respective licenses. */
/* Live chat takes over the whole workspace area under the portal header, like a messaging app. */
#content.help-frame{padding:0;max-width:none;width:100%}
.help-layout{display:grid;grid-template-columns:clamp(240px,28%,340px) minmax(0,1fr);height:calc(100dvh - 70px);background:#fff;border-top:1px solid var(--line,#e2e8f0);overflow:hidden;color:#17212f}
.help-side{display:flex;flex-direction:column;min-height:0;border-right:1px solid var(--line,#e2e8f0)}
.help-side-head{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:16px 16px 10px}.help-side-head h1{margin:0;font-size:22px;line-height:1.2;letter-spacing:-.01em}
.help-side-tools,.help-head-actions{display:flex;align-items:center;gap:8px}.help-head-actions{flex:none}
.help-icon{width:36px;height:36px;border-radius:50%;border:0;background:#f0f2f5;color:#33465e;display:grid;place-items:center;cursor:pointer;padding:0;flex:none}.help-icon svg{width:18px;height:18px}.help-icon:hover{background:#e4e8ee}.help-icon.is-on{background:#e7f0fd;color:#1a5fd0}
.help-filters{display:flex;gap:4px;padding:0 12px 10px}.help-filters button{border:0;border-radius:18px;padding:7px 14px;font:inherit;font-size:13px;font-weight:600;background:transparent;color:#4a5a70;cursor:pointer}.help-filters button:hover{background:#f0f2f5}.help-filters .is-active,.help-filters .is-active:hover{background:#e7f0fd;color:#1a5fd0}
.help-off{margin:0 12px 10px;padding:10px 12px;border:1px solid #f3d9a4;background:#fff8e8;border-radius:10px;text-align:left;font:inherit;font-size:12.5px;line-height:1.4;color:#7a5410;cursor:pointer}
.help-list{flex:1;overflow-y:auto;min-height:0;padding:0 8px 8px}.help-none{padding:14px 10px;color:#718097;font-size:13px;margin:0}
.help-thread{display:flex;align-items:center;gap:12px;width:100%;text-align:left;font:inherit;color:inherit;background:none;border:0;border-radius:10px;padding:10px;cursor:pointer}.help-thread:hover{background:#f5f7fa}.help-thread.is-selected{background:#eaf1fd}
.help-thread-shell{position:relative;overflow:hidden;border-radius:10px}.help-thread-shell .help-thread{position:relative;background:#fff;transition:transform .18s ease;touch-action:pan-y;box-sizing:border-box}.help-thread-shell .help-thread:hover{background:#f5f7fa}.help-thread-shell .help-thread.is-selected{background:#eaf1fd}.help-thread-shell.is-revealed .help-thread{transform:translateX(80px)}.help-delete-thread{visibility:hidden;position:absolute;left:0;top:0;bottom:0;width:80px;min-height:44px;border:0;background:#ffebef;color:#a32946;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;font:600 12px Inter,Arial,sans-serif;cursor:pointer}.help-delete-thread svg{width:20px;height:20px}.help-thread-shell.is-revealed .help-delete-thread{visibility:visible}.help-delete-action.button.secondary{background:#fff5f7;border-color:#f3d8df;color:#a32946}.help-delete-action:hover{background:#ffebef!important}
.help-delete-dialog{width:calc(100vw - 32px);max-width:390px;padding:22px;border:1px solid #e2e8f0;border-radius:16px;color:#17212f;box-sizing:border-box;box-shadow:0 16px 60px #17212f33}.help-delete-dialog::backdrop{background:#14243c80}.help-delete-dialog h2{margin:0 0 10px;font-size:20px}.help-delete-dialog p{margin:0 0 20px;font-size:14px;line-height:1.5}.help-delete-dialog>div{display:flex;justify-content:flex-end;gap:10px}.help-delete-dialog button{min-height:44px}.help-delete-confirm.button{background:#ffebef;color:#a32946;border:1px solid #efbac8}.help-delete-confirm.button:hover{background:#ffdce5}.help-delete-error{color:#a32946;font-size:12px!important}
.help-delete-action.button.small{min-width:44px;min-height:44px}
@media(prefers-reduced-motion:reduce){.help-thread-shell .help-thread{transition:none}}
.help-thread-text{display:grid;gap:2px;min-width:0;flex:1}.help-thread-top{display:flex;justify-content:space-between;gap:8px;align-items:baseline}.help-thread-top strong{font-size:14px;font-weight:600;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.help-thread-top small{color:#8a97a8;font-size:11.5px;flex:none}
.help-thread-preview,.help-thread-meta{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.help-thread-preview{font-size:13px;color:#5b6b80}.help-thread-meta{font-size:11.5px;color:#9aa6b5}
.help-thread.is-unread strong,.help-thread.is-unread .help-thread-preview{font-weight:700;color:#17212f}
.help-unread{min-width:20px;height:20px;border-radius:10px;background:#216be0;color:#fff;font-size:11px;line-height:20px;text-align:center;padding:0 6px;flex:none;box-sizing:border-box}
.help-avatar{position:relative;flex:none;width:44px;height:44px;border-radius:50%;display:grid;place-items:center;color:#fff;font-weight:700;font-size:17px;background:#2563eb}.help-avatar i{position:absolute;right:0;bottom:0;width:12px;height:12px;border-radius:50%;background:#22c55e;border:2px solid #fff}
.help-avatar.c1{background:#7c3aed}.help-avatar.c2{background:#db2777}.help-avatar.c3{background:#ea580c}.help-avatar.c4{background:#0d9488}.help-avatar.c5{background:#4f46e5}
.help-online{display:inline-block;width:8px;height:8px;border-radius:50%;background:#22c55e;margin-right:5px;vertical-align:1px}
.help-convo{display:flex;flex-direction:column;min-width:0;min-height:0}
/* The conversation's top bar: artwork, who and what, and every action, in one row. */
.help-pane-head{display:flex;align-items:center;gap:12px;padding:8px 16px;border-bottom:1px solid var(--line,#e2e8f0);min-height:64px;box-sizing:border-box;flex:none;position:relative;z-index:3}.help-pane-head>strong{flex:1;font-size:16px}
.help-thumb{position:relative;flex:none;width:46px;height:46px;border-radius:10px;border:1px solid var(--line,#e2e8f0);background:#fff;display:grid;place-items:center}.help-thumb>img{width:40px;height:40px;object-fit:contain;display:block}
.help-thumb-big{display:none;position:absolute;left:0;top:calc(100% + 8px);width:260px;height:260px;padding:12px;background:#fff;border:1px solid var(--line,#e2e8f0);border-radius:14px;box-shadow:0 14px 40px rgba(17,33,58,.18);box-sizing:border-box}.help-thumb-big img{width:100%;height:100%;object-fit:contain;display:block}
.help-thumb:hover .help-thumb-big,.help-thumb:focus-visible .help-thumb-big{display:block}
.help-head-text{flex:1;min-width:0;display:grid;gap:1px}.help-head-text strong{font-size:15px;line-height:20px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.help-head-text small{font-size:12px;line-height:17px;color:#718097;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.help-head-text small a{color:inherit;text-decoration:underline}.help-making{color:#46566b!important;font-weight:600}
.help-action{display:inline-flex;align-items:center;justify-content:center;gap:6px;white-space:nowrap}.help-action svg{width:15px;height:15px;flex:none}
.help-nodesign{font-size:12px;color:#8a97a8;padding:6px 10px;border:1px dashed #d8e1ed;border-radius:8px;white-space:nowrap}
.help-back{display:none}
.help-thread-body{flex:1;display:flex;min-height:0}.help-chat{flex:1;display:flex;flex-direction:column;min-width:0;min-height:0}
.help-log{flex:1;overflow-y:auto;padding:16px 20px;display:flex;flex-direction:column;gap:3px;min-height:0}
.help-meta{font-size:11px;color:#8a97a8;margin:12px 6px 3px;font-weight:600}.help-meta:first-child{margin-top:0}.help-meta.is-merchant{align-self:flex-end}.help-meta.is-visitor{align-self:flex-start}
.help-msg{max-width:min(70%,620px);padding:9px 14px;border-radius:18px;font-size:14px;line-height:1.45;white-space:pre-wrap;overflow-wrap:anywhere}.help-msg.is-visitor{align-self:flex-start;background:#f0f2f5}.help-msg.is-merchant{align-self:flex-end;background:#216be0;color:#fff}
.help-tag{display:block;margin-top:5px;font-size:11px;font-weight:600;opacity:.85}.help-tag::before{content:"↻ "}
.help-reply{display:flex;gap:8px;align-items:flex-end;padding:10px 16px 14px;flex:none;min-width:0;box-sizing:border-box}.help-reply textarea{flex:1;min-width:0;width:0;resize:none;font:inherit;font-size:14px;line-height:1.4;padding:10px 16px;border:0;border-radius:20px;background:#f0f2f5;min-height:40px;max-height:140px;box-sizing:border-box;outline:none;overflow-y:auto}.help-reply textarea:focus{box-shadow:0 0 0 2px #b9cff5}
.help-send{width:40px;height:40px;border-radius:50%;border:0;background:#216be0;color:#fff;display:grid;place-items:center;cursor:pointer;flex:none;padding:0}.help-send svg{width:18px;height:18px}.help-send:disabled{opacity:.5;cursor:default}
.help-reply-status{flex:0 0 100%;margin:0;color:#a32936;font-size:12px;line-height:1.4;overflow-wrap:anywhere}
.help-empty{flex:1;display:grid;place-items:center;color:#718097;font-size:14px;padding:24px;text-align:center}
.help-settings-body{overflow-y:auto;padding:20px 24px;flex:1;min-height:0}.help-off-note{margin:0 0 14px;max-width:620px}
.help-settings{display:grid;gap:12px;max-width:620px}.help-settings label{display:grid;gap:5px;font-size:12.5px;font-weight:600}.help-settings input:not([type=checkbox]),.help-settings textarea{font:inherit;font-weight:400;font-size:14px;padding:8px 10px;border:1px solid #d8e1ed;border-radius:8px}.help-settings .help-switch{display:flex;align-items:center;gap:8px;font-weight:600}
.nav-item .help-nav-badge{margin-left:auto;min-width:18px;height:18px;border-radius:9px;background:#e5484d;color:#fff;font-size:10.5px;font-weight:700;line-height:18px;text-align:center;padding:0 5px}
/* The visitor's name and specs get the room first: secondary actions show labels only on wide
   screens (hover names them), and below 1100px every action is an icon. */
@media(max-width:1599px){.help-action.secondary span{display:none}.help-action.secondary{padding-left:9px;padding-right:9px}}
@media(max-width:1099px){.help-action span{display:none}.help-action{padding-left:9px;padding-right:9px}}
/* Phones: the list and the conversation take turns, with a back button. */
@media(max-width:760px){.help-layout{grid-template-columns:1fr}.help-layout.is-reading .help-side,.help-layout:not(.is-reading) .help-convo{display:none}.help-back{display:grid}.help-pane-head{gap:8px;padding:8px 10px;flex-wrap:wrap}.help-head-actions{order:3;width:100%;justify-content:flex-end;gap:6px}.help-action.primary span{display:inline}.help-action.primary{padding-left:12px;padding-right:12px}.help-thumb-big{display:none!important}.help-msg{max-width:84%}.help-log{padding:12px}.help-reply{padding:8px 10px max(10px,env(safe-area-inset-bottom));gap:6px}.help-reply textarea{font-size:16px;max-height:110px;padding:10px 12px}.help-send{width:44px;height:44px;flex:0 0 44px}}
@media(max-width:760px){.help-layout.is-keyboard-open .help-pane-head{min-height:44px;padding:4px 8px;flex-wrap:nowrap}.help-layout.is-keyboard-open .help-head-actions,.help-layout.is-keyboard-open .help-status,.help-layout.is-keyboard-open .help-making{display:none}.help-layout.is-keyboard-open .help-avatar{width:32px;height:32px;font-size:14px}.help-layout.is-keyboard-open .help-thumb{width:32px;height:32px}.help-layout.is-keyboard-open .help-thumb>img{width:28px;height:28px}.help-layout.is-keyboard-open .help-reply{padding:6px 8px max(8px,env(safe-area-inset-bottom))}.help-layout.is-keyboard-open .help-reply textarea{max-height:64px}}
@media(max-width:760px){.help-layout.is-keyboard-open .help-reply.has-reply-error textarea{max-height:44px}.help-layout.is-keyboard-open .help-reply-status{font-size:11.5px;line-height:1.35}}
@media(max-width:400px){.help-head-actions .help-action{min-width:44px;min-height:44px;padding-left:8px;padding-right:8px}.help-head-actions .help-action.primary span{display:none}}
