.legion-root .support-toolbar,.zj-support .support-toolbar{display:flex;align-items:center;gap:12px;justify-content:space-between}.legion-root .support-toolbar h3{margin:0;font-size:20px}.legion-root [data-chat]{min-width:0}.legion-root .support-icon{display:inline-flex;align-items:center;justify-content:center;flex:0 0 40px;width:40px;height:40px;border:1px solid #655347;border-radius:10px;background:transparent;color:#e5c7a5;padding:10px;cursor:pointer}.support-icon svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}.legion-root .support-context{padding:12px 14px;border-radius:12px;background:#28221f;color:#dfc6b0;font-size:13px;line-height:1.5;margin:16px 0;overflow-wrap:anywhere}.legion-root .support-actions{display:flex;gap:12px;margin:16px 0;flex-wrap:wrap}.legion-root .support-thread{width:100%;display:grid;grid-template-columns:1fr auto;text-align:left;gap:8px;padding:16px;margin:12px 0;background:#242321;border:1px solid #413d38;border-radius:14px;color:#eee;cursor:pointer}.legion-root .support-thread strong{font-size:15px;overflow-wrap:anywhere}.legion-root .support-thread span,.legion-root .support-thread small{font-size:12px}.legion-root .support-state{color:#cbb09a}.legion-root .support-count,.support-unread{background:#c12316;color:#fff;border-radius:20px;font-size:11px;min-width:18px;height:18px;line-height:18px;text-align:center;padding:0 4px}.support-unread{position:absolute;right:0;top:0;pointer-events:none}.support-unread[hidden]{display:none!important}[data-legion-account-entry],[data-tab="chat"],[data-chat-shortcut]{position:relative}.legion-root .support-status{font-size:13px;color:#c7b19b;min-height:0;margin:8px 0}.legion-root .support-error{color:#ffb3a8}.legion-root .support-history{display:flex;flex-direction:column;gap:14px;margin:16px 0}.legion-root .support-message{max-width:92%;padding:14px 16px;border-radius:16px;border:1px solid #49423c;overflow-wrap:anywhere;background:#252422}.legion-root .support-own{align-self:flex-end;background:#382722;border-color:#6e483b}.legion-root .support-reply{align-self:flex-start}.legion-root .support-message strong{font-size:12px;color:#e3bc94}.legion-root .support-message p{white-space:pre-wrap;line-height:1.5;margin:8px 0;font-size:14px}.legion-root .support-message time{display:block;font-size:11px;color:#aaa}.legion-root .support-message img{max-width:100%;max-height:320px;object-fit:contain;border-radius:8px;margin:8px 0}.legion-root .support-composer{padding:16px;border:1px solid #635044;border-radius:16px;background:#211d1a;margin-top:18px}.legion-root .support-composer label{display:block;font-size:13px}.legion-root .support-composer textarea{box-sizing:border-box;display:block;width:100%;background:#151515;border:1px solid #554b44;border-radius:8px;color:#eee;padding:12px;margin:8px 0 12px;min-height:90px;font:inherit;font-size:14px;resize:vertical}.legion-root .support-composer button:disabled{opacity:.5;cursor:wait}.legion-root .support-composer .legion-primary{min-width:0;padding:10px 16px;font-size:14px}.legion-root .support-attachments{display:flex;gap:8px;flex-wrap:wrap}.legion-root .support-attachments>div{position:relative}.legion-root .support-attachments img{width:70px;height:70px;object-fit:cover;border-radius:8px}.legion-root .support-attachments button{position:absolute;right:0;top:0;width:24px;height:24px;min-width:24px;padding:3px;background:#161616}.support-product-entry{font:inherit;font-size:14px;color:#dfbea0;border:1px solid #534237;border-radius:12px;background:#211b18;min-height:44px;width:100%;padding:10px 16px;margin:20px 0;cursor:pointer}.legion-root .support-question{margin-top:12px;font-size:13px}.legion-root [data-orders]>.legion-filter{overflow-x:auto;gap:4px}.legion-root [data-orders]>.legion-filter button{min-width:max-content;padding:10px;font-size:13px}
/* Shared admin inbox styles stay inside the support section. */
.zj-support{display:grid;grid-template-columns:minmax(220px,1fr) minmax(0,2fr);gap:24px}.zj-support button,.zj-support select{cursor:pointer}.zj-support .support-thread{display:block;width:100%;text-align:left;padding:14px;margin:8px 0;border:1px solid #ddd;border-radius:10px;background:#fff}.zj-support .support-thread strong,.zj-support .support-thread small{display:block}.zj-support .support-thread.active{border-color:#ad261b;background:#fff5f2}.zj-support .support-history{display:flex;flex-direction:column;gap:12px;max-height:55vh;overflow-y:auto;padding:12px 0}.zj-support .support-message{box-sizing:border-box;width:fit-content;max-width:min(82%,680px);padding:12px 15px;white-space:pre-wrap;overflow-wrap:anywhere;border:1px solid transparent;border-radius:16px}.zj-support .support-message.from-customer{align-self:flex-start;background:#f1f1f1;border-color:#e6e6e6;border-top-left-radius:4px}.zj-support .support-message.from-staff{align-self:flex-end;background:#dcf8c6;border-color:#cbe9b4;border-top-right-radius:4px}.zj-support .support-message.internal{align-self:center;width:min(94%,720px);max-width:94%;background:#fff2cc;border-color:#f0dfad;border-radius:12px}.zj-support .support-message img{max-width:160px;max-height:160px;object-fit:contain;display:block}.zj-support .support-message time{font-size:12px;color:#777;display:block;text-align:right;margin-top:8px}.zj-support textarea{width:100%;min-height:100px;box-sizing:border-box;border:1px solid #aaa;border-radius:10px;padding:12px;margin:12px 0;font:inherit}.zj-support .support-context{font-size:13px;background:#f5f3f0;padding:14px;border-radius:12px;white-space:pre-wrap;overflow-wrap:anywhere}.zj-support .support-controls{display:flex;gap:8px;flex-wrap:wrap;margin:12px 0}.zj-support [role=status]{font-size:13px;color:#9d281d}.zj-support .support-list{max-height:75vh;overflow-y:auto}.zj-support select{max-width:100%;padding:8px}.zj-support .support-attachments img{width:64px;height:64px;object-fit:cover}.zj-support .support-message strong{display:block;margin-bottom:8px}.zj-support .support-message.internal strong{color:#755515}@media(max-width:700px){.zj-support{grid-template-columns:1fr}.zj-support .support-list{max-height:30vh}.zj-support .support-message{max-width:88%}.zj-support .support-message.internal{width:96%;max-width:96%}.legion-root .support-composer{padding:12px}.legion-root .support-toolbar{gap:8px}.legion-root .support-composer small{font-size:10px}}

/* Compact staff filters: one clear row, no stretched select or wrapped label. */
#support .support-filter-bar{display:flex;align-items:center;justify-content:space-between;gap:16px;margin:20px 0 16px}
#support .support-filter-tabs{display:flex;align-items:center;gap:4px;padding:4px;border:1px solid #dedbd7;background:#eceae7;border-radius:12px;min-width:0;overflow-x:auto}
#support .support-filter-tabs button{display:inline-flex;align-items:center;justify-content:center;flex:0 0 auto;width:auto;min-height:36px;padding:8px 18px;border:0;border-radius:8px;background:transparent;color:#66615c;white-space:nowrap;font:inherit;font-size:13px;font-weight:600;cursor:pointer}
#support .support-filter-tabs button[aria-pressed=true]{background:#fff;color:#92251b;box-shadow:0 1px 4px #00000012}
#support .support-filter-tabs button:hover{color:#92251b;background:#ffffff80}
#support .support-refresh{display:inline-flex;align-items:center;justify-content:center;flex:0 0 44px;width:44px;height:44px;padding:11px;border:1px solid #d7d2cc;border-radius:10px;background:#fff;color:#5a5149;cursor:pointer}
#support .support-refresh svg{display:block;width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
#support .support-refresh:hover{background:#f6efea;border-color:#b99c83}
#support .support-refresh:disabled{opacity:.55;cursor:wait}
#support .support-refresh[aria-busy=true] svg{animation:support-refresh-spin 1s linear infinite}
#support .support-filter-tabs button:focus-visible,#support .support-refresh:focus-visible{outline:2px solid #b44332;outline-offset:2px}
#support [data-support-status]:empty{display:none}
@keyframes support-refresh-spin{to{transform:rotate(360deg)}}
@media(prefers-reduced-motion:reduce){#support .support-refresh[aria-busy=true] svg{animation:none}}
@media(max-width:600px){#support .support-filter-bar{gap:8px}#support .support-filter-tabs button{padding:8px 12px;font-size:12px}}

#support .support-search{display:flex;gap:10px;align-items:center;margin:0 0 18px;max-width:760px}
#support .support-search input{min-width:0;flex:1;margin:0;height:42px}
#support .support-search button{flex:0 0 auto;height:42px;white-space:nowrap}
#support .support-thread{color:#302c29;overflow-wrap:anywhere}
#support .support-thread strong{font-size:14px;line-height:1.5}
#support .support-thread-subject{display:block;font-size:12px;margin:5px 0;color:#716b65}
#support .support-thread small{font-size:11px;line-height:1.7;color:#77716b}
#support .support-customer-name{display:block;font-size:16px;margin:6px 0}
#support .support-controls{align-items:center}
#support .support-controls select{width:auto;min-width:130px;flex:1;max-width:220px;margin:0;height:40px}
#support .support-controls button{white-space:nowrap;min-height:40px}

/* Staff workspace: conversation and customer record share one workspace. */
#support .zj-support{grid-template-columns:minmax(200px,280px) minmax(0,1fr);gap:18px;align-items:start}
#support [data-support-detail]{padding:0;overflow:hidden;min-width:0}
#support .support-detail-grid{display:grid;grid-template-columns:minmax(340px,1fr) minmax(250px,320px)}
#support .support-chat-column{padding:22px;min-width:0}
#support .support-chat-column h2{font-size:18px;margin:0 0 18px}
#support .support-customer-panel{min-width:0;border-left:1px solid #e5e1dc;background:#faf9f7;padding:18px}
#support .support-context{background:#fff;border:1px solid #e5e1dc;font-size:12px;line-height:1.6}
#support .support-country{display:block;font-size:12px;margin:10px 0;color:#5b5148}
#support .support-orders{margin-top:22px}
#support .support-orders-heading{display:flex;justify-content:space-between;align-items:center;gap:8px;margin-bottom:10px}
#support .support-orders-heading h3{font-size:15px;margin:0}
#support .support-order-refresh{padding:5px 10px;font-size:20px;line-height:1}
#support .support-order{background:#fff;border:1px solid #e2ded9;border-radius:10px;margin:10px 0;overflow:hidden}
#support .support-order summary{cursor:pointer;padding:12px;list-style:none}
#support .support-order summary:focus-visible{outline:2px solid #a54730;outline-offset:-3px}
#support .support-order-title{display:flex;justify-content:space-between;gap:8px;font-size:13px;margin-bottom:6px}
#support .support-order summary small{font-size:11px;color:#777}
#support .support-order[open] summary{background:#f3ede7;border-bottom:1px solid #e2ded9}
#support .support-order-content{padding:12px;font-size:12px;overflow-wrap:anywhere}
#support .support-order-item{display:flex;gap:8px;margin:8px 0 14px}
#support .support-order-item img{width:42px;height:42px;object-fit:cover;border-radius:6px;flex:none}
#support .support-order-item strong,#support .support-order-item small{display:block;margin-bottom:4px;line-height:1.4}
#support .support-order-item small{font-size:11px;color:#6b635d}
#support .support-muted{font-size:12px;color:#80776f}
#support .support-address{white-space:pre-wrap;line-height:1.6}
#support .support-shipment{border-top:1px solid #eee;padding-top:10px;margin-top:10px}
@media(max-width:1150px){#support .zj-support{grid-template-columns:220px minmax(0,1fr)}#support .support-detail-grid{grid-template-columns:1fr}#support .support-customer-panel{border-left:0;border-top:1px solid #e5e1dc}}
@media(max-width:700px){#support .zj-support{grid-template-columns:1fr}#support .support-search{flex-wrap:wrap}#support .support-search input{flex-basis:100%}#support .support-chat-column{padding:16px}}

#support .support-thread .support-inbox-meta{display:flex;align-items:center;flex-wrap:wrap;gap:7px;margin-top:4px}
#support .support-inbox-label{padding:2px 6px;border-radius:5px;background:#ebe8f4;color:#51446d;font-size:10px;font-weight:650;line-height:1.5;white-space:nowrap}
#support .support-inbox-note{font-size:12px;color:#716b65;margin:10px 0}
#support .support-message.from-inbox-automation{align-self:center;background:#f5f3f8;border-color:#e7e2ef}
#support .support-message-link{color:#164c99;text-decoration:underline;overflow-wrap:anywhere}

#support .support-thread-heading{display:flex;align-items:center;gap:7px;min-width:0}
#support .support-thread-heading strong{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:13px}
#support .support-thread-time{flex:0 0 auto;font-size:10px;color:#777;font-variant-numeric:tabular-nums}
#support .support-thread-count{display:inline-flex;align-items:center;justify-content:center;background:var(--accent,#b30000);color:#fff;min-width:18px;height:18px;border-radius:10px;padding:0 4px;font-size:10px;line-height:1}
#support .support-thread-preview{display:block;margin:5px 0 4px;font-size:12px;color:#484746;white-space:nowrap;text-overflow:ellipsis;overflow:hidden}
#support .support-thread-meta{display:block;white-space:nowrap;text-overflow:ellipsis;overflow:hidden}

#support .support-reply-composer>textarea{margin:8px 0;min-height:68px;max-height:140px;resize:vertical;padding:10px 12px;font-size:13px;border-color:#d2ceca}
#support .support-reply-composer>label{display:flex;gap:6px;align-items:center;font-size:11px;line-height:1.5;margin:5px 0}
#support .support-reply-composer>label input[type=checkbox]{flex:none;width:15px;height:15px;margin:0;accent-color:var(--accent,#b30000)}
#support .support-reply-composer>input[type=file]{margin:6px 0;padding:6px;font-size:11px;border:0;background:#f5f4f2}
#support .support-reply-tools>.support-controls{margin:0;gap:6px}
#support .support-reply-tools select{font-size:12px;height:32px;padding:5px 8px;min-width:140px}
#support .support-reply-tools button{min-height:32px;padding:5px 10px;font-size:12px}
#support .support-reply-tools details{font-size:11px;margin:5px 0}
#support .support-reply-tools details[open]{padding:8px;background:#f5f4f2;border-radius:7px}
#support .support-shortcut-hint{display:block;font-size:10px;color:#888}
#support .support-reply-feedback{margin:6px 0 0;font-size:12px;line-height:1.5;min-height:0}
#support .support-reply-feedback:empty{display:none}
#support .support-reply-composer>button[type=submit]{float:right;min-height:34px;padding:7px 18px}
#support .support-compose-actions{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-top:7px}
#support .support-compose-actions button[type=submit]{min-height:34px;padding:7px 18px}
#support .support-attach-button{display:flex;align-items:center;justify-content:center;min-height:32px;width:34px;font-size:22px;padding:3px}
#support .support-attachments{display:flex;flex-wrap:wrap;gap:7px}
#support .support-attachment-preview{position:relative;display:inline-flex}
#support .support-attachment-preview img{width:54px;height:54px;border-radius:6px;object-fit:cover}
#support .support-attachment-remove{position:absolute;right:-4px;top:-4px;display:flex;align-items:center;justify-content:center;min-height:22px;width:22px;border:1px solid #ccc;border-radius:50%;background:#fff;color:#333;font-size:17px;padding:0}
#support .support-new-messages{flex:none;align-self:center;border-radius:20px;font-size:12px;padding:5px 12px;min-height:30px;background:#fff;box-shadow:0 2px 7px #00000012}

.support-cart-context{margin:18px 0;padding:14px;background:#fff;border:1px solid #ddd9d5;border-radius:12px;min-width:0}
.support-cart-heading{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:10px}
.support-cart-heading h3{font-size:15px;line-height:1.4;margin:0}
.support-cart-heading button{flex:0 0 34px;width:34px;min-height:34px;padding:4px;font-size:19px;line-height:1}
.support-cart-lines{max-height:320px;overflow-y:auto;overscroll-behavior:contain}
.support-cart-line{display:flex;align-items:flex-start;gap:10px;padding:10px 0;border-bottom:1px solid #eee}
.support-cart-line:last-child{border-bottom:0}
.support-cart-line img{flex:0 0 48px;width:48px;height:48px;object-fit:contain;border-radius:6px;background:#fafafa}
.support-cart-copy{display:flex;flex-direction:column;gap:4px;min-width:0;overflow-wrap:anywhere}
.support-cart-copy strong{font-size:13px;line-height:1.4}
.support-cart-copy small,.support-cart-stamp{font-size:12px;line-height:1.5;color:#666}
.support-cart-total{display:block;padding:10px 0;font-size:13px}
.support-cart-stamp{display:block;margin-top:8px}

/* Keep staff metadata outside the bubble and keep the conversation independently scrollable. */
#support [data-support-detail] {position:relative}
#support .support-chat-column {display:flex;flex-direction:column;min-width:0}
#support .support-history {gap:8px;padding:6px 6px 9px;overscroll-behavior:contain;overflow-anchor:none}
#support .support-conversation-heading {display:flex;align-items:center;gap:10px;flex:none}
#support .support-conversation-heading h2 {flex:1;min-width:0;margin:0;overflow-wrap:anywhere}
#support .support-message {
  display:flex;flex-direction:column;align-items:flex-start;gap:2px;
  min-width:0;padding:0;border:0;background:transparent;
}
#support .support-message.from-staff {align-items:flex-end}
#support .support-message.internal {align-items:center;width:fit-content;max-width:88%}
#support .support-message-bubble {
  min-width:0;max-width:100%;padding:6px 9px;line-height:1.45;
  border:1px solid transparent;border-radius:12px;
}
#support .from-customer .support-message-bubble {background:#f1f1f1;border-color:#e6e6e6;border-top-left-radius:4px}
#support .from-staff .support-message-bubble {background:#dcf8c6;border-color:#cbe9b4;border-top-right-radius:4px}
#support .internal .support-message-bubble {background:#fff2cc;border-color:#f0dfad}
#support .support-message.from-inbox-automation {background:transparent}
#support .from-inbox-automation .support-message-bubble {background:#f5f3f8;border-color:#e7e2ef}
#support .support-message-meta {display:flex;align-items:baseline;gap:7px;max-width:100%;padding:0 3px}
#support .support-message-meta :is(.support-message-name,.support-message-time) {
  margin:0;font-size:11px;line-height:1.35;color:var(--club-muted,#5f6962);
}
#support .support-message-meta .support-message-name {min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
#support .support-message-meta .support-message-time {flex:none;white-space:nowrap;font-size:10px;font-variant-numeric:tabular-nums}
#support .support-message-bubble img {max-width:min(220px,100%);max-height:200px;border-radius:7px}
#support .support-message-bubble > * + img {margin-top:6px}
#support .support-reply-composer {flex:none;position:relative;padding-top:7px}
#support .support-reply-composer > textarea {display:block;margin:0;min-height:62px;padding:8px 10px}
#support .support-compose-actions {justify-content:flex-start;flex-wrap:wrap;gap:4px 10px;margin-top:6px}
#support .support-compose-actions > label {
  display:flex;align-items:center;gap:5px;min-height:32px;font-size:12px;white-space:nowrap;cursor:pointer;
}
#support .support-compose-actions > label input {flex:none;width:14px;height:14px;margin:0}
#support .support-compose-actions button[type="submit"] {
  margin-inline-start:auto;min-height:32px;padding:5px 11px;white-space:nowrap;
}
#support .support-attach-button svg {
  width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;
}
#support .support-quick-replies > summary {display:list-item;padding:6px 7px;font-size:12px;cursor:pointer;white-space:nowrap}
#support .support-quick-replies > summary:focus-visible {outline:2px solid var(--club-red,#a52227)}
#support .support-quick-replies > .support-reply-tools {
  position:absolute;z-index:2;inset:auto auto calc(100% + 6px) 0;width:min(360px,100%);
  max-height:min(260px,35dvh);overflow:auto;padding:10px;border:1px solid var(--club-line,#e4e7e3);
  border-radius:8px;background:#fff;box-shadow:0 4px 18px #2222;
}
#support .support-attachments:not(:empty) {max-height:108px;overflow:auto;margin-top:6px}
#support .support-inbox-readonly {
  flex:none;display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:8px;
  margin-top:8px;padding:12px 0 2px;border-top:1px solid #e8e5e2;font-size:12px;color:#716b65;
}
#support .support-inbox-readonly p {margin:0}
#support .support-inbox-readonly a {white-space:nowrap}
#support .support-previous-inbox {display:flex;flex-direction:column;gap:12px}
#support .support-customer-inbox-link {display:inline-block;margin-top:4px;font-size:12px}
#support .support-customer-panel {overflow-y:auto;overscroll-behavior:contain}
#support .support-back,#support .support-customer-toggle,#support .support-customer-close {display:none}

@media (min-width:1000px) {
  #support .support-detail-grid {height:100%;grid-template-rows:minmax(0,1fr)}
  #support .support-chat-column {min-height:0;overflow:auto}
  #support .support-history {flex:1;min-height:60px;max-height:none}
  #support .support-customer-panel {height:100%}
}
@media (max-width:999px) {
  #support .support-customer-panel {display:none}
  #support .support-customer-toggle,#support .support-customer-close {
    display:inline-flex;align-items:center;justify-content:center;
    min-height:32px;padding:6px 9px;font-size:12px;
  }
  #support .support-show-customer .support-customer-panel {
    display:block;position:absolute;top:0;right:0;bottom:0;z-index:3;
    width:min(330px,95%);border-left:1px solid #ddd;box-shadow:-8px 0 22px #00000012;
  }
}
@media (max-width:700px) {
  #support [data-support-detail] {display:none}
  #support.support-has-thread .support-list-column {display:none}
  #support.support-has-thread [data-support-detail] {display:block}
  #support .support-back {
    display:inline-flex;align-items:center;justify-content:center;
    width:32px;min-height:32px;padding:4px;font-size:23px;
  }
}

/* Shared tools for the Shopify view and the standalone support tab. */
body[data-club-page="support"] #support .support-thread-row {
  display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;min-width:0;
  margin:0 0 4px;border:1px solid transparent;border-radius:8px;
}
body[data-club-page="support"] #support .support-thread-row:is(:hover,.active) {
  background:var(--club-selected,#faeae8);border-color:#efd5d0;
}
body[data-club-page="support"] #support .support-thread-row .support-thread {
  min-width:0;margin:0;border:0;background:transparent;
}
#support .support-state-toggle {
  display:grid;place-items:center;width:30px;min-height:32px;padding:4px;margin-inline-end:4px;
  border:0;border-radius:6px;background:transparent;color:var(--club-muted,#5f6962);
}
#support .support-state-toggle[aria-pressed="true"] {color:#28734f}
#support .support-state-toggle:disabled {opacity:.48;cursor:default}
#support .support-state-toggle:not(:disabled):hover {background:#fff}
#support :is(.support-state-toggle,.support-quick-trigger) svg {
  width:17px;height:17px;fill:none;stroke:currentColor;stroke-width:1.7;
  stroke-linecap:round;stroke-linejoin:round;
}
#support .support-workspace-actions {display:flex;align-items:center;gap:6px;flex-wrap:wrap}
#support .support-workspace-actions .secondary {min-height:32px;padding:5px 8px;white-space:nowrap;font-size:12px}
#support .support-conversation-heading {
  min-height:34px;padding-bottom:9px;border-bottom:1px solid var(--club-line,#e4e7e3);
}
#support .support-action-notice {
  position:fixed;top:calc(var(--club-top,42px) + 8px);right:12px;z-index:15;
  max-width:min(420px,calc(100vw - 24px));margin:0;padding:8px 11px;
  border:1px solid var(--club-line,#e4e7e3);border-radius:8px;background:#fff;box-shadow:0 3px 14px #2222;
}
#support .support-authorized-link {
  display:inline-flex;align-items:center;margin-inline-start:6px;text-decoration:none;
}
#support .support-quick-replies > .support-quick-trigger {
  display:grid;place-items:center;width:34px;min-height:34px;padding:4px;list-style:none;
}
#support .support-quick-trigger::-webkit-details-marker {display:none}
#support .support-reply-picker-heading,.support-settings-heading {
  display:flex;align-items:center;justify-content:space-between;gap:10px;
}
#support .support-reply-picker-heading .secondary,.support-settings-heading .secondary {
  min-height:30px;padding:3px 8px;font-size:17px;
}
#support .support-reply-options {display:grid;gap:3px;margin:6px 0 8px}
#support .support-reply-choice {
  display:grid;gap:3px;text-align:left;padding:7px 8px;min-width:0;
  border:1px solid transparent;border-radius:6px;background:none;color:inherit;
}
#support .support-reply-choice:hover {background:var(--club-selected,#faeae8)}
#support .support-reply-choice small {color:var(--club-muted,#5f6962);white-space:pre-wrap;overflow-wrap:anywhere}
.support-settings-dialog {
  width:min(480px,calc(100vw - 28px));max-height:calc(100dvh - 28px);
  overflow:auto;padding:16px;border:1px solid var(--club-line,#e4e7e3);
  border-radius:11px;background:#fff;color:var(--club-ink,#222624);
}
.support-settings-dialog::backdrop {background:#2228}
.support-settings-heading {margin-bottom:11px}
.support-settings-heading h2 {margin:0}
.support-settings-actions {display:flex;align-items:end;flex-wrap:wrap;gap:7px}
.support-settings-actions label {flex:1 1 185px}
.support-settings-feedback {margin:5px 0;color:var(--club-muted,#5f6962);font-size:12px}
.support-settings-feedback:empty {display:none}
.support-reply-manager {border-top:1px solid var(--club-line,#e4e7e3);padding-top:9px}
.support-reply-manager > summary {cursor:pointer;font-weight:650}
.support-reply-manager .support-settings-actions {margin-top:8px}
body[data-support-standalone] {--club-top:42px}
.support-standalone-label {color:var(--club-muted,#5f6962);font-size:12px}
.support-admin-return {
  margin-inline-start:auto;min-height:30px;padding:5px 8px;text-decoration:none;
}
@media (max-width:700px) {
  #support .support-conversation-heading {flex-wrap:wrap}
  #support .support-workspace-actions {margin-inline-start:auto}
}

/* Staff conversation notes and local composer controls; current migrated base retained. */
#support .support-thread-note{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden;white-space:pre-line;overflow-wrap:anywhere;margin-top:5px;font-size:11px;line-height:1.45;color:#725e39;background:#fff8e8;padding:4px 6px;border-radius:4px}
#support .support-conversation-note{margin:14px 0;padding-top:12px;border-top:1px solid var(--club-line,#e4e7e3)}
#support .support-note-form>label{display:block;font-size:12px;font-weight:600}
#support .support-note-form textarea{display:block;box-sizing:border-box;width:100%;margin:7px 0;min-height:76px;max-height:160px;resize:vertical;padding:8px;border:1px solid #d2ceca;border-radius:6px;font:inherit;font-weight:400;font-size:12px;line-height:1.5}
#support .support-note-form textarea:read-only{background:#f5f5f3;color:#777}
#support .support-note-actions{display:flex;align-items:center;justify-content:space-between;gap:8px}
#support .support-note-actions button{min-height:28px;padding:4px 9px;font-size:11px}
#support .support-note-count{font-size:10px;color:#777}
#support .support-note-feedback,#support .support-note-latest{font-size:11px;line-height:1.45;white-space:pre-wrap;overflow-wrap:anywhere;margin:6px 0}
#support .support-note-feedback:empty{display:none}
#support .support-reply-composer>textarea{min-height:46px;max-height:112px;padding:7px 9px;font-size:13px;line-height:1.5}
#support .support-compose-actions{gap:4px 8px;margin-top:4px;align-items:center}
#support .support-compose-actions>label{min-height:28px;font-size:11px}
#support .support-compose-actions button[type=submit]{min-height:30px;padding:4px 12px}
#support .support-compose-shortcuts{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-top:3px}
#support .support-keyboard-hint{font-size:10px;line-height:1.5;color:var(--club-muted,#68746a)}
#support .support-shortcut-settings{position:relative;font-size:10px;color:var(--club-muted,#68746a)}
#support .support-shortcut-settings>summary{cursor:pointer;white-space:nowrap}
#support .support-shortcut-settings>label{position:absolute;z-index:3;right:0;bottom:calc(100% + 5px);display:grid;gap:6px;width:210px;padding:10px;background:white;border:1px solid var(--club-line,#e4e7e3);border-radius:7px;box-shadow:0 5px 18px #2222}
#support .support-shortcut-settings:not([open])>label{display:none}
#support .support-shortcut-settings select{font:inherit;font-size:12px;min-height:30px;width:100%;padding:4px}
#support .support-reply-feedback:empty{display:none}
#support .support-reply-feedback{margin:5px 0 0;font-size:11px;line-height:1.4}
#support .support-quick-replies>.support-reply-tools{width:min(380px,calc(100vw - 40px));padding:8px;max-height:min(320px,45dvh)}
#support .support-reply-tools input[type=search]{width:100%;font-size:12px;min-height:32px;margin:6px 0;padding:6px 8px}
#support .support-reply-options{max-height:200px;overflow:auto;display:grid;gap:3px}
#support .support-reply-choice{display:block;width:100%;min-height:0;text-align:left;white-space:normal;padding:8px;border:1px solid transparent;border-radius:5px;background:#fff}
#support .support-reply-choice:is(:hover,[aria-selected=true]){background:var(--club-selected,#f5f7f3);border-color:#d9e4d9}
#support .support-reply-choice>strong{display:block;font-size:12px;margin-bottom:3px}
#support .support-reply-choice>small{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden;font-size:11px;line-height:1.45;color:#777}

/* User-triggered staff card picker and immutable public card snapshots. */
#support .support-card-tool{display:inline-flex;align-items:center;justify-content:center;min-height:30px;width:30px;padding:5px}
#support .support-card-tool[hidden]{display:none}
#support .support-card-tool svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}
#support .support-card-dialog{width:min(640px,calc(100vw - 24px));height:min(680px,calc(100dvh - 40px));max-width:none;max-height:none;padding:0;border:1px solid #d9ddd8;border-radius:12px;background:white;color:#202723;box-shadow:0 12px 60px #0003;overflow:hidden}
#support .support-card-dialog[open]{display:flex;flex-direction:column}
#support .support-card-dialog::backdrop{background:#17221c66}
#support .support-card-dialog-head{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:14px 16px;border-bottom:1px solid #e5e8e3;flex:none}
#support .support-card-dialog-head h2{font-size:16px;margin:0}
#support .support-card-close{min-height:30px;width:30px;padding:3px;font-size:20px}
#support .support-card-search{display:flex;gap:8px;padding:12px 16px;flex:none}
#support .support-card-search input{flex:1;min-width:0;min-height:36px;padding:7px 10px;border:1px solid #cdd5ca;border-radius:6px;font:inherit}
#support .support-card-search button{min-height:36px;padding:6px 14px}
#support .support-card-results{flex:1;min-height:0;overflow:auto;padding:0 16px 14px;display:flex;flex-direction:column;gap:8px}
#support .support-card-choice{display:block;width:100%;padding:0;text-align:left;background:white;border:1px solid #e1e6de;border-radius:8px;flex:none}
#support .support-card-choice:hover{border-color:#b8c8b1;background:#f8faf6}
#support .support-card-choice:disabled{opacity:.6;cursor:wait}
#support .support-card-dialog-footer{display:flex;align-items:center;gap:8px;flex-wrap:wrap;padding:10px 16px;border-top:1px solid #e5e8e3;flex:none}
#support .support-card-status{flex:1;min-width:140px;margin:0;font-size:12px;line-height:1.5}
#support .support-shared-card{max-width:330px;overflow:hidden;border:1px solid #dce4d6;border-radius:8px;background:#fff;color:#202723;white-space:normal}
#support .support-card-choice .support-shared-card{max-width:none;border:0}
#support .support-product-content{display:flex;gap:12px;align-items:center;padding:10px;color:inherit;text-decoration:none}
#support .support-product-image{display:block;flex:none;width:76px;height:76px;object-fit:contain;border-radius:5px;background:#f5f6f2}
#support .support-message-bubble .support-product-image{max-width:76px;max-height:76px;margin:0}
#support .support-product-text{display:grid;gap:7px;min-width:0;font-size:13px;overflow-wrap:anywhere}
#support .support-product-price{font-size:12px;color:#52634b}
#support .support-discount-card{padding:12px;display:grid;gap:7px}
#support .support-discount-card code{display:block;letter-spacing:.7px;font-weight:700;font-size:16px;overflow-wrap:anywhere}
#support .support-discount-card p{margin:0;font-size:12px;line-height:1.5}

/* View an already authorized message image without downloading or fetching it again. */
#support .support-message-bubble img[data-support-image-ready]{cursor:zoom-in}
#support .support-message-bubble img[data-support-image-ready]:focus-visible{outline:2px solid #67885a;outline-offset:3px}
#support .support-image-viewer{width:min(960px,calc(100vw - 24px));height:min(760px,calc(100dvh - 24px));max-width:none;max-height:none;padding:0;border:1px solid #d9ddd8;border-radius:10px;background:#f7f8f5;color:#202723;overflow:hidden}
#support .support-image-viewer[open]{display:flex;flex-direction:column}
#support .support-image-viewer::backdrop{background:#101a14aa}
#support .support-image-viewer-head{display:flex;align-items:center;gap:12px;padding:10px 14px;border-bottom:1px solid #dde3d8;background:#fff;flex:none;flex-wrap:wrap}
#support .support-image-tools{display:flex;gap:6px;margin-left:auto}
#support .support-image-tools button,#support .support-image-close{min-height:32px;padding:5px 10px;font-size:12px}
#support .support-image-tools [aria-pressed=true]{border-color:#67885a;background:#edf3e7}
#support .support-image-viewport{flex:1;min-height:0;min-width:0;overflow:auto;padding:12px;display:flex}
#support .support-image-full{display:block;flex:none;max-width:100%;max-height:100%;width:auto;height:auto;object-fit:contain;margin:auto}
#support .support-image-viewer[data-scale=actual] .support-image-viewport{display:block}
#support .support-image-viewer[data-scale=actual] .support-image-full{max-width:none;max-height:none;width:revert;height:revert;margin:0}

/* Composer tools share one footprint; mail keeps its native keyboard checkbox semantics. */
#support .support-compose-actions .support-attach-button,
#support .support-compose-actions .support-quick-trigger,
#support .support-compose-actions .support-card-tool,
#support .support-compose-actions>.support-email-option{box-sizing:border-box;display:inline-flex;flex:0 0 32px;width:32px;height:32px;min-width:32px;min-height:32px;align-items:center;justify-content:center;margin:0;padding:6px;line-height:1;border-radius:6px;vertical-align:middle}
#support .support-compose-actions .support-attach-button[hidden],
#support .support-compose-actions .support-card-tool[hidden]{display:none}
#support .support-compose-actions .support-attach-button svg,
#support .support-compose-actions .support-quick-trigger svg,
#support .support-compose-actions .support-card-tool svg,
#support .support-compose-actions .support-email-icon svg{width:18px;height:18px;flex:none}
#support .support-compose-actions>.support-email-option{position:relative;padding:0;border:0;cursor:pointer}
#support .support-compose-actions .support-email-option>.support-email-copy{position:absolute;width:1px;height:1px;padding:0;margin:0;border:0;overflow:hidden;white-space:nowrap;clip:rect(0 0 0 0);clip-path:inset(50%)}
#support .support-email-icon{box-sizing:border-box;display:flex;align-items:center;justify-content:center;width:32px;height:32px;border:1px solid #d9ded5;border-radius:6px;color:#737a73;background:#fff}
#support .support-email-copy:checked+.support-email-icon{color:#315b22;background:#e5efdc;border-color:#7b9d68}
#support .support-email-copy:focus-visible+.support-email-icon{outline:2px solid #67885a;outline-offset:2px}
#support .support-email-copy:disabled+.support-email-icon{color:#8f958e;background:#f7f8f6;border-color:#e0e3dd;opacity:.45;cursor:not-allowed}
