.cm-support{--sc-navy:#07192f;--sc-line:#dbe3eb;--sc-muted:#64748b;color:#172033;font:14px/1.45 system-ui,-apple-system,sans-serif}
.cm-support,.cm-support *{box-sizing:border-box}
.cm-support[hidden],.cm-support [hidden],.cm-support-launcher[hidden]{display:none!important}
.cm-support button,.cm-support input,.cm-support select,.cm-support textarea{font:inherit;box-sizing:border-box}
.cm-support button{cursor:pointer;border:1px solid var(--sc-line);border-radius:9px;background:#fff;color:var(--sc-navy);padding:9px 12px;line-height:1.3;margin:0}
.cm-support button:disabled{cursor:wait;opacity:.6}.cm-support button:focus-visible,.cm-support input:focus-visible,.cm-support select:focus-visible,.cm-support textarea:focus-visible{outline:3px solid #f5b923;outline-offset:2px}
.cm-support .sc-primary{background:var(--sc-navy);border-color:var(--sc-navy);color:#fff;font-weight:750}
.cm-support-launcher{position:fixed;right:22px;bottom:22px;z-index:80;display:flex;align-items:center;gap:9px;background:#07192f;color:white;border:1px solid #203e60;box-shadow:0 7px 24px #07192f33;border-radius:30px;padding:14px 20px;font:700 15px system-ui;cursor:pointer}
.sc-badge{display:inline-flex;justify-content:center;align-items:center;min-width:22px;height:22px;padding:0 5px;border-radius:50px;background:#ffc20a;color:#07192f;font-size:12px;font-weight:800}.sc-badge:empty{display:none}
.sc-widget{position:fixed;z-index:90;right:22px;bottom:82px;width:420px;max-width:calc(100vw - 28px);height:min(640px,calc(100dvh - 110px));border:1px solid var(--sc-line);border-radius:18px;background:white;box-shadow:0 16px 55px #07192f35;overflow:hidden;display:flex;flex-direction:column}
.sc-widget-heading{background:var(--sc-navy);color:#fff;padding:15px 17px;display:flex;align-items:center;justify-content:space-between;gap:10px}.sc-widget-heading b{font-size:17px}.sc-widget-heading button{background:transparent;color:white;border-color:#597088}.sc-widget-heading small{display:block;color:#d3e1ed}
.sc-inbox{background:white;border:1px solid var(--sc-line);border-radius:16px;padding:22px}.sc-inbox h2{margin:0 0 5px}.sc-intro{margin:0 0 18px;color:var(--sc-muted)}
.sc-tools{display:flex;align-items:end;flex-wrap:wrap;gap:12px;margin-bottom:16px}.sc-tools label{font-weight:650;display:block}.sc-tools select{display:block;width:auto;min-width:145px;border:1px solid var(--sc-line);padding:9px;border-radius:8px;margin:5px 0 0;background:white}.sc-tools .sc-check{display:flex;align-items:center;gap:6px;min-height:39px}.sc-check input{width:auto;margin:0}
.sc-inbox-layout{display:grid;grid-template-columns:280px minmax(0,1fr);grid-template-rows:minmax(0,1fr);height:clamp(480px,70dvh,760px);min-height:0;border:1px solid var(--sc-line);border-radius:12px;overflow:hidden}
.sc-list-pane{display:flex;flex-direction:column;border-right:1px solid var(--sc-line);min-height:0;background:#f7f9fb}.sc-thread-list{overflow:auto;overscroll-behavior:contain;min-width:0;min-height:0;flex:1;padding:8px}.cm-support .sc-thread{display:block;width:100%;text-align:left;padding:13px;margin:0 0 7px;border:1px solid transparent;background:#fff;border-radius:10px}.sc-thread[aria-pressed=true]{border-color:#d2a94f!important;box-shadow:inset 3px 0 #d2a94f}.sc-thread b{display:block;overflow-wrap:anywhere}.sc-thread small{display:block;color:var(--sc-muted);margin:3px 0}.sc-thread .sc-preview{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;color:#526278;font-size:12px}.sc-thread .sc-unread{float:right;width:9px;height:9px;border-radius:50%;background:#da9100;margin:4px}.sc-pager{display:flex;justify-content:space-between;align-items:center;padding:10px;gap:7px;border-top:1px solid var(--sc-line);font-size:12px}.sc-pager button{padding:7px}
.sc-conversation{display:flex;flex-direction:column;min-width:0;min-height:0;flex:1;overflow:hidden;background:#fff}.sc-conversation-head{padding:14px 16px;border-bottom:1px solid var(--sc-line);display:flex;align-items:center;justify-content:space-between;gap:10px;min-height:66px}.sc-conversation-head b,.sc-conversation-head small{display:block;overflow-wrap:anywhere}.sc-conversation-head small{color:var(--sc-muted);font-size:12px}.sc-close-ticket{font-size:12px!important}
.sc-messages{flex:1;min-height:0;overflow:auto;overscroll-behavior:contain;padding:18px 14px;background:#f3f6f9;display:flex;flex-direction:column;gap:11px}.sc-message{flex-shrink:0;max-width:88%;padding:11px 13px;border:1px solid #e1e8f0;border-radius:13px 13px 13px 3px;background:#fff;align-self:flex-start}.sc-message.sc-mine{align-self:flex-end;background:#eaf2fb;border-color:#d0e0f0;border-radius:13px 13px 3px 13px}.sc-message strong{display:block;font-size:11px;color:#53667c;margin-bottom:4px}.sc-message p{margin:0;white-space:pre-wrap;overflow-wrap:anywhere}.sc-message time{display:block;text-align:right;font-size:10px;color:#66778a;margin-top:5px}.sc-empty{color:var(--sc-muted);text-align:center;padding:28px 12px;margin:auto;max-width:380px}.cm-support .sc-older{align-self:center;font-size:12px;padding:6px 12px}.sc-resolved{padding:9px 16px;background:#ecf8f1;color:#226144;font-size:12px}
.sc-compose{border-top:1px solid var(--sc-line);padding:12px;background:#fff}.cm-support .sc-compose textarea{display:block;width:100%;min-height:68px;max-height:150px;resize:vertical;margin:0;border:1px solid #bdc9d6;border-radius:10px;padding:10px;color:#172033;background:white}.sc-compose label{display:block;font-size:12px;font-weight:700;margin-bottom:5px}.sc-compose-actions{display:flex;justify-content:space-between;align-items:center;gap:8px;margin-top:8px}.sc-compose-actions small{color:var(--sc-muted);font-size:11px}.sc-error{padding:8px 12px;background:#fff0ee;color:#9b2f27;font-size:12px;overflow-wrap:anywhere}.sc-error:empty{display:none}
@media(max-width:1150px){.sc-inbox-layout{grid-template-columns:230px minmax(0,1fr)}}
@media(max-width:700px){.sc-inbox{padding:14px}.sc-inbox-layout{display:flex;flex-direction:column;height:auto;max-height:none}.sc-list-pane{border-right:0;border-bottom:1px solid var(--sc-line);height:240px;max-height:260px;flex:none}.sc-thread-list{min-height:70px}.sc-inbox .sc-conversation{height:clamp(480px,75dvh,640px);flex:none}.sc-tools{gap:9px}.sc-tools select{min-width:125px}.sc-widget{inset:10px;width:auto;max-width:none;height:calc(100dvh - 20px);border-radius:14px}.cm-support-launcher{right:14px;bottom:16px}.sc-message{max-width:94%}}

.sc-store-directory{margin-bottom:20px}.sc-store-directory h3{margin:0 0 4px;font-size:16px}.sc-store-directory>p{margin:0 0 12px;color:var(--sc-muted);font-size:13px}.sc-store-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:9px}.cm-support .sc-store{text-align:left;min-height:86px;padding:13px;border-color:#dbe3eb;background:#f7f9fb}.sc-store b,.sc-store span,.sc-store small{display:block}.sc-store span{margin-top:7px;font-size:12px;color:#526278}.sc-store small{margin-top:5px;color:#86591b;font-size:11px}.cm-support .sc-store[aria-pressed=true]{border-color:#d2a94f;box-shadow:inset 3px 0 #d2a94f}.cm-support .sc-store-unread{border-color:#d2a94f;background:#fff9e9}.sc-store-unread span{font-weight:750;color:#815409}@media(max-width:700px){.sc-store-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.cm-support .sc-store{padding:10px;font-size:12px}.sc-store span{font-size:11px}}

/* Keep support distinct from the customer's sticky QR action, including iPhone safe areas. */
.cm-support-launcher{margin:0;min-height:48px;box-sizing:border-box}
.sc-chat-icon{width:22px;height:22px;flex:0 0 22px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.cm-support-launcher.sc-above-scanner{bottom:calc(128px + env(safe-area-inset-bottom,0px));background:#fff;color:#07192f;border:1px solid #c6d4e2;box-shadow:0 5px 20px #07192f26;padding:12px 16px;gap:9px}
.sc-widget-with-scanner{bottom:calc(188px + env(safe-area-inset-bottom,0px));height:min(640px,calc(100dvh - 216px - env(safe-area-inset-bottom,0px)))}
#openScanner.qr-action{bottom:calc(12px + env(safe-area-inset-bottom,0px))}
body:has(#scanModal.open) .cm-support-launcher,body:has(#payModal.open) .cm-support-launcher{display:none!important}
#scanModal.scan-modal,#payModal.pay-modal{z-index:120}
@media(max-width:700px){.sc-widget-with-scanner{inset:max(10px,env(safe-area-inset-top,0px)) 10px max(10px,env(safe-area-inset-bottom,0px));height:auto}.cm-support-launcher.sc-above-scanner{right:14px;font-size:14px}}

/* Keep each scroll area bounded; controls and message bubbles retain their size. */
.sc-widget-heading,.sc-conversation-head,.sc-resolved,.sc-compose,.sc-error,.sc-pager,.sc-older{flex-shrink:0}
.sc-thread-list:focus-visible,.sc-messages:focus-visible{outline:3px solid #f5b923;outline-offset:-3px}
