/* QuickCommerce website chat (rebuilt 29 Nov 2026, phones first). Everything sits under .qcc so it
   can't touch the page. Ink and paper only; blue just for the online dot and the new-reply badge.
   These are the light colours (the older light pages). The dark site redefines the --qcc-* tokens
   at the end of qc-dark.css. Fonts are inherited from the page. */
.qcc{
  --qcc-bg:#FFFFFF; --qcc-fg:#0D0D0D; --qcc-mute:#5C5C5C; --qcc-line:#E6E4DE; --qcc-line-strong:#CFCBC2;
  --qcc-bubble:#F1EFE9; --qcc-me-bg:#0D0D0D; --qcc-me-fg:#FAF9F5;
  --qcc-chip-line:#D3CFC6; --qcc-chip-hover:#F1EFE9; --qcc-strong-bg:#0D0D0D; --qcc-strong-fg:#FAF9F5;
  --qcc-field:#FFFFFF; --qcc-field-line:#D3CFC6;
  --qcc-fab-bg:#0D0D0D; --qcc-fab-fg:#FAF9F5; --qcc-fab-ring:#FAF9F5;
  --qcc-accent:#2456C7; --qcc-scrim:rgba(13,13,13,.32);
  --qcc-shadow:0 24px 60px -20px rgba(0,0,0,.35),0 2px 8px rgba(0,0,0,.06);
  --qcc-ease:cubic-bezier(.23,1,.32,1); --qcc-sheet:cubic-bezier(.32,.72,0,1);
  color:var(--qcc-fg);font-size:16px;line-height:1.4;-webkit-font-smoothing:antialiased;-webkit-tap-highlight-color:transparent
}
.qcc *,.qcc *::before,.qcc *::after{box-sizing:border-box}
.qcc [hidden]{display:none!important}
/* :where() keeps these resets at no weight, so every .qcc-* rule below wins over them. */
:where(.qcc) p{margin:0}
:where(.qcc) :is(button,input,textarea){font:inherit;color:inherit;margin:0}
.qcc button{cursor:pointer;touch-action:manipulation}
/* 16px: iPhones won't zoom the page when one of these is tapped. */
.qcc input,.qcc textarea{font-size:16px!important}
.qcc :focus-visible{outline:2px solid var(--qcc-fg);outline-offset:2px}
.qcc-panel:focus{outline:none}
.qcc-sr{position:absolute!important;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0 0 0 0);clip-path:inset(50%);white-space:nowrap;border:0}
.qcc svg{display:block;flex:none}

/* ---- The round button ---- */
.qcc-fab{position:fixed;right:20px;bottom:calc(20px + env(safe-area-inset-bottom,0px));z-index:68;width:56px;height:56px;padding:0;border:2px solid var(--qcc-fab-ring);border-radius:50%;background:var(--qcc-fab-bg);color:var(--qcc-fab-fg);display:flex;align-items:center;justify-content:center;box-shadow:0 10px 28px -10px rgba(0,0,0,.45);transition:transform 160ms var(--qcc-ease)}
.qcc-fab:active{transform:scale(.94)}
.qcc-fab-i{display:flex;transition:opacity 160ms ease,transform 200ms var(--qcc-ease)}
.qcc-fab svg{width:24px;height:24px}
.qcc-fab-x{position:absolute;opacity:0;transform:rotate(-45deg)}
.qcc.qcc-in .qcc-fab-x{opacity:1;transform:none}
.qcc.qcc-in .qcc-fab-chat{opacity:0;transform:scale(.7)}
.qcc-badge{position:absolute;top:2px;right:2px;width:14px;height:14px;border-radius:50%;background:var(--qcc-accent);border:2px solid var(--qcc-fab-ring)}

/* ---- "Need any help?" ---- */
.qcc-hint{position:fixed;right:88px;bottom:calc(28px + env(safe-area-inset-bottom,0px));z-index:67;display:flex;align-items:center;gap:2px;padding:3px 4px 3px 12px;background:var(--qcc-bg);color:var(--qcc-fg);border:1px solid var(--qcc-line);border-radius:14px;box-shadow:var(--qcc-shadow);transition:opacity 200ms ease,transform 200ms var(--qcc-ease)}
.qcc-hint-open{border:0;background:transparent;padding:8px 4px;min-height:36px;font-size:15px;font-weight:500}
.qcc-hint-x{position:relative;width:28px;height:28px;padding:0;border:0;border-radius:50%;background:var(--qcc-chip-hover);font-size:18px;line-height:1}
.qcc-hint-x::after{content:"";position:absolute;inset:-8px}
@starting-style{.qcc-hint{opacity:0;transform:translateY(6px)}}

/* ---- The panel (computers and tablets) ---- */
.qcc-scrim{display:none}
.qcc-panel{position:fixed;right:20px;bottom:calc(88px + env(safe-area-inset-bottom,0px));z-index:71;width:380px;max-width:calc(100vw - 32px);height:min(600px,calc(100vh - 120px));height:min(600px,calc(100dvh - 120px));display:flex;flex-direction:column;overflow:hidden;background:var(--qcc-bg);color:var(--qcc-fg);border:1px solid var(--qcc-line);border-radius:18px;box-shadow:var(--qcc-shadow);transform-origin:bottom right;opacity:0;transform:translateY(10px) scale(.98);transition:opacity 180ms ease,transform 220ms var(--qcc-ease)}
.qcc.qcc-in .qcc-panel{opacity:1;transform:none}

.qcc-head{position:relative;flex:none;display:flex;align-items:center;gap:12px;padding:12px 8px 12px 18px;border-bottom:1px solid var(--qcc-line)}
.qcc-grab{display:none}
.qcc-title{min-width:0;flex:1}
.qcc-title h2{margin:0;font-family:var(--head,inherit);font-size:16px;font-weight:600;line-height:1.25;letter-spacing:-.01em;color:var(--qcc-fg);text-transform:none}
.qcc-status{display:flex;align-items:center;gap:6px;margin-top:2px;font-size:13px;line-height:1.3;color:var(--qcc-mute)}
.qcc-dot{width:7px;height:7px;flex:none;border-radius:50%;background:var(--qcc-mute)}
.qcc-dot.on{background:var(--qcc-accent)}
.qcc-x{flex:none;width:44px;height:44px;padding:0;border:0;border-radius:50%;background:transparent;display:flex;align-items:center;justify-content:center}
.qcc-x svg{width:20px;height:20px}

.qcc-body{flex:1 1 auto;min-height:0;overflow-y:auto;overscroll-behavior:contain;-webkit-overflow-scrolling:touch;padding:16px 14px 18px;display:flex;flex-direction:column;gap:10px}
.qcc-msg{max-width:88%;padding:10px 14px;border-radius:16px 16px 16px 6px;background:var(--qcc-bubble);color:var(--qcc-fg);align-self:flex-start;font-size:15px;line-height:1.45;overflow-wrap:anywhere}
.qcc-msg.me{align-self:flex-end;background:var(--qcc-me-bg);color:var(--qcc-me-fg);border-radius:16px 16px 6px 16px}
.qcc-text{display:block;white-space:pre-wrap}
.qcc-link{display:flex;width:fit-content;max-width:100%;align-items:center;gap:6px;margin-top:10px;min-height:44px;padding:8px 14px;border:1px solid var(--qcc-line-strong);border-radius:999px;background:var(--qcc-bg);color:var(--qcc-fg);font-size:14px;font-weight:500;line-height:1.2;text-decoration:none}
.qcc-link svg{width:16px;height:16px}
.qcc-note{align-self:center;text-align:center;font-size:13px;color:var(--qcc-mute);padding:2px 8px}
.qcc-body>.qcc-err{align-self:stretch;font-size:14px;font-weight:500;color:var(--qcc-fg);background:var(--qcc-bubble);border-left:3px solid var(--qcc-fg);border-radius:8px;padding:8px 12px}
.qcc-typing{display:inline-flex;align-items:center;padding:13px 16px}
.qcc-dots{display:inline-flex;gap:4px}
.qcc-dots i{width:6px;height:6px;border-radius:50%;background:var(--qcc-mute);animation:qcc-bounce 1.2s ease-in-out infinite}
.qcc-dots i:nth-child(2){animation-delay:.15s}.qcc-dots i:nth-child(3){animation-delay:.3s}
@keyframes qcc-bounce{0%,60%,100%{opacity:.35;transform:none}30%{opacity:1;transform:translateY(-3px)}}

/* The one-tap questions */
.qcc-quick{display:flex;flex-wrap:wrap;gap:8px;padding:2px 0}
.qcc-chip{min-height:44px;max-width:100%;padding:10px 14px;border:1px solid var(--qcc-chip-line);border-radius:14px;background:transparent;color:var(--qcc-fg);font-size:15px;font-weight:500;line-height:1.25;text-align:left;transition:background-color 150ms ease,border-color 150ms ease,transform 120ms var(--qcc-ease)}
.qcc-chip:active{transform:scale(.97)}
.qcc-chip.person{background:var(--qcc-strong-bg);border-color:var(--qcc-strong-bg);color:var(--qcc-strong-fg)}
@media (hover:hover) and (pointer:fine){
  .qcc-chip:not(.person):hover,.qcc-x:hover,.qcc-link:hover{background:var(--qcc-chip-hover)}
  .qcc-chip:not(.person):hover{border-color:var(--qcc-line-strong)}
}

/* Talk to a person */
.qcc-form{display:flex;flex-direction:column;gap:10px;align-self:stretch;padding:14px;border:1px solid var(--qcc-line);border-radius:16px;background:var(--qcc-bg)}
.qcc-form-note{font-size:14px;line-height:1.4;color:var(--qcc-mute)}
.qcc-field{display:flex;flex-direction:column;gap:4px;font-size:13px;font-weight:500}
.qcc-field input,.qcc-field textarea{width:100%;min-height:44px;padding:10px 12px;border:1px solid var(--qcc-field-line);border-radius:10px;background:var(--qcc-field);color:var(--qcc-fg);line-height:1.35;resize:none}
.qcc-trap{position:absolute!important;left:-9999px!important;width:1px;height:1px;opacity:0}
.qcc-form .qcc-err{font-size:13px;font-weight:500;color:var(--qcc-fg)}
.qcc-form-row{display:flex;gap:8px}
.qcc-btn{flex:1;min-height:44px;padding:0 16px;border:1px solid var(--qcc-strong-bg);border-radius:10px;background:var(--qcc-strong-bg);color:var(--qcc-strong-fg);font-size:15px;font-weight:500}
.qcc-btn.ghost{flex:none;background:transparent;color:var(--qcc-fg);border-color:var(--qcc-line-strong)}
.qcc-btn:disabled{opacity:.6;cursor:default}

/* The box */
.qcc-foot{flex:none;display:flex;align-items:flex-end;gap:8px;padding:10px 12px;border-top:1px solid var(--qcc-line);background:var(--qcc-bg)}
.qcc-foot textarea{flex:1;min-width:0;min-height:44px;max-height:110px;padding:11px 14px;border:1px solid var(--qcc-field-line);border-radius:12px;background:var(--qcc-field);color:var(--qcc-fg);line-height:1.3;resize:none;display:block}
.qcc-foot textarea::placeholder,.qcc-field input::placeholder{color:var(--qcc-mute);opacity:1}
.qcc-send{flex:none;width:44px;height:44px;padding:0;border:0;border-radius:50%;background:var(--qcc-strong-bg);color:var(--qcc-strong-fg);display:flex;align-items:center;justify-content:center;transition:transform 160ms var(--qcc-ease),opacity 150ms ease}
.qcc-send:active{transform:scale(.94)}
.qcc-send:disabled{opacity:.5;cursor:default}
.qcc-send svg{width:20px;height:20px}

/* ---- Phones: a bottom sheet over three quarters of the visible screen ----
   qc-chat.js sets --qcc-vvh (the visible height) and --qcc-below (how far the keyboard
   pushes the bottom up) from visualViewport, and .qcc-kbd while the keyboard is open. */
@media (max-width:640px){
  .qcc-fab{right:12px;bottom:calc(12px + env(safe-area-inset-bottom,0px));width:44px;height:44px;border-width:1.5px}
  .qcc-fab svg{width:20px;height:20px}
  .qcc-badge{top:0;right:0;width:12px;height:12px}
  .qcc-hint{right:64px;bottom:calc(14px + env(safe-area-inset-bottom,0px))}
  .qcc-scrim{display:block;position:fixed;inset:0;z-index:70;background:var(--qcc-scrim);opacity:0;transition:opacity 240ms ease;touch-action:none}
  .qcc.qcc-in .qcc-scrim{opacity:1}
  .qcc-panel{left:0;right:0;bottom:var(--qcc-below,0px);width:auto;max-width:none;height:75vh;height:min(calc(var(--qcc-vvh,100dvh) * .75),680px);border-width:1px 0 0;border-radius:20px 20px 0 0;opacity:1;transform:translateY(105%);transform-origin:bottom center;transition:transform 300ms var(--qcc-sheet)}
  .qcc.qcc-in .qcc-panel{transform:none}
  .qcc.qcc-kbd .qcc-panel{height:min(calc(var(--qcc-vvh,100dvh) * .88),680px)}
  .qcc-panel.qcc-drag{transition:none}
  .qcc-head{padding-top:18px;touch-action:none}
  .qcc-grab{display:block;position:absolute;top:7px;left:50%;width:36px;height:4px;margin-left:-18px;border-radius:2px;background:var(--qcc-line-strong)}
  .qcc-body{padding:14px 14px 16px}
  .qcc-msg{max-width:92%}
  .qcc-foot{padding-bottom:calc(10px + env(safe-area-inset-bottom,0px))}
  .qcc.qcc-kbd .qcc-foot{padding-bottom:10px}
  html.qcc-lock,html.qcc-lock body{overflow:hidden}
}

/* Phones and small tablets: room at the very end of the page, so the last links scroll clear of the
   round button (44px, 12px from the corner) instead of ending up under it. Inside the page's own
   footer, so the space takes the footer's colour; pages with no footer pad the page instead. */
@media (max-width:767px){
  body>footer:last-of-type::after{content:"";display:block;height:calc(68px + env(safe-area-inset-bottom,0px))}
  body:not(:has(>footer)){padding-bottom:calc(68px + env(safe-area-inset-bottom,0px))}
}

@media (prefers-reduced-motion:reduce){
  .qcc-dots i{animation:none}
  .qcc-panel,.qcc-scrim,.qcc-hint,.qcc-fab,.qcc-fab-i,.qcc-chip,.qcc-send{transition:none}
}
