.support-widget{position:fixed;z-index:95;right:clamp(12px,2vw,28px);bottom:24px;max-height:calc(100dvh - 48px)}
.support-menu{display:grid;gap:4px;padding:5px;background:#fff;border:1px solid #dceaf2;border-radius:17px;box-shadow:0 12px 36px #17436524}
.support-tool{position:relative}.support-tool > :is(button,a){width:60px;height:60px;display:grid;place-content:center;justify-items:center;gap:1px;padding:5px 3px;border:0;border-radius:11px;background:#f4f9fc;color:#18384c;font:600 11px/1.45 var(--font);text-align:center;white-space:nowrap;cursor:pointer}.support-tool .icon{width:18px;height:18px}
.support-tool > :is(button,a):hover{background:#e6f3fb}.support-tool .support-main,.support-content .support-main{color:var(--action-ink,#123a52);background:var(--action-fill,linear-gradient(110deg,#c6e8fa,#ccf2df))}.support-tool .support-main:hover,.support-content .support-main:hover{background:var(--action-hover,#c0e7f3)}
.support-preview{display:none;position:absolute;right:calc(100% + 8px);top:50%;transform:translateY(-50%);width:max-content;max-width:min(210px,65vw);padding:7px 11px;border:1px solid #dceaf2;border-radius:9px;background:#fff;color:#18384c;box-shadow:0 6px 20px #17436520;font-size:12px;pointer-events:auto}
.support-tool .support-preview::before{content:'';position:absolute;left:100%;width:9px;inset-block:0}
@media(hover:hover){.support-tool:hover .support-preview,.support-tool:focus-within .support-preview{display:block}}
.support-tool.is-open .support-preview,.support-tool:has(> :focus-visible) .support-preview{display:block}
.support-preview:has(.support-contact){top:auto;bottom:0;transform:none;padding:12px}
.support-contact{display:grid;gap:8px;text-align:center;min-width:152px}
.support-copy input{min-width:0;width:100%;font:inherit;border:1px solid #bcd4e3;padding:6px;border-radius:6px}
.support-copy button{flex:none;white-space:nowrap;padding:6px 10px;border:0;border-radius:6px;background:#eaf5fb;color:#18384c;cursor:pointer}
.support-preview .support-qr{width:148px}
.support-dialog{position:fixed;z-index:96;inset:auto clamp(92px,calc(2vw + 80px),110px) 24px auto;margin:0;width:min(340px,calc(100vw - 104px));max-height:calc(100dvh - 48px);overflow:auto;background:#fff;color:#18384c;border:1px solid #dceaf2;border-radius:18px;box-shadow:0 16px 45px #1538523d;padding:0}
.support-dialog header{display:flex;align-items:center;justify-content:space-between;padding:12px 16px;background:linear-gradient(120deg,#edf7ff,#ebfaf6);gap:10px}.support-dialog h2{font-size:17px;margin:0}.support-dialog button{border:0;font:inherit;color:inherit;cursor:pointer;border-radius:8px;padding:7px 10px;background:#eaf3fa}.support-dialog .support-close{font-size:22px;line-height:1}
.support-content{padding:12px 16px 15px;display:grid;gap:8px;font-size:14px}.support-content>*{margin:0}.support-content [hidden]{display:none!important}.support-content a{color:#125caa;text-decoration:underline}.support-qr{display:block;width:min(196px,100%);height:auto;aspect-ratio:1;object-fit:contain;margin:auto}
.support-chat[open]{display:grid;grid-template-rows:auto minmax(0,1fr);width:min(408px,calc(100vw - 104px));height:min(650px,calc(100dvh - 48px))}.support-chat .support-content{display:flex;flex-direction:column;min-height:0;overflow:auto}.support-content form{display:grid;gap:6px}.support-copy,.support-status-line,.support-composer-tools,.support-attachment{display:flex;gap:8px;align-items:center}.support-composer-tools{justify-content:space-between}.support-status-line{justify-content:space-between;background:#edf7fe;border-radius:8px;padding:7px 9px;font-size:12px;flex-wrap:wrap}.support-status-line p{margin:0}.support-content input,.support-content textarea{width:100%;min-width:0;font:inherit;border:1px solid #799eb2;border-radius:8px;padding:7px 9px;color:inherit;background:white}.support-content textarea{resize:vertical}.support-content button:disabled{opacity:.55;cursor:wait}.support-hint{color:#526f80;font-size:11px}
.support-messages{padding:6px;display:flex;flex-direction:column;gap:7px;min-height:52px;flex:1;overflow:auto;background:#f7fbfd;border-radius:10px}.support-message{padding:7px 10px;background:#eef5fa;border-radius:10px;max-width:85%;align-self:flex-start;white-space:pre-wrap;overflow-wrap:anywhere}.support-message.mine{align-self:flex-end;background:#e1f5ec}.support-message img{display:block;max-width:100%;max-height:220px;object-fit:contain;border-radius:6px}.support-attachment img{width:48px;height:40px;object-fit:contain}
.support-reference-buttons{display:flex;gap:6px;flex-wrap:wrap}.support-reference-buttons:empty{display:none}.support-reference-buttons button{flex:1 0 auto;font-size:12px}.support-reference-options{display:grid;gap:4px;max-height:110px;overflow:auto;background:#f4f9fc;padding:6px;border-radius:8px}.support-reference-options button{text-align:left}.support-widget :focus-visible,.support-dialog :focus-visible{outline:2px solid #1677df;outline-offset:2px}
@media(max-width:767px){.support-widget{bottom:calc(76px + env(safe-area-inset-bottom,0px));max-height:calc(100dvh - 96px)}.support-tool > :is(button,a){width:48px;height:48px}.support-dialog{right:72px;bottom:calc(76px + env(safe-area-inset-bottom,0px));width:calc(100vw - 82px);max-height:calc(100dvh - 94px)}.support-chat[open]{width:calc(100vw - 82px);height:min(590px,calc(100dvh - 94px))}.support-dialog header,.support-content{padding-inline:10px}}

.support-guest{justify-content:flex-start;align-items:flex-start;flex-wrap:nowrap;color:#31566e}.support-guest .icon{margin-top:1px}
.support-guest .icon,.support-resource-card .icon{width:16px;height:16px;flex:none}
.support-time{display:block;margin-top:3px;color:#4b6475;font-size:10px}
.support-resource-card{display:flex;gap:8px;align-items:center;margin:4px 0;padding:7px 9px;border-radius:7px;background:#fff;border:1px solid #cbdfea;text-decoration:none!important;white-space:normal}
.support-resource-card span,.support-resource-card small,.support-resource-card strong{display:block}
.support-resource-card.order{border-color:#c9dfd2;color:#225d43}
.support-resource-card.product{border-color:#d9d3eb;color:#56417f}
.support-choices-heading{display:flex;justify-content:space-between;align-items:center;gap:6px}
@media(max-width:767px){.support-chat[open]{right:64px;width:min(408px,calc(100vw - 74px))}}

.support-main,[data-mobile-destination="support"]{position:relative}
.support-unread{position:absolute;top:1px;right:2px;min-width:17px;height:17px;padding:0 4px;border:1px solid white;border-radius:20px;background:#d93661;color:white;font-size:10px;font-weight:700;line-height:15px;text-align:center}
.support-unread[hidden]{display:none}
@media(max-width:767px){
 .support-widget{display:none}
 .support-widget.support-mobile-open{display:block;z-index:1101;inset:auto 0 var(--customer-mobile-nav-height,72px);max-height:calc(100dvh - 82px);background:#f9fdfd;border-top:1px solid #dceaf2;border-radius:18px 18px 0 0;padding:14px;box-shadow:0 -6px 24px #123a5226}
 .support-mobile-open nav{display:grid;grid-auto-flow:column;grid-auto-columns:minmax(0,1fr);gap:4px;padding:0;background:transparent;border:0;border-radius:0;box-shadow:none}
 .support-mobile-open .support-tool > :is(button,a){width:100%;min-height:54px;height:auto;background:transparent;white-space:normal}
 .support-mobile-open .support-tool > :is(button,a):is(:active,:focus-visible){background:var(--action-hover,#c0e7f3)}
 .support-mobile-open .support-tool{position:static}
 .support-mobile-open .support-preview{inset:auto 8px calc(100% - 6px);transform:none;margin:auto;max-width:calc(100vw - 24px)}
 .support-chat[open]{z-index:1102;inset:auto 0 var(--customer-mobile-nav-height,72px);width:100%;height:min(650px,calc(100dvh - var(--customer-mobile-nav-height,72px)));max-height:calc(100dvh - var(--customer-mobile-nav-height,72px));border-radius:16px 16px 0 0}
 body:has([data-keyboard-open]) .support-chat[open]{bottom:0;max-height:100dvh}
}

@media(min-width:768px){.customer-support-mobile{display:none}}
.support-widget,.support-dialog{--font:system-ui,"Microsoft YaHei",sans-serif}.support-widget .icon,.support-dialog .icon{width:1em;height:1em;fill:currentColor;flex:none}.support-widget .support-tool .icon{width:18px;height:18px}

.support-quick-replies button { flex: 0 1 auto; min-width: 0; max-width: 100%; white-space: normal; overflow-wrap: anywhere; }
.support-chat-tool:not(:hover) .support-preview,
.support-chat-tool.chat-preview-dismissed .support-preview,
.support-widget:has(dialog[open]) .support-chat-tool .support-preview { display: none; }

.support-back-top {
  position: fixed;
  z-index: 94;
  right: calc(clamp(12px, 2vw, 28px) + 84px);
  bottom: 30px;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border: 1px solid var(--border-2);
  border-radius: 13px;
  color: var(--ink);
  background: var(--white);
  box-shadow: 0 8px 24px #1743651c;
  cursor: pointer;
}
.support-back-top:hover { background: var(--action-hover); }
.support-back-top[hidden],
body:has(.support-widget:hover, .support-tool.is-open, .support-tool:not(.support-chat-tool) > :focus-visible, .support-mobile-open, .support-dialog[open]) .support-back-top {
  display: none;
}
@media (max-width: 767px) {
  .support-back-top {
    right: 16px;
    bottom: calc(var(--customer-mobile-nav-height, 72px) + 12px);
  }
}
