/* Chat bubble: fixed in the bottom-right corner, so it stays with you as you scroll. Uses the theme color. */
.cw{position:fixed;right:18px;bottom:18px;z-index:45;display:flex;flex-direction:column;align-items:flex-end;gap:12px;font-family:var(--shop-body,Poppins,system-ui,sans-serif)}
.cw-bubble{display:grid;place-items:center;width:58px;height:58px;border-radius:50%;border:0;background:var(--shop-cyan,#55edff);color:#031216;cursor:pointer;
  box-shadow:0 8px 24px #0009,0 0 22px color-mix(in srgb,var(--shop-cyan,#55edff) 45%,transparent);transition:transform .2s}
.cw-bubble:hover{transform:scale(1.06)}
.cw-bubble:focus-visible{outline:2px solid #fff;outline-offset:3px}
.cw-bubble svg{width:26px;height:26px;fill:currentColor}
.cw:not(.is-open) .cw-bubble{animation:cw-pulse 3s ease-in-out infinite}
.cw-panel{width:min(340px,calc(100vw - 36px));max-height:min(560px,calc(100dvh - 110px));display:flex;flex-direction:column;border:1px solid var(--shop-cyan,#55edff);border-radius:16px;
  background:#08131af5;backdrop-filter:blur(12px);color:var(--shop-text,#edf9fb);box-shadow:0 20px 50px #000c;overflow:hidden;animation:cw-in .22s cubic-bezier(.2,.8,.2,1)}
.cw-head{display:flex;justify-content:space-between;align-items:center;padding:12px 14px;background:color-mix(in srgb,var(--shop-cyan,#55edff) 16%,#08131a);border-bottom:1px solid var(--shop-line,#20343e)}
.cw-head h2{margin:0;font:400 1.5rem/1 var(--shop-heading,Impact);letter-spacing:.03em}
.cw-x{border:0;background:transparent;color:inherit;font-size:1.5rem;line-height:1;cursor:pointer;padding:2px 8px;border-radius:8px}
.cw-x:focus-visible{outline:2px solid var(--shop-cyan,#55edff)}
.cw-log{flex:1;overflow:auto;padding:12px 14px;display:flex;flex-direction:column;gap:8px;font-size:.85rem}
.cw-intro{margin:0;color:var(--shop-muted,#a3b5be)}
.cw-msg{align-self:flex-end;max-width:85%;padding:8px 11px;border-radius:12px 12px 4px 12px;background:color-mix(in srgb,var(--shop-cyan,#55edff) 22%,#0b1a22)}
.cw-msg small{display:block;color:var(--shop-muted,#a3b5be);font-size:.68rem}
.cw-msg p{margin:2px 0 0;white-space:pre-wrap;overflow-wrap:anywhere}
.cw-ok{margin:0;color:var(--shop-cyan,#55edff);font-size:.8rem;text-align:right}
.cw-form{display:grid;gap:8px;padding:12px 14px;border-top:1px solid var(--shop-line,#20343e)}
.cw-form :is(input,textarea){width:100%;box-sizing:border-box;font:inherit;font-size:.85rem;color:inherit;background:#050d12;border:1px solid var(--shop-line,#20343e);border-radius:8px;padding:8px 10px}
.cw-form textarea{resize:none}
.cw-form :is(input,textarea):focus-visible{outline:2px solid var(--shop-cyan,#55edff);outline-offset:1px}
.cw-send{font:600 .85rem var(--shop-body,Poppins,sans-serif);padding:9px;border:0;border-radius:999px;background:var(--shop-cyan,#55edff);color:#031216;cursor:pointer}
.cw-send:disabled{opacity:.6;cursor:wait}
.cw-error{margin:0;color:#ffc1bc;font-size:.78rem}
@keyframes cw-in{from{opacity:0;transform:translateY(10px) scale(.98)}}
@keyframes cw-pulse{0%,100%{box-shadow:0 8px 24px #0009,0 0 0 0 color-mix(in srgb,var(--shop-cyan,#55edff) 45%,transparent)}50%{box-shadow:0 8px 24px #0009,0 0 0 10px transparent}}
@media(max-width:520px){.cw{right:12px;bottom:12px}.cw-bubble{width:52px;height:52px}}
@media(prefers-reduced-motion:reduce){.cw-panel,.cw:not(.is-open) .cw-bubble{animation:none}}
/* Team replies on the left, the customer's messages on the right; a dot on the bubble when there's a new reply. */
.cw-msg.cw-team{align-self:flex-start;border-radius:12px 12px 12px 4px;background:#14232c;border:1px solid var(--shop-line,#20343e)}
.cw-msg.cw-team small{color:var(--shop-cyan,#55edff)}
.cw-bubble{position:relative}
.cw-dot{position:absolute;top:2px;right:2px;width:14px;height:14px;border-radius:50%;background:#ff4d6d;border:2px solid #031216}
/* A hidden panel must stay hidden (the display:flex above would otherwise keep it on screen). */
.cw-panel[hidden]{display:none}
