/* Shared launcher layout loaded by support-chat.js; no business UI restyling. */
.support-widget .support-panel{outline:none}
.support-widget .support-launch[hidden] { display: none !important; }
.support-widget .support-launch svg { display: none; }
.support-widget .support-launch-label { margin: 0; }
@media (max-width: 800px) {
  .support-widget .support-launch {
    right: max(12px, env(safe-area-inset-right, 0px));
    bottom: calc(var(--support-mobile-bottom, 12px) + env(safe-area-inset-bottom, 0px));
    display: grid; place-items: center; width: 48px; height: 48px;
    padding: 0; border-radius: 50%; min-width: 48px; min-height: 48px;
  }
  .support-widget .support-launch svg { display: block; }
  .support-widget .support-launch-label { display: none; }
  .support-widget .support-panel {
    right: max(12px, env(safe-area-inset-right, 0px));
    bottom: calc(var(--support-mobile-bottom, 12px) + env(safe-area-inset-bottom, 0px));
    max-height: calc(100dvh - var(--support-mobile-bottom, 12px) - env(safe-area-inset-bottom, 0px) - 24px);
  }
}

/* Keep the conversation and composer visible, with only messages scrolling. */
.support-panel[data-view=active]{display:flex;flex-direction:column;overflow:hidden;height:min(740px,calc(100dvh - 100px))}
.support-panel[data-view=active]>.support-intro{display:none}
.support-panel[data-view=active]>header{flex:none}
.support-panel[data-view=active] .support-active{display:flex;flex:1;min-height:0;flex-direction:column;padding:10px 14px}
.support-panel .support-details{flex:none;font-size:12px;color:#b7c8da;margin-bottom:4px}
.support-panel .support-details summary{cursor:pointer;padding:6px 0;min-height:24px}
.support-panel .support-status{flex:none;font-size:11px;margin:4px 0 8px}
.support-panel[data-view=active] .support-messages{flex:1;min-height:60px;height:auto;overflow:auto;overscroll-behavior:contain}
.support-panel[data-view=active] #supportSendForm{display:grid;grid-template-columns:1fr auto;gap:6px;flex:none;padding:8px 0 0}
.support-panel[data-view=active] #supportReply{grid-column:1/-1;height:60px;min-height:48px;max-height:100px;resize:none;margin:0}
.support-panel[data-view=active] .photo-controls{grid-column:1;align-self:start}
.support-panel[data-view=active] #supportSendForm>.support-primary{grid-column:2;align-self:start;margin:0;min-height:44px}
.support-panel .support-new-thread{flex:none;font-size:11px;min-height:28px}
@media(max-width:800px){
 .support-widget .support-panel{inset:var(--chat-top,0px) 0 auto 0;width:100%;height:var(--chat-height,100dvh);max-height:var(--chat-height,100dvh);border-radius:0;border:0;box-sizing:border-box;padding-bottom:env(safe-area-inset-bottom,0px)}
 .support-panel header{padding:10px 16px;min-height:48px;box-sizing:border-box}.support-panel .support-close{min-width:44px;min-height:44px}
}
@media(max-height:600px){.support-panel[data-view=active] .support-details,.support-panel[data-view=active] .support-new-thread,.support-panel[data-view=active] .attachment-help,.support-panel header small{display:none}.support-panel[data-view=active] #supportReply{height:44px;min-height:44px}.support-panel[data-view=active] .support-status{margin:0 0 4px}}

/* Restrained launcher, with unchanged chat behaviour and safe-area positioning. */
.support-widget .support-launch{min-height:44px;border:1px solid #ffffff30;background:#172431;box-shadow:0 3px 12px #0003;font-weight:600}
@media(max-width:800px){
.support-widget .support-launch{width:44px;height:44px;min-width:44px;min-height:44px;padding:0!important}
.support-widget .support-launch svg{width:20px;height:20px}
}

.support-widget .support-launch{box-sizing:border-box;height:44px;padding:0 14px}

/* Gentle chat invitation: visual scale only, never changes layout. */
.support-widget .support-launch:not([hidden]):not(:disabled):not([aria-expanded="true"]){animation:sbx-support-breathe 3.6s ease-in-out infinite;transform-origin:center;box-shadow:0 0 0 1px #b5ff3030,0 0 14px #b5ff3026}
@keyframes sbx-support-breathe{0%,100%{scale:1;box-shadow:0 0 0 1px #b5ff3030,0 0 12px #b5ff3020}50%{scale:1.045;box-shadow:0 0 0 2px #b5ff3045,0 0 22px #b5ff3045}}
.support-widget .support-launch:hover,.support-widget .support-launch:focus-visible,.support-widget .support-launch:active{animation-play-state:paused}
@media(prefers-reduced-motion:reduce){.support-widget .support-launch:not([hidden]):not(:disabled):not([aria-expanded="true"]){animation:none;scale:1;box-shadow:0 0 0 1px #b5ff3040,0 0 14px #b5ff3030}}

/* Confirmation CTA: Open order & chat uses the same invitation as support. */
#orderSuccess:not([hidden]) #savedTracking{
 animation:sbx-support-breathe 3.6s ease-in-out infinite;
 transform-origin:center;box-shadow:0 0 0 1px #b5ff3030,0 0 14px #b5ff3026;
}
#orderSuccess #savedTracking:hover,#orderSuccess #savedTracking:focus-visible,#orderSuccess #savedTracking:active{animation-play-state:paused}
@media(prefers-reduced-motion:reduce){
 #orderSuccess:not([hidden]) #savedTracking{animation:none;scale:1;box-shadow:0 0 0 1px #b5ff3040,0 0 14px #b5ff3030}
}


/* Support conversation: compact header, uninterrupted messages, one composer row. */
.support-widget .support-panel>header{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:10px 14px;background:#101d2b;border-bottom:1px solid #ffffff12;flex:none}
.support-widget .support-panel>header>div{min-width:0}
.support-widget .support-panel>header strong{font:650 16px/1.35 system-ui}
.support-widget .support-panel>header small{display:block;font:400 12px/1.4 system-ui;color:#aebfce;margin-top:3px}
.support-widget .support-panel .support-close{display:grid;place-items:center;flex:0 0 44px;width:44px;height:44px;min-width:44px;min-height:44px;max-width:44px;margin:0;padding:0;border:1px solid #ffffff20;border-radius:50%;background:#192a3a;color:#e4edf4;box-shadow:none;font-size:20px;line-height:1;outline:none}
.support-widget .support-panel .support-close svg{width:20px;height:20px;display:block}
.support-widget .support-panel .support-close:focus-visible{outline:2px solid #b6ff3b;outline-offset:2px}
.support-widget .support-panel[data-view=active] .support-active{padding:6px 12px 8px;gap:0;box-sizing:border-box;overflow:hidden}
.support-widget .support-panel[data-view=active] .support-messages{border:0;border-radius:0;padding:12px 2px;min-height:0;margin:0;scroll-behavior:auto;overflow-anchor:none}
.support-widget .support-panel .support-status:empty{display:none}
.support-widget .support-panel .support-details{margin:0;font-size:12px}
.support-widget .support-panel .support-details summary{padding:7px 0;min-height:0}
.support-widget .support-panel .support-details[open]{max-height:28%;overflow:auto}
.support-widget .support-panel .sbx-chat-attention{padding:3px 0;background:transparent;min-height:30px}
.support-widget .support-panel .sbx-chat-alert-help{padding:6px 0;background:transparent;max-height:64px;font-size:11px}
.support-widget .support-panel[data-view=active] #supportSendForm{display:grid;grid-template-columns:44px minmax(0,1fr) auto;align-items:end;gap:6px;padding-top:6px;margin:0;flex:none}
.support-widget .support-panel[data-view=active] #supportReply{grid-column:2;grid-row:2;min-height:44px;height:44px;max-height:100px;padding:10px 12px;border:1px solid #3a5063;border-radius:14px;font:16px/1.4 system-ui;outline:none;box-shadow:none;overflow-y:auto;resize:none}
.support-widget .support-panel #supportReply:focus{border-color:#98cd52;box-shadow:0 0 0 1px #98cd5240}
.support-widget .support-panel[data-view=active] .photo-controls{display:contents}
.support-widget .support-panel .photo-controls .photo-attach{grid-column:1;grid-row:2;align-self:end;display:grid;place-items:center;width:44px;height:44px;min-width:44px;padding:0;border-radius:14px;background:#192a3a;border:1px solid #3a5063}
.support-widget .support-panel .photo-controls>input[hidden]{display:none}
.support-widget .support-panel .photo-controls>p:empty{display:none}
.support-widget .support-panel .photo-controls>p:not(:empty),.support-widget .support-panel .photo-preview:not([hidden]){grid-column:1/-1;grid-row:auto;max-height:80px;overflow:auto}
.support-widget .support-panel[data-view=active] #supportSendForm>.support-primary{grid-column:3;grid-row:2;align-self:end;min-height:44px;height:44px;padding:0 14px;border-radius:14px;font:650 14px/1 system-ui;margin:0}
.support-widget .support-panel #supportSendForm>.sbx-reply-preview{grid-row:1;margin:0;max-height:64px}
.support-widget .support-panel .support-new-thread{font:400 11px/1.4 system-ui;min-height:30px;padding:6px 0;margin:4px 0 0}
.support-widget .support-panel.support-keyboard{padding-bottom:0}
.support-widget .support-panel.support-keyboard header small,
.support-widget .support-panel.support-keyboard .support-details,
.support-widget .support-panel.support-keyboard .support-new-thread{display:none}
.support-widget .support-panel.support-keyboard>header{padding:4px 12px}
.support-widget .support-panel.support-keyboard .support-active{padding-bottom:6px}
