body.authenticated .workspace:has(> #content > .support-workspace) { display:flex; flex-direction:column; height:100dvh; min-height:0; padding-bottom:16px; }
.workspace:has(> #content > .support-workspace) > .topbar { flex:none; }
#content:has(> .support-workspace) { flex:1; min-height:0; }
.support-workspace { display:grid; grid-template-columns:290px minmax(0,1fr); height:100%; min-height:0; background:#fff; border:1px solid #dce3eb; border-radius:6px; overflow:hidden; font-size:14px; color:#263444; }
.support-workspace *, .support-chat *, .support-cashier-dialog * { box-sizing:border-box; letter-spacing:0; }
.support-inbox { display:flex; flex-direction:column; min-height:0; border-right:1px solid #dce3eb; background:#fafbfd; }
.support-inbox-filter { display:grid; grid-template-columns:1fr; gap:8px; padding:12px; border-bottom:1px solid #e4e9ef; }
.support-inbox-filter input, .support-inbox-filter select { min-width:0; width:100%; height:34px; padding:6px 9px; border:1px solid #cbd5e1; border-radius:6px; background:#fff; color:#263444; font:inherit; font-size:13px; }
.support-inbox-list { flex:1; min-height:0; overflow:auto; }
.support-inbox-row { position:relative; }
.support-inbox-row.can-delete .support-inbox-status { padding-right:76px; }
.support-inbox-row > .support-inbox-delete { position:absolute; right:10px; bottom:9px; min-height:26px; padding:3px 7px; border:1px solid #e2bfc5; border-radius:4px; background:#fff; color:#b12a38; font:inherit; font-size:11px; line-height:18px; cursor:pointer; }
.support-inbox-row > .support-inbox-delete:hover { background:#fff3f3; border-color:#ce8e99; }
.support-inbox-list .support-inbox-item { position:relative; display:block; width:100%; padding:12px 14px; border:0; border-bottom:1px solid #e5eaf0; border-radius:0; background:transparent; text-align:left; color:inherit; cursor:pointer; line-height:1.5; }
.support-inbox-item:hover { background:#edf2f8; }
.support-inbox-list .support-inbox-item.active { background:#eaf1ff; box-shadow:inset 3px 0 #2464e8; }
.support-inbox-item strong { display:block; padding-right:35px; font-size:14px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.support-inbox-item small { display:block; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; color:#66768b; font-size:11px; }
.support-inbox-item p { margin:6px 0 2px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; font-size:13px; }
.support-unread { position:absolute; right:12px; top:12px; min-width:19px; padding:1px 5px; background:#c8364a; color:#fff; border-radius:6px; font-size:11px; text-align:center; }
.support-inbox-status { margin-top:4px; }
.support-inbox-pager { display:flex; align-items:center; gap:6px; padding:8px 10px; border-top:1px solid #dce3eb; }
.support-inbox-pager span { margin-right:auto; font-size:12px; color:#66768b; }
.support-inbox-pager button, .support-chat-head button, .support-dialog-bar button, .support-selected-file button { display:inline-flex; align-items:center; justify-content:center; width:30px; height:30px; padding:5px; flex:none; border:1px solid #cbd5e1; border-radius:6px; background:#fff; color:#4a5e74; cursor:pointer; }
.support-workspace svg, .support-chat svg, .support-cashier-dialog svg, .support-cashier-trigger svg { width:18px; height:18px; flex:none; }
.support-conversation-pane { display:flex; flex-direction:column; min-width:0; min-height:0; }
.support-chat-mount { flex:1; min-height:0; }
.support-placeholder { display:flex; flex-direction:column; align-items:center; justify-content:center; gap:12px; height:100%; min-height:120px; margin:0; padding:20px; color:#78879a; font-size:13px; }
.support-placeholder svg { width:32px; height:32px; }
body.ui-bs .support-workspace .support-mobile-back { display:none; }
.support-mobile-back svg, [data-support-prev] svg { transform:rotate(180deg); }
.support-chat { display:flex; flex-direction:column; min-height:0; min-width:0; height:100%; background:#fff; color:#263444; font-family:inherit; font-size:14px; }
.support-chat-head { display:grid; grid-template-columns:minmax(0,1fr) auto auto; align-items:center; gap:6px 10px; min-height:60px; padding:10px 16px; border-bottom:1px solid #e4e9ef; flex:none; }
.support-chat-head > div { min-width:0; flex:1; }
.support-chat-head strong { display:block; font-size:14px; }
.support-chat-head small { display:block; margin-top:3px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; font-size:11px; color:#758599; }
.support-chat-orders { grid-column:1 / -1; display:flex; flex-wrap:wrap; gap:8px 28px; }
.support-presence { grid-column:1 / -1; display:flex; flex-wrap:wrap; gap:4px 14px; font-size:11px; line-height:18px; color:#7b8795; }
.support-presence > span { overflow-wrap:anywhere; min-width:0; }
.support-presence > span::before { content:''; display:inline-block; width:6px; height:6px; margin-right:5px; border-radius:50%; background:#a0a9b4; vertical-align:middle; }
.support-presence > .is-online { color:#227c63; }
.support-presence > .is-online::before { background:#1c9b70; }
.support-quick-picker { position:relative; flex:none; }
.support-quick-picker > summary { display:flex; align-items:center; justify-content:center; width:30px; height:30px; color:#526b87; list-style:none; cursor:pointer; }
.support-quick-picker > summary::-webkit-details-marker { display:none; }
.support-quick-menu { position:absolute; bottom:38px; left:0; width:min(280px,calc(100vw - 64px)); padding:8px; background:#fff; border:1px solid #dce3eb; border-radius:6px; box-shadow:0 4px 16px #2634441a; z-index:4; }
.support-quick-menu input { width:100%; min-width:0; height:32px; border:1px solid #cbd5e1; padding:5px 8px; border-radius:4px; font:inherit; }
.support-quick-menu [data-quick-options] { max-height:180px; overflow:auto; margin-top:6px; }
.support-quick-menu button { display:block; width:100%; border:0; border-radius:4px; padding:8px; text-align:left; background:transparent; color:#263444; font:inherit; overflow-wrap:anywhere; }
.support-quick-menu button:hover { background:#edf3fc; }
.support-quick-menu small { display:block; margin:4px; }
.support-message-meta { flex-wrap:wrap; }
.support-auto-form { display:grid; gap:12px; max-width:720px; }
.support-auto-switches { display:flex; flex-wrap:wrap; gap:12px 24px; }
.support-auto-switches label { display:flex; align-items:center; gap:8px; font-size:13px; }
.support-auto-switches input { width:16px; height:16px; }
.support-auto-save { display:flex; align-items:center; justify-content:flex-end; gap:12px; }
@media(max-width:700px){ .support-quick-menu input { font-size:16px; } .support-quick-picker + .support-attach span { display:none; } }
.support-order-reference { display:grid; grid-template-columns:minmax(0,1fr) 28px; width:max-content; max-width:100%; min-width:0; gap:2px 6px; align-items:center; font-size:12px; color:#66768b; }
.support-order-reference > span:first-child { grid-column:1 / -1; white-space:nowrap; font-size:11px; }
.support-order-value { display:block; min-width:0; overflow-x:auto; overflow-y:hidden; white-space:nowrap; line-height:24px; font-variant-numeric:tabular-nums; scrollbar-width:none; color:#263444; }
.support-order-value::-webkit-scrollbar { display:none; }
.support-chat-head .support-order-reference [data-chat-copy] { width:28px; height:28px; min-height:28px; padding:5px; border-color:transparent; background:transparent; }
.support-chat-head .support-order-reference .support-order-link { display:block; width:auto; height:auto; min-height:24px; padding:0; border:0; border-radius:0; background:transparent; font:inherit; line-height:24px; text-align:left; color:#1764d5; text-decoration:underline; text-underline-offset:3px; }
.support-order-link:hover { color:#1045a0; }
.support-order-reference button:disabled { opacity:.4; cursor:default; }
.support-state { flex:none; padding:2px 6px; font-size:11px; color:#187764; background:#e8f6f1; border-radius:4px; }
.support-chat-messages { flex:1; min-height:0; overflow:auto; overscroll-behavior:contain; padding:16px; background:#f6f8fb; }
.support-message { display:flex; flex-direction:column; align-items:flex-start; margin:0 0 16px; }
.support-message.is-own { align-items:flex-end; }
.support-message-meta { display:flex; align-items:center; gap:8px; margin-bottom:5px; font-size:11px; color:#8290a2; }
.support-sender { display:inline-block; font-size:11px; font-weight:600; border-radius:4px; padding:2px 6px; background:#e7ebf0; color:#536274; }
.support-sender.sender-merchant { color:#2257b5; background:#e3edff; }
.support-sender.sender-platform { color:#107761; background:#dff4ed; }
.support-bubble { max-width:84%; padding:9px 12px; border:1px solid #e0e6ee; border-radius:6px; background:#fff; min-width:30px; line-height:1.6; overflow-wrap:anywhere; }
.support-message.is-own .support-bubble { background:#eaf1ff; border-color:#d7e3fc; }
.support-bubble p { margin:0; white-space:pre-wrap; font-size:14px; }
.support-bubble img, .support-bubble video { display:block; width:auto; max-width:100%; max-height:240px; border-radius:4px; object-fit:contain; }
.support-bubble video { width:300px; background:#141920; }
.support-bubble img + p, .support-bubble video + p { margin-top:6px; }
.support-chat-error, .support-list-error { padding:8px 12px; color:#b12a38; font-size:12px; background:#fff3f3; overflow-wrap:anywhere; }
.support-list-error:empty { display:none; }
.support-composer { flex:none; padding:10px 14px; border-top:1px solid #e0e6ee; background:#fff; margin:0; }
.support-composer textarea { display:block; width:100%; min-height:60px; max-height:130px; resize:vertical; padding:8px; border:1px solid #cbd5e1; border-radius:6px; background:#fff; color:#263444; font-family:inherit; font-size:14px; line-height:1.5; }
.support-compose-tools { display:flex; align-items:center; gap:8px; margin-top:8px; }
.support-compose-tools small { margin-left:auto; font-size:11px; color:#8290a2; }
.support-attach { display:inline-flex; position:relative; align-items:center; gap:5px; min-height:30px; color:#526b87; font-size:12px; cursor:pointer; }
.support-attach input { position:absolute; width:100%; height:100%; inset:0; opacity:0; cursor:pointer; }
.support-attach:focus-within { outline:2px solid #2464e8; outline-offset:2px; border-radius:4px; }
.support-chat button.support-send { display:inline-flex; align-items:center; justify-content:center; gap:5px; min-width:76px; height:32px; padding:5px 10px; background:#2464e8; color:#fff; border:1px solid #2464e8; border-radius:6px; font-size:13px; cursor:pointer; }
.support-chat button.support-send:hover { background:#1853ce; }
.support-selected-file { display:flex; align-items:center; gap:8px; padding-top:8px; font-size:12px; color:#526b87; }
.support-selected-file span { min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.support-selected-file button { width:24px; height:24px; margin-left:auto; }
.support-older { display:block; margin:0 auto 14px; background:transparent; color:#336aca; border:0; font-size:12px; cursor:pointer; }
.support-chat button:disabled, .support-workspace button:disabled { opacity:.5; cursor:not-allowed; }
.support-chat :focus-visible, .support-workspace :focus-visible, .support-dialog-bar button:focus-visible { outline:2px solid #2464e8; outline-offset:2px; }
.support-chat [hidden], .support-workspace [hidden] { display:none!important; }
.support-cashier-trigger { position:fixed; right:20px; bottom:20px; display:flex; align-items:center; gap:7px; height:42px; padding:10px 14px; border:1px solid #d4dfec; border-radius:6px; background:#fff; box-shadow:0 3px 12px #26344418; color:#2258ba; font:inherit; font-size:13px; cursor:pointer; z-index:20; }
dialog.support-cashier-dialog { width:min(460px,calc(100vw - 24px)); height:min(680px,calc(100dvh - 40px)); max-width:none; max-height:calc(100dvh - 24px); padding:0; border:1px solid #d6e0ed; border-radius:6px; background:#fff; box-shadow:0 14px 55px #17253933; overflow:hidden; }
.support-cashier-dialog[open] { display:flex; flex-direction:column; }
.support-cashier-dialog::backdrop { background:#18263866; }
.support-dialog-bar { display:flex; align-items:center; justify-content:space-between; padding:10px 14px; border-bottom:1px solid #e0e6ee; font-size:14px; }
.support-cashier-mount { flex:1; min-height:0; overflow:hidden; }
.support-connection-notice { padding:24px; color:#46546c; line-height:1.7; }
.support-connection-notice p { margin:0 0 20px; overflow-wrap:anywhere; }
.support-connection-notice button { display:block; margin-left:auto; padding:6px 18px; border:1px solid #1769ed; border-radius:4px; color:#fff; background:#1769ed; cursor:pointer; }
body.support-modal-open { position:fixed; width:100%; overflow:hidden; }
body.ui-bs #supportOrderDialog { width:min(720px,calc(100vw - 24px)); max-height:calc(100dvh - 32px); }
#supportOrderDialog .merchant-order-fields { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:0 20px; margin:0; }
#supportOrderDialog .merchant-order-fields > div { min-width:0; padding:8px 0; border-bottom:1px solid #e4e9ef; }
#supportOrderDialog .merchant-order-fields > .is-wide { grid-column:1 / -1; }
#supportOrderDialog dt { margin-bottom:3px; font-size:12px; font-weight:400; color:#66768b; }
#supportOrderDialog dd { margin:0; font-size:13px; overflow-wrap:anywhere; }
#supportOrderDialog h3 { margin:0 0 8px; font-size:14px; }
#supportOrderDialog .copy-cell { max-width:100%; }
#supportOrderDialog .cell-code { min-width:0; white-space:normal; overflow-wrap:anywhere; }
.support-order-actions { margin-top:16px; }
@media(max-width:700px) {
  .support-workspace { display:flex; flex-direction:column; }
  .support-inbox { height:100%; border:0; }
  .support-conversation-pane { display:none; height:100%; }
  .support-workspace.has-conversation .support-inbox { display:none; }
  .support-workspace.has-conversation .support-conversation-pane { display:flex; }
  body.ui-bs .support-workspace .support-mobile-back { display:flex; align-items:center; gap:4px; flex:none; padding:7px 10px; border:0; border-bottom:1px solid #e5eaf0; border-radius:0; background:#fff; color:#3262a9; font-size:12px; text-align:left; }
  .support-chat-head { padding:8px 10px; min-height:52px; }
  .support-chat-messages { padding:12px 10px; }
  .support-composer { padding:8px 10px; }
  .support-bubble { max-width:94%; padding:8px 10px; }
  .support-bubble p { font-size:13px; }
  .support-bubble img, .support-bubble video { max-height:180px; }
  .support-cashier-trigger { right:12px; bottom:calc(12px + env(safe-area-inset-bottom)); }
  .support-compose-tools { gap:6px; }
  .support-composer textarea, .support-inbox-filter input, .support-inbox-filter select { font-size:16px; }
  .support-composer textarea { min-height:54px; max-height:90px; resize:none; }
  .support-cashier-dialog .support-dialog-bar { flex:none; padding:8px 10px; }
  .support-cashier-dialog.support-keyboard-open .support-chat-orders { display:none; }
  dialog.support-cashier-dialog { position:fixed; inset:auto; margin:0; top:var(--support-top,8px); left:var(--support-left,8px); width:var(--support-width,calc(100vw - 16px)); height:var(--support-height,calc(100dvh - 16px)); max-height:none; }
}
dialog.support-cashier-dialog.support-notice-dialog { inset:0; margin:auto; width:min(460px,calc(100vw - 24px)); height:fit-content; min-height:0; max-height:min(calc(100dvh - 24px),var(--support-height,100dvh)); }
.support-notice-dialog .support-dialog-bar { flex:none; }
.support-notice-dialog .support-cashier-mount { flex:0 1 auto; overflow:auto; }
.support-notice-dialog .support-connection-notice { padding:20px; font-size:14px; }
.support-notice-dialog .support-connection-notice p { margin-bottom:16px; }
.support-notice-dialog .support-connection-notice button { min-height:34px; font:inherit; line-height:20px; }
