/* ============================================================================
   VOXEL storefront — bright, warm, home-decor editorial.
   Ivory rooms, soft daylight shadows, serif headlines, the house orange as the
   one accent. Self-contained: no CDN, no webfont fetch, so the page paints fast
   and there is no third-party origin to trust.
   ========================================================================== */

:root{
  --bg:#FAF6F0;            /* warm ivory — the room the pieces sit in            */
  --bg-2:#F3ECE1;          /* sand — alternating bands                           */
  --surface:#FFFFFF;
  --surface-2:#F6F1E8;
  --line:#E8DFD0;
  --text:#2B2118;          /* warm near-black, never pure #000                   */
  --muted:#8A7B69;
  --brand:#E86A17;
  --brand-soft:#F58234;
  --brand-tint:#FDEEDF;    /* the faintest wash of the brand, for chips/glows    */
  --good:#2E7D4F;
  --radius:14px;
  --radius-lg:22px;
  --maxw:1240px;
  --ease:cubic-bezier(.22,.61,.36,1);
  --font:ui-sans-serif,system-ui,-apple-system,"Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif;
  --serif:Georgia,"Palatino Linotype","Book Antiqua",serif;
  --shadow-sm:0 8px 24px -14px rgba(59,42,28,.22);
  --shadow-md:0 18px 44px -22px rgba(59,42,28,.28);
  --shadow-lg:0 34px 80px -30px rgba(59,42,28,.35);
}

*,*::before,*::after{box-sizing:border-box}
/* The `hidden` attribute must always win. Without this, any author rule that sets a display
   (e.g. .chat{display:flex}) beats the UA stylesheet's [hidden]{display:none} and the element
   shows even while marked hidden. */
[hidden]{display:none !important}
/* overflow-x:hidden alone is not enough on Android — the body still becomes a horizontal
   scroll container and the page pans sideways. `clip` truly forbids it (hidden is the
   fallback where clip is unsupported). */
html{-webkit-text-size-adjust:100%; scroll-behavior:smooth; overflow-x:hidden; overflow-x:clip}
@media (prefers-reduced-motion:reduce){html{scroll-behavior:auto} *{animation-duration:.001ms!important;transition-duration:.001ms!important}}

body{
  margin:0; background:var(--bg); color:var(--text); font-family:var(--font);
  font-size:16px; line-height:1.6; -webkit-font-smoothing:antialiased;
  overflow-x:hidden; overflow-x:clip;
}
img{max-width:100%; display:block}
a{color:inherit; text-decoration:none}
h1,h2,h3{margin:0; font-family:var(--serif); font-weight:500; letter-spacing:-.015em; line-height:1.1}

::selection{background:var(--brand-tint); color:var(--text)}
:focus-visible{outline:2px solid var(--brand); outline-offset:3px; border-radius:6px}
.skip{position:absolute;left:-999px;top:0;background:var(--brand);color:#fff;padding:10px 16px;z-index:100}
.skip:focus{left:8px;top:8px}

/* Sections and cards drift up as they enter the view. The class is ADDED BY JS, so with no
   JavaScript nothing is ever hidden. */
.reveal{opacity:0; transform:translateY(18px)}
.reveal.in{opacity:1; transform:none; transition:opacity .6s var(--ease), transform .6s var(--ease)}
@media (prefers-reduced-motion:reduce){ .reveal{opacity:1; transform:none} }

/* ───────── header ───────── */
.hdr{
  position:sticky; top:0; z-index:50; display:flex; align-items:center; gap:18px;
  padding:14px clamp(16px,4vw,40px);
  background:rgba(250,246,240,.8); backdrop-filter:blur(14px) saturate(130%);
  border-bottom:1px solid transparent; transition:border-color .3s var(--ease), background .3s var(--ease);
}
.hdr.stuck{border-bottom-color:var(--line); background:rgba(255,255,255,.92); box-shadow:0 10px 30px -24px rgba(59,42,28,.35)}
.brand{display:flex; align-items:center; gap:10px; margin-right:2px; flex:none}
/* brand + Quri's bubble on the left, nav beside them, everything else on the right edge */
.hdr-right{display:flex; align-items:center; gap:12px; margin-left:auto}
.nav{margin-left:14px}
.brand-mark{width:26px;height:26px;color:var(--brand);flex:none}
/* ONE row, always — "VOXEL STUDIO" must never wrap under the mark */
.brand-name{font-weight:700; letter-spacing:.14em; font-size:15px; white-space:nowrap}
/* one tap to call, from anywhere — the phone's own green so it reads instantly */
.hdr-call{flex:none; width:38px; height:38px; border-radius:50%; display:grid; place-items:center;
  background:var(--surface); border:1px solid var(--line); box-shadow:var(--shadow-sm);
  transition:transform .2s var(--ease), border-color .2s}
.hdr-call:hover{transform:translateY(-1px); border-color:#34C759}
.hdr-call svg{width:24px; height:24px; display:block}
.nav{display:flex; gap:26px}
.nav a{font-size:14px; color:var(--muted); transition:color .2s var(--ease); position:relative}
.nav a::after{content:"";position:absolute;left:0;right:100%;bottom:-5px;height:2px;border-radius:2px;background:var(--brand);transition:right .3s var(--ease)}
.nav a:hover{color:var(--text)} .nav a:hover::after{right:0}
@media (max-width:760px){ .nav{display:none} }

/* the basket in the header */
.hdr-fav{display:inline-flex; align-items:center; gap:6px; background:var(--surface); color:var(--brand);
  border:1px solid var(--line); border-radius:999px; padding:8px 13px; font:inherit; font-size:13px;
  font-weight:600; cursor:pointer; transition:border-color .2s, transform .2s; box-shadow:var(--shadow-sm)}
.hdr-fav:hover{border-color:var(--brand); transform:translateY(-1px)}
#basketCount{color:var(--text)}
/* a happy little jump every time a piece lands in the basket */
.hdr-fav.bump{animation:bump .45s var(--ease)}
@keyframes bump{0%{transform:scale(1)}40%{transform:scale(1.18)}100%{transform:scale(1)}}

/* Quri's bubble in the header — right beside the logo, shaped like a speech bubble
   (flat corner pointing at the brand), warm orange, softly glowing so the eye finds it. */
.hdr-chat{position:relative; display:inline-flex; align-items:center; gap:7px;
  background:linear-gradient(135deg, var(--brand) 0%, #F58234 100%); color:#fff;
  border:none; border-radius:18px 18px 18px 5px; padding:9px 15px; font:inherit; font-size:13.5px;
  font-weight:650; cursor:pointer; transition:transform .2s var(--ease), box-shadow .25s var(--ease);
  box-shadow:0 8px 22px -10px rgba(232,106,23,.7);
  animation:hq-glow 3.6s var(--ease) 1.5s infinite}
.hdr-chat:hover{transform:translateY(-2px) scale(1.03); animation-play-state:paused;
  box-shadow:0 12px 28px -10px rgba(232,106,23,.85)}
@keyframes hq-glow{
  0%,100%{box-shadow:0 8px 22px -10px rgba(232,106,23,.7)}
  50%{box-shadow:0 8px 26px -6px rgba(232,106,23,.95), 0 0 0 5px rgba(232,106,23,.14)}
}
/* its little lamp flicks on with the glow */
.hdr-chat .hq-rays{opacity:0; animation:rays-on 3.6s var(--ease) 1.5s infinite}
.hdr-chat .chat-live{box-shadow:0 0 0 3px rgba(124,245,174,.3)}
@media (max-width:560px){
  /* The small-screen header is deliberately TWO centered rows (owner's design):
     row 1 is ONLY the shop's name, big and centered; row 2 is every button —
     Quri, call, basket, Order — centered together. Nothing ragged, nothing cut. */
  .hdr{flex-wrap:wrap; justify-content:center; gap:8px; row-gap:9px; padding:11px 12px 10px}
  .brand{flex-basis:100%; justify-content:center; margin-right:0; gap:9px}
  .brand-mark{width:28px; height:28px}
  .brand-name{font-size:17px; letter-spacing:.18em}
  .hdr-right{margin-left:0; gap:8px}
  .hdr-chat{padding:8px 12px; font-size:12.5px; flex:none}
  .hdr-chat .hq-label{display:inline}   /* the buttons own a full row now — room for words */
  .hdr-fav{padding:7px 10px; font-size:12.5px; gap:5px}
  .hdr-fav svg{width:18px; height:18px}
  .btn-sm{padding:8px 14px; font-size:13px}
  .hdr-call{width:36px; height:36px}
  .hdr-call svg{width:22px; height:22px}
}
@media (prefers-reduced-motion:reduce){ .hdr-chat,.hdr-chat .hq-rays{animation:none} .hdr-chat .hq-rays{opacity:1} }

/* ───────── buttons ───────── */
.btn{
  display:inline-flex; align-items:center; justify-content:center; gap:8px;
  background:var(--brand); color:#fff; border:1px solid var(--brand);
  padding:13px 26px; border-radius:999px; font:inherit; font-size:14.5px; font-weight:600;
  cursor:pointer; transition:transform .18s var(--ease), box-shadow .25s var(--ease), background .2s;
  box-shadow:0 10px 26px -12px rgba(232,106,23,.65);
}
.btn:hover{background:var(--brand-soft); border-color:var(--brand-soft); transform:translateY(-1px); box-shadow:0 16px 34px -14px rgba(232,106,23,.75)}
.btn:active{transform:translateY(0)}
.btn-ghost{background:var(--surface); color:var(--text); border-color:var(--line); box-shadow:var(--shadow-sm)}
.btn-ghost:hover{background:#fff; border-color:var(--brand); color:var(--text)}
.btn-sm{padding:9px 18px; font-size:13.5px}
.btn.full{width:100%; margin-top:6px}
.btn[disabled]{opacity:.55; cursor:not-allowed; transform:none}

/* small quiet actions (save / share inside the product sheet) */
.mini{display:inline-flex; align-items:center; gap:7px; background:var(--surface); color:var(--muted);
  border:1px solid var(--line); border-radius:999px; padding:9px 15px; font:inherit; font-size:13px;
  cursor:pointer; transition:color .2s, border-color .2s, background .2s}
.mini:hover{color:var(--text); border-color:var(--brand)}
.mini.on{color:var(--brand); border-color:var(--brand); background:var(--brand-tint)}

/* ───────── hero ───────── */
.hero{position:relative; min-height:clamp(560px,84vh,840px); display:grid; place-items:center;
  padding:70px clamp(16px,4vw,40px) 40px; overflow:hidden; text-align:center}
/* a real piece in a real room, translucent behind everything, breathing slowly */
.hero-photo{position:absolute; inset:0; pointer-events:none}
.hero-photo img{position:absolute; inset:0; width:100%; height:100%; object-fit:cover;
  opacity:0; transition:opacity 2.4s var(--ease); transform:scale(1.06);
  animation:hero-breathe 16s var(--ease) infinite alternate}
.hero-photo img.on{opacity:.34}
@keyframes hero-breathe{from{transform:scale(1.06)}to{transform:scale(1.12) translateY(-1.5%)}}
@media (prefers-reduced-motion:reduce){ .hero-photo img{animation:none; transition:none} }
/* soft daylight over the photo. TRANSLUCENT on purpose: an opaque gradient here is what
   made the room photo invisible on every device — the wash must veil it, never bury it. */
.hero-wash{position:absolute; inset:0;
  background:
    radial-gradient(58% 46% at 50% 30%, rgba(232,106,23,.10), transparent 70%),
    radial-gradient(40% 34% at 82% 68%, rgba(244,196,139,.22), transparent 72%),
    linear-gradient(180deg, rgba(255,253,249,.78) 0%, rgba(250,246,240,.45) 52%, var(--bg) 100%);
  pointer-events:none}
.hero-blob{position:absolute; border-radius:50%; filter:blur(60px); pointer-events:none; opacity:.5}
.hero-blob.b1{width:420px;height:420px; left:-120px; top:8%; background:#FBE3CC; animation:drift 16s var(--ease) infinite alternate}
.hero-blob.b2{width:360px;height:360px; right:-100px; bottom:4%; background:#F6E9D4; animation:drift 19s var(--ease) infinite alternate-reverse}
@keyframes drift{from{transform:translate(0,0) scale(1)}to{transform:translate(40px,-30px) scale(1.08)}}
.hero-inner{position:relative; max-width:840px}
.eyebrow{margin:0 0 18px; text-transform:uppercase; letter-spacing:.3em; font-size:11.5px; color:var(--brand); font-weight:600}
.hero-title{font-size:clamp(2.7rem,7.6vw,5.4rem)}
.hero-sub{margin:22px auto 0; max-width:620px; color:var(--muted); font-size:clamp(1rem,1.9vw,1.15rem)}
.hero-cta{display:flex; gap:12px; justify-content:center; flex-wrap:wrap; margin-top:36px}
/* the three quiet promises, under the headline */
.hero-strip{position:relative; list-style:none; display:flex; gap:clamp(18px,4vw,56px); flex-wrap:wrap;
  justify-content:center; margin:clamp(36px,6vh,64px) 0 0; padding:18px clamp(18px,3vw,34px);
  background:rgba(255,255,255,.72); border:1px solid var(--line); border-radius:999px;
  backdrop-filter:blur(8px); box-shadow:var(--shadow-sm)}
.hero-strip li{display:flex; align-items:baseline; gap:7px; font-size:13.5px}
.hero-strip strong{color:var(--brand); font-weight:650}
.hero-strip span{color:var(--muted)}
@media (max-width:560px){ .hero-strip{border-radius:22px; flex-direction:column; gap:8px; align-items:center} }
.scroll-cue{position:absolute; bottom:22px; left:50%; translate:-50% 0; width:1px; height:40px; background:linear-gradient(var(--line),transparent)}
.scroll-cue span{position:absolute; top:0; left:-2px; width:5px; height:5px; border-radius:50%; background:var(--brand); animation:cue 2.4s var(--ease) infinite}
@keyframes cue{0%{top:0;opacity:0}20%{opacity:1}80%{opacity:1}100%{top:36px;opacity:0}}

/* ───────── sections ───────── */
.section{max-width:var(--maxw); margin:0 auto; padding:clamp(60px,8vw,110px) clamp(16px,4vw,40px)}
.band{background:var(--bg-2); max-width:none; border-block:1px solid var(--line)}
.band > *{max-width:var(--maxw); margin-inline:auto}
.section-head{margin-bottom:clamp(24px,3.5vw,42px)}
.kicker{margin:0 0 10px; text-transform:uppercase; letter-spacing:.26em; font-size:11px; color:var(--brand); font-weight:650}
.section-head h2, .about h2{font-size:clamp(1.9rem,3.8vw,2.9rem)}
.section-sub{margin:10px 0 0; color:var(--muted)}

/* ───────── browse toolbar ───────── */
.toolbar{display:flex; align-items:center; gap:12px; flex-wrap:wrap; margin-bottom:clamp(18px,3vw,28px)}
.search{position:relative; display:flex; align-items:center; flex:1 1 240px; max-width:340px; color:var(--muted)}
.search svg{position:absolute; left:14px; pointer-events:none}
.search input{width:100%; margin:0; background:var(--surface); border:1px solid var(--line); color:var(--text);
  border-radius:999px; padding:11px 16px 11px 40px; font:inherit; font-size:14px; box-shadow:var(--shadow-sm);
  transition:border-color .2s}
.search input:focus{outline:none; border-color:var(--brand)}
.chips{display:flex; gap:8px; flex-wrap:wrap}
.chip{background:var(--surface); border:1px solid var(--line); color:var(--muted); border-radius:999px;
  padding:9px 16px; font:inherit; font-size:13.5px; font-weight:550; cursor:pointer;
  transition:color .2s, border-color .2s, background .2s, transform .2s; box-shadow:var(--shadow-sm)}
.chip:hover{color:var(--text); border-color:var(--brand); transform:translateY(-1px)}
.chip.on{background:var(--text); border-color:var(--text); color:#FFF8EF}
.chip .n{opacity:.65; font-weight:400; margin-left:4px; font-size:12px}
.sort{display:flex; align-items:center; gap:8px; margin-left:auto; font-size:13px; color:var(--muted)}
.sort select{background:var(--surface); border:1px solid var(--line); color:var(--text); border-radius:999px;
  padding:10px 14px; font:inherit; font-size:13.5px; cursor:pointer; box-shadow:var(--shadow-sm)}
.sort select:focus{outline:none; border-color:var(--brand)}
@media (max-width:700px){ .sort{margin-left:0} }

/* ───────── product grid ───────── */
.grid{display:grid; gap:clamp(14px,2vw,26px); grid-template-columns:repeat(auto-fill,minmax(min(100%,268px),1fr))}
.card{
  position:relative; background:var(--surface); border:1px solid var(--line); border-radius:var(--radius-lg);
  overflow:hidden; cursor:pointer; text-align:left; padding:0; color:inherit; font:inherit;
  transition:transform .35s var(--ease), border-color .3s var(--ease), box-shadow .35s var(--ease);
  content-visibility:auto; contain-intrinsic-size:340px; box-shadow:var(--shadow-sm);
}
.card:hover{transform:translateY(-6px); border-color:#DECDB4; box-shadow:var(--shadow-md)}
.card-media{position:relative; aspect-ratio:4/5; background:var(--surface-2); overflow:hidden}
.card-media img{width:100%; height:100%; object-fit:cover; transition:transform .7s var(--ease); opacity:0}
.card-media img.in{opacity:1}
.card:hover .card-media img{transform:scale(1.055)}
/* a soft light sweep across the photo on hover, like sun catching the piece */
.card-media::after{content:""; position:absolute; inset:0; background:linear-gradient(105deg,transparent 42%,rgba(255,255,255,.28) 50%,transparent 58%);
  transform:translateX(-120%); transition:transform .8s var(--ease); pointer-events:none}
.card:hover .card-media::after{transform:translateX(120%)}
.card-body{padding:16px 18px 20px}
.card-name{font-size:15.5px; font-weight:600; letter-spacing:-.01em}
.card-meta{display:flex; align-items:baseline; justify-content:space-between; gap:10px; margin-top:6px}
.card-price{color:var(--brand); font-weight:650; font-size:14.5px; white-space:nowrap}
.card-shots{color:var(--muted); font-size:12px}
/* add-to-basket, right on the card — no need to open the piece first */
.card-add{position:absolute; top:12px; right:12px; z-index:3; width:38px; height:38px; border-radius:50%;
  display:grid; place-items:center; background:rgba(255,255,255,.94); border:1px solid var(--line);
  color:var(--brand); cursor:pointer; padding:0; transition:color .2s, transform .2s, border-color .2s, background .2s;
  box-shadow:var(--shadow-sm)}
.card-add:hover{transform:scale(1.12); border-color:var(--brand)}
/* the moment of "got it": the button flips brand-orange and shows a tick */
.card-add.added{background:var(--brand); border-color:var(--brand); color:#fff; animation:added .45s var(--ease)}
.card-add.added svg{display:none}
.card-add.added::after{content:"✓"; font-size:17px; font-weight:700; line-height:1}
@keyframes added{0%{transform:scale(.7)}55%{transform:scale(1.22)}100%{transform:scale(1)}}
/* Ready now vs made to order. Green dot = we have it on the shelf. */
.stock{display:inline-flex; align-items:center; gap:6px; margin-top:10px;
  font-size:11.5px; color:var(--muted); letter-spacing:.02em}
.stock i{width:6px; height:6px; border-radius:50%; background:var(--muted); flex:none}
.stock.ready{color:var(--good)}
.stock.ready i{background:#37A366; box-shadow:0 0 0 3px rgba(55,163,102,.16)}

/* The offers the shop is running, above the collection. */
.offers{display:grid; gap:12px; margin-bottom:clamp(18px,3vw,30px);
  grid-template-columns:repeat(auto-fit,minmax(min(100%,260px),1fr))}
.offer{background:linear-gradient(140deg,#FDEFE0,#FFF9F1);
  border:1px solid rgba(232,106,23,.35); border-radius:var(--radius-lg); padding:14px 16px; box-shadow:var(--shadow-sm)}
.offer strong{display:block; font-size:12px; letter-spacing:.12em; text-transform:uppercase; color:var(--brand)}
.offer span{display:block; margin-top:5px; font-size:13.5px; line-height:1.5}
.offer em{display:block; margin-top:6px; font-size:12px; color:var(--muted); font-style:normal}

.badge{position:absolute; top:12px; left:12px; z-index:2; background:rgba(255,255,255,.92); backdrop-filter:blur(6px);
  border:1px solid var(--line); color:var(--brand); font-size:10.5px; letter-spacing:.14em; text-transform:uppercase;
  font-weight:650; padding:5px 10px; border-radius:999px}
/* On a phone the collection reads far better two pieces to a row, like a printed catalogue. */
@media (max-width:560px){
  .grid{grid-template-columns:1fr 1fr; gap:10px}
  .card{border-radius:16px}
  .card-body{padding:11px 12px 13px}
  .card-name{font-size:13px}
  .card-price{font-size:12.5px}
  .card-shots{display:none}
  .card-add{width:33px; height:33px; top:9px; right:9px}
  .badge{top:9px; left:9px; font-size:9.5px; padding:4px 8px}
  .stock{font-size:10.5px; margin-top:7px}
}

.skel{height:340px; background:linear-gradient(100deg,var(--surface) 30%,var(--surface-2) 50%,var(--surface) 70%);
  background-size:220% 100%; animation:sh 1.3s linear infinite; border-radius:var(--radius-lg); border:1px solid var(--line)}
@keyframes sh{to{background-position:-120% 0}}
.empty{color:var(--muted); text-align:center; padding:40px 0}

/* ───────── about ───────── */
.about-grid{display:grid; grid-template-columns:1.2fr .8fr; gap:clamp(28px,5vw,72px); align-items:start}
@media (max-width:820px){ .about-grid{grid-template-columns:1fr} }
.about h2 em{font-style:italic; color:var(--brand)}
.about p{color:var(--muted); margin:18px 0 0; font-size:clamp(1rem,1.7vw,1.1rem)}
.about-more{line-height:1.75}
.about-cta{display:flex; gap:10px; flex-wrap:wrap; margin-top:26px}
.marks{list-style:none; padding:0; margin:0; display:grid; gap:16px; grid-template-columns:1fr}
.marks li{border-top:2px solid var(--brand-tint); padding-top:12px; display:grid; gap:3px}
.marks strong{font-size:14px; color:var(--brand); font-weight:650; letter-spacing:.04em}
.marks span{color:var(--muted); font-size:14px}
.about-quote{margin:26px 0 0; padding:18px 20px; background:var(--surface); border:1px solid var(--line);
  border-radius:var(--radius); box-shadow:var(--shadow-sm)}
.about-quote p{margin:0; font-family:var(--serif); font-size:1.05rem; font-style:italic; color:var(--text)}
.about-quote footer{margin-top:8px; font-size:12.5px; color:var(--muted)}

/* ───────── contact ───────── */
.contact{display:grid; gap:12px; grid-template-columns:repeat(auto-fit,minmax(210px,1fr))}
.contact-card{position:relative; background:var(--surface); border:1px solid var(--line); border-radius:var(--radius);
  padding:18px 58px 18px 20px; display:grid; gap:5px; box-shadow:var(--shadow-sm);
  transition:border-color .25s var(--ease), transform .25s var(--ease), box-shadow .25s var(--ease)}
a.contact-card:hover{border-color:var(--brand); transform:translateY(-2px); box-shadow:var(--shadow-md)}
.c-k{font-size:11px; letter-spacing:.2em; text-transform:uppercase; color:var(--muted)}
.c-v{font-size:15.5px; font-weight:550; word-break:break-word}
/* each channel wears its own colours — inline SVG, nothing fetched from anywhere */
.c-ico{position:absolute; top:50%; right:16px; translate:0 -50%; width:30px; height:30px; pointer-events:none}
.c-ico svg{width:100%; height:100%; display:block}
.contact-cta{margin-top:26px}

/* ───────── footer ───────── */
.ftr{border-top:1px solid var(--line); background:var(--bg-2)}
.ftr-in{max-width:var(--maxw); margin:0 auto; padding:26px clamp(16px,4vw,40px);
  display:flex; gap:16px; flex-wrap:wrap; justify-content:space-between; color:var(--muted); font-size:13.5px}
.socials{display:flex; gap:18px}
.socials a{display:inline-flex; align-items:center; gap:7px}
.socials a svg{width:17px; height:17px; display:block}
.socials a:hover{color:var(--brand)}
/* the build stamp: lets anyone confirm which version their phone is actually running */
.ver{color:var(--muted); opacity:.7; font-size:11.5px; margin-left:8px}

/* ───────── back to top ───────── */
.totop{position:fixed; left:18px; bottom:18px; z-index:59; width:44px; height:44px; border-radius:50%;
  background:var(--surface); color:var(--muted); border:1px solid var(--line); cursor:pointer;
  display:grid; place-items:center; box-shadow:var(--shadow-md);
  transition:color .2s, border-color .2s, transform .25s var(--ease); animation:invite .35s var(--ease)}
.totop:hover{color:var(--brand); border-color:var(--brand); transform:translateY(-3px)}
@media (max-width:520px){ .totop{left:12px; bottom:12px; width:40px; height:40px} }

/* ───────── dialogs ───────── */
.sheet{
  border:none; padding:0; background:var(--surface); color:var(--text);
  width:min(1080px,94vw); max-width:94vw; max-height:92vh; border-radius:var(--radius-lg);
  border:1px solid var(--line); box-shadow:var(--shadow-lg); overflow:hidden;
}
.sheet.narrow{width:min(460px,94vw)}
.sheet::backdrop{background:rgba(52,39,26,.42); backdrop-filter:blur(5px)}
/* Opacity ONLY — no transform. Animating scale on the open dialog makes some Android
   Chromes mispaint object-fit on the photo decoded behind it: the FIRST image shows
   cropped until any repaint (tapping another thumb). Owner-reported, twice. */
.sheet[open]{animation:pop .32s var(--ease)}
@keyframes pop{from{opacity:0}to{opacity:1}}
.x{position:absolute; top:12px; right:14px; z-index:5; width:38px; height:38px; border-radius:50%;
  background:rgba(255,255,255,.85); border:1px solid var(--line); color:var(--text); font-size:22px; line-height:1;
  cursor:pointer; transition:background .2s, transform .2s}
.x:hover{background:var(--surface-2); transform:rotate(90deg)}

/* product dialog */
.pd{display:grid; grid-template-columns:1.15fr .85fr; max-height:92vh}
.pd-media{background:var(--bg-2); padding:16px; display:flex; flex-direction:column; gap:12px; min-width:0}
/* The photo (v25, owner's rules, all three): never cropped, no letterbox mat — the rounded
   corners sit on the PHOTO itself — and CAPPED in height so the text below and the
   thumbnail strip stay on screen. Flex centering + viewport-based max-height: no fixed
   aspect ratio, no object-fit, no grid-percentage traps. Ratio always preserved. */
.pd-stage{display:flex; justify-content:center; background:transparent}
.pd-stage img{display:block; max-width:100%; max-height:56vh; width:auto; height:auto;
  border-radius:var(--radius); transition:opacity .28s var(--ease)}
/* Safety net only — with the height cap the strip normally fits without scrolling. */
.pd-media{overflow-y:auto}
@media (max-width:860px){
  .pd{grid-template-columns:1fr; overflow:auto}
  .pd-media{overflow-y:visible}   /* the whole sheet scrolls on the phone, not the column */
  /* smaller cap on the phone so the name, price and text are visible WITHOUT scrolling */
  .pd-stage img{max-height:42vh}
}
.pd-strip{display:flex; gap:8px; overflow-x:auto; padding-bottom:4px; scrollbar-width:thin}
.pd-strip button{flex:none; width:64px; height:64px; border-radius:10px; overflow:hidden; padding:0;
  border:2px solid transparent; background:var(--surface); cursor:pointer; opacity:.65; transition:opacity .2s, border-color .2s}
.pd-strip button.on{opacity:1; border-color:var(--brand)}
.pd-strip button:hover{opacity:1}
.pd-strip img{width:100%; height:100%; object-fit:cover}
.pd-info{padding:clamp(22px,3vw,34px); overflow-y:auto; display:flex; flex-direction:column}
.pd-badge{margin:0 0 10px; color:var(--brand); font-size:11px; letter-spacing:.18em; text-transform:uppercase; font-weight:650}
.pd-info h3{font-size:clamp(1.6rem,2.8vw,2.2rem)}
.pd-price{margin:12px 0 0; font-size:1.35rem; color:var(--brand); font-weight:650}
.pd-head{margin:14px 0 0; color:var(--text); font-size:15px}
.pd-desc{margin:12px 0 0; color:var(--muted); font-size:14.5px; white-space:pre-wrap}
.specs{margin:22px 0 26px; display:grid; gap:0}
.specs div{display:flex; justify-content:space-between; gap:14px; padding:11px 0; border-top:1px solid var(--line); font-size:14px}
.specs dt{color:var(--muted)} .specs dd{margin:0; text-align:right}
.pd-actions{margin-top:auto}
.pd-minor{display:flex; gap:8px; justify-content:center; margin-top:12px}

/* order dialog */
#oform,.done{padding:clamp(24px,4vw,32px)}
#oform h3,.done h3{font-size:1.4rem}
.sub{margin:8px 0 20px; color:var(--muted); font-size:14px}
label{display:block; margin-bottom:14px; font-size:13px; color:var(--muted)}
input,textarea{width:100%; margin-top:6px; background:#FFFDF9; border:1px solid var(--line); color:var(--text);
  border-radius:10px; padding:12px 14px; font:inherit; font-size:15px; transition:border-color .2s}
input:focus,textarea:focus{outline:none; border-color:var(--brand)}
textarea{resize:vertical}
.qty-row input{max-width:110px}
.req{color:var(--brand)}
.err{margin:0 0 12px; color:#C0392B; font-size:13.5px}
.fineprint{margin:14px 0 0; color:var(--muted); font-size:11.5px; text-align:center}
.done{text-align:center}

/* basket sheet */
.basket{padding:clamp(24px,4vw,32px)}
.basket h3{font-size:1.4rem}
/* Each basket line is a small grid: photo left, name + unit price given the full width,
   remove in the corner, and the qty stepper + line total on their OWN row underneath.
   A flex row squeezed the name to a word per line under big phone fonts and let the
   stepper overlap the text (owner's screenshot) — a grid cannot overlap anything. */
.b-item{display:grid; grid-template-columns:52px 1fr auto; column-gap:12px; row-gap:8px;
  align-items:center; padding:12px 0; border-bottom:1px solid var(--line)}
.b-item img{grid-column:1; grid-row:1 / span 2; width:52px; height:52px; object-fit:cover;
  border-radius:10px; background:var(--surface-2)}
.b-mid{grid-column:2; grid-row:1; min-width:0; display:grid; gap:2px}
.b-rm{grid-column:3; grid-row:1; justify-self:end}
.b-qty{grid-column:2; grid-row:2; justify-self:start}
.b-line{grid-column:3; grid-row:2; justify-self:end}
.b-name{font-size:14px; font-weight:600; line-height:1.35}
.b-price{font-size:12px; color:var(--muted)}
.b-line{font-size:13px; font-weight:650; color:var(--brand); white-space:nowrap}
/* the subtotal, said plainly before the order button */
.b-total{display:flex; justify-content:space-between; align-items:baseline; padding:14px 2px 0; font-size:14px; color:var(--muted)}
.b-total strong{font-size:1.15rem; color:var(--text)}
.b-note{margin:6px 0 0; font-size:11.5px; color:var(--muted)}
.b-qty{display:flex; align-items:center; gap:2px}
.b-qty button{width:26px; height:26px; border-radius:50%; border:1px solid var(--line); background:var(--surface);
  color:var(--text); cursor:pointer; font-size:15px; line-height:1; padding:0}
.b-qty button:hover{border-color:var(--brand); color:var(--brand)}
.b-qty span{min-width:26px; text-align:center; font-size:14px; font-weight:600}
.b-rm{background:none; border:none; color:var(--muted); cursor:pointer; font-size:18px; padding:4px}
.b-rm:hover{color:#C0392B}
.bclear{width:100%; justify-content:center; margin-top:10px}
/* THE order button. Big, loud, impossible to miss — this is what the basket is for. */
.order-big{padding:17px 26px; font-size:16.5px; font-weight:700; letter-spacing:.03em;
  text-transform:uppercase; box-shadow:0 14px 34px -12px rgba(232,106,23,.8);
  animation:order-glow 2.8s var(--ease) infinite}
@keyframes order-glow{
  0%,100%{box-shadow:0 14px 34px -12px rgba(232,106,23,.8)}
  50%{box-shadow:0 14px 38px -8px rgba(232,106,23,.95), 0 0 0 6px rgba(232,106,23,.12)}
}
@media (prefers-reduced-motion:reduce){ .order-big{animation:none} }
.tick{width:60px;height:60px;margin:0 auto 16px;border-radius:50%;display:grid;place-items:center;
  background:var(--brand-tint); color:var(--brand); font-size:28px}
.done p{color:var(--muted); margin:8px 0 20px}

/* ───────── Quri — the shop assistant ───────── */
.chat-launch{position:fixed; right:18px; bottom:18px; z-index:60;
  display:flex; align-items:flex-end; gap:10px}
@media (max-width:520px){ .chat-launch{right:12px; bottom:12px} }

/* The invite bubble that greets people before they tap. */
.chat-invite{position:relative; max-width:210px; background:var(--surface); color:var(--text);
  border:1px solid var(--line); border-radius:14px; border-bottom-right-radius:4px;
  padding:10px 12px; cursor:pointer; box-shadow:var(--shadow-md);
  animation:invite .5s var(--ease) .9s both}
.chat-invite strong{display:block; font-size:13px; margin-bottom:2px}
.chat-invite span{display:block; font-size:11.5px; color:var(--muted); line-height:1.4}
.chat-invite:hover{border-color:var(--brand)}
.chat-invite-x{position:absolute; top:-7px; left:-7px; width:20px; height:20px; border-radius:50%;
  background:var(--surface-2); border:1px solid var(--line); color:var(--muted);
  font-size:14px; line-height:1; cursor:pointer; display:grid; place-items:center; padding:0}
.chat-invite-x:hover{color:var(--text)}
@keyframes invite{from{opacity:0; transform:translateY(8px) scale(.94)}to{opacity:1; transform:none}}

.chat-fab{flex:none; width:54px; height:54px; border-radius:50%; position:relative;
  background:var(--brand); color:#fff; border:none; cursor:pointer; display:grid; place-items:center;
  box-shadow:0 14px 32px -10px rgba(232,106,23,.65); transition:transform .25s var(--ease), background .2s;
  animation:fab-bob 4s var(--ease) 2s infinite}
.chat-fab:hover{background:var(--brand-soft); transform:translateY(-2px) scale(1.04); animation-play-state:paused}
.chat-fab-dot{position:absolute; top:11px; right:11px; width:9px; height:9px; border-radius:50%;
  background:#37E381; border:2px solid var(--brand)}
/* A gentle nudge so the eye catches it without it jumping around the page. */
@keyframes fab-bob{0%,88%,100%{transform:none}92%{transform:translateY(-5px)}96%{transform:translateY(-2px)}}

/* An expanding ring, like the button is calling out. */
.chat-halo{position:absolute; inset:0; border-radius:50%; border:2px solid var(--brand);
  animation:halo 4s var(--ease) 2s infinite; pointer-events:none}
@keyframes halo{0%{opacity:.7; transform:scale(1)}45%{opacity:0; transform:scale(1.75)}100%{opacity:0; transform:scale(1.75)}}

/* The lamp switches itself on and off: the glass warms up and the rays flick out. */
.chat-lamp{position:relative; z-index:1}
.chat-lamp .lamp-glass{fill:rgba(255,255,255,.28); animation:lamp-on 4s var(--ease) 2s infinite}
.chat-lamp .lamp-rays{opacity:0; animation:rays-on 4s var(--ease) 2s infinite}
@keyframes lamp-on{0%,55%{fill:rgba(255,255,255,.28)}62%,86%{fill:#FFE9C7}92%,100%{fill:rgba(255,255,255,.28)}}
@keyframes rays-on{0%,57%{opacity:0}64%,84%{opacity:1}90%,100%{opacity:0}}

/* …and a hand waves hello beside it. */
.chat-wave{position:absolute; left:-4px; bottom:-2px; font-size:17px; transform-origin:70% 80%;
  animation:wave 4s var(--ease) 2s infinite; pointer-events:none}
@keyframes wave{
  0%,8%{transform:rotate(0) scale(.9); opacity:0}
  12%{opacity:1}
  16%{transform:rotate(16deg) scale(1)}
  22%{transform:rotate(-12deg) scale(1)}
  28%{transform:rotate(14deg) scale(1)}
  34%{transform:rotate(-8deg) scale(1)}
  40%{transform:rotate(0) scale(1)}
  48%{opacity:1}
  54%,100%{opacity:0; transform:rotate(0) scale(.9)}
}
/* Once someone has opened the chat we stop calling for attention — the lamp just stays lit. */
.chat-launch.calm .chat-fab,
.chat-launch.calm .chat-halo,
.chat-launch.calm .chat-wave,
.chat-launch.calm .lamp-glass,
.chat-launch.calm .lamp-rays{animation:none}
.chat-launch.calm .chat-halo,
.chat-launch.calm .chat-wave{opacity:0}
.chat-launch.calm .lamp-rays{opacity:1}
.chat-launch.calm .lamp-glass{fill:#FFE9C7}

/* Never animate for someone who asked the system to stop motion. */
@media (prefers-reduced-motion:reduce){
  .chat-fab,.chat-halo,.chat-wave,.chat-lamp .lamp-glass,.chat-lamp .lamp-rays,.hero-blob{animation:none}
  .chat-halo,.chat-wave{opacity:0}
  .chat-lamp .lamp-rays{opacity:1}
}

/* A floating panel. `bottom` and `height` are also set from JS against the VISUAL viewport,
   so an open phone keyboard pushes it up instead of burying the conversation. */
.chat{position:fixed; right:18px; bottom:82px; z-index:61;
  width:min(440px, calc(100vw - 28px));
  height:min(640px, calc(100dvh - 130px));
  background:var(--surface); border:1px solid var(--line);
  border-radius:var(--radius-lg); box-shadow:var(--shadow-lg);
  display:flex; flex-direction:column; overflow:hidden; animation:pop .28s var(--ease)}
/* On a phone the chat is the thing you are doing — give it the screen. */
@media (max-width:520px){
  .chat{right:10px; left:10px; bottom:70px; width:auto;
        height:calc(100dvh - 96px)}
}
/* While the keyboard is open every pixel counts — drop the footnote and tighten everything:
   slimmer header, tighter log, a compact composer sitting flush on the keys. */
.chat.kb .chat-foot{display:none}
.chat.kb .chat-hd{padding-top:7px; padding-bottom:7px}
.chat.kb .chat-avatar{width:28px; height:28px}
.chat.kb .chat-log{padding:10px 12px; gap:7px}
.chat.kb .chat-in{padding:7px 8px}
.chat.kb .chat-box{padding:9px 13px; font-size:14px}
.chat.kb .chat-send{width:38px; height:38px}
.chat.kb{border-bottom-left-radius:10px; border-bottom-right-radius:10px}
/* A header that reads like a real concierge: warm gradient, an avatar, a live status line. */
.chat-hd{display:flex; align-items:center; gap:11px; padding:12px 14px;
  background:linear-gradient(135deg, var(--brand) 0%, #F58234 100%); color:#fff;
  border-bottom:1px solid rgba(255,255,255,.18)}
.chat-avatar{flex:none; width:36px; height:36px; border-radius:50%; display:grid; place-items:center;
  background:rgba(255,255,255,.2); border:1px solid rgba(255,255,255,.35)}
.chat-hd strong{display:block; font-size:14.5px; letter-spacing:.02em}
.chat-hd small{display:flex; align-items:center; gap:5px; color:rgba(255,255,255,.85); font-size:11.5px}
.chat-hd .chat-x{color:rgba(255,255,255,.85)} .chat-hd .chat-x:hover{color:#fff}
.chat-live{display:inline-block; width:7px;height:7px;border-radius:50%;background:#7CF5AE;flex:none;
  box-shadow:0 0 0 3px rgba(124,245,174,.25)}
/* the top button's dot sits on dark, so it needs its own halo */
.hdr-chat .chat-live{box-shadow:0 0 0 3px rgba(124,245,174,.2)}
.chat-x{margin-left:auto; background:none; border:none; color:var(--muted); font-size:24px; cursor:pointer; line-height:1}
.chat-x:hover{color:var(--text)}
.chat-log{flex:1; overflow-y:auto; padding:14px; display:flex; flex-direction:column; gap:9px; scrollbar-width:thin; background:var(--bg)}
.bub{max-width:84%; padding:10px 13px; border-radius:14px; font-size:14.5px; line-height:1.5; white-space:pre-wrap; word-wrap:break-word}
.bub.them{background:var(--surface); border:1px solid var(--line); border-bottom-left-radius:5px; align-self:flex-start; box-shadow:var(--shadow-sm)}
.bub.me{background:var(--brand); color:#fff; border-bottom-right-radius:5px; align-self:flex-end}
.bub.sys{align-self:center; background:transparent; color:var(--muted); font-size:12.5px; text-align:center; padding:4px}
.bub.photo{padding:6px; max-width:78%}
.bub.photo img{width:100%; border-radius:9px; display:block}
.photo-cap{display:block; font-size:11px; color:var(--muted); padding:5px 3px 1px}
/* Every message eases in rather than appearing from nowhere. */
.bub{animation:bub-in .22s var(--ease) both}
@keyframes bub-in{from{opacity:0; transform:translateY(6px)}to{opacity:1; transform:none}}

/* Quri thinking / typing, with a word for what it is actually doing. */
.typing{align-self:flex-start; display:flex; align-items:center; gap:8px; padding:10px 13px;
  background:var(--surface); border:1px solid var(--line); border-radius:14px; border-bottom-left-radius:5px;
  animation:bub-in .22s var(--ease) both}
.typing .dots{display:flex; gap:4px}
.typing i{width:6px;height:6px;border-radius:50%;background:var(--muted);animation:blink 1.2s infinite}
.typing i:nth-child(2){animation-delay:.2s} .typing i:nth-child(3){animation-delay:.4s}
.typing-what{font-size:12px; color:var(--muted)}

/* The little block that follows the text as Quri types, like a cursor. */
.bub.them:last-child::after{content:""}

@media (prefers-reduced-motion:reduce){
  .bub,.typing{animation:none}
  .typing i{animation:none; opacity:.6}
}
@keyframes blink{0%,60%,100%{opacity:.25}30%{opacity:1}}
.chat-in{display:flex; gap:8px; padding:10px; border-top:1px solid var(--line); background:#FFFDF9; align-items:flex-end}
/* The composer: an editable div styled as the input it replaced. Grows to three lines, then scrolls. */
.chat-box{flex:1; min-width:0; background:#FFFDF9; border:1px solid var(--line); color:var(--text);
  border-radius:20px; padding:11px 15px; font:inherit; font-size:14.5px; line-height:1.4;
  max-height:76px; overflow-y:auto; word-break:break-word; outline:none; transition:border-color .2s}
.chat-box:focus{border-color:var(--brand)}
/* the placeholder, painted only while the box is empty */
.chat-box:empty::before{content:attr(data-ph); color:var(--muted); pointer-events:none}
.chat-send{flex:none; width:42px; height:42px; border-radius:50%; background:var(--brand); color:#fff;
  border:none; cursor:pointer; display:grid; place-items:center; transition:background .2s}
.chat-send:hover{background:var(--brand-soft)}
.chat-send[disabled]{opacity:.5; cursor:not-allowed}
/* Dimmed while Quri answers. NOT `disabled` — disabling the element under the finger blurs the
   text box and shuts the keyboard, which makes the chat horrible to use on a phone. */
.chat-send.busy{opacity:.5}
.chat-foot{margin:0; padding:0 12px 10px; background:#FFFDF9; color:var(--muted); font-size:10.5px; text-align:center}

/* ── colour options (migration 130, v21) ─────────────────────────────────────
   A multi-colour piece is ordered IN a colour: chips under the price, one must
   be picked before ORDER / basket. .nag shakes the block when they forget.   */
.pd-colors{margin:6px 0 2px}
.pd-colors-label{margin:0 0 6px; font-size:12px; letter-spacing:.04em; text-transform:uppercase; color:var(--muted)}
/* v40 — the choice is JUST THE COLOUR: circles in one horizontal row, no names, no numbers.
   A combination that mixes colours is painted as a conic-gradient (one wedge per part), so
   "red shade + black base" reads in a single dot. The row scrolls sideways rather than wrapping
   into a block, so a piece with a dozen combinations still leaves the photo the room. */
.pd-chips{display:flex; flex-wrap:nowrap; gap:14px; overflow-x:auto; padding:4px 2px 10px;
          scrollbar-width:thin; -webkit-overflow-scrolling:touch}
.pd-chips::-webkit-scrollbar{height:4px}
.pd-chips::-webkit-scrollbar-thumb{background:var(--line, #E4DACB); border-radius:4px}
/* Big enough to actually SEE the colour (and to hit with a thumb): the circle IS the choice,
   so it carries the weight a labelled chip used to. */
.swatch{width:52px; height:52px; flex:none; padding:0; border-radius:50%; cursor:pointer;
        border:2px solid rgba(0,0,0,.14); background:#C9BFB0;
        box-shadow:0 2px 5px rgba(0,0,0,.14); transition:transform .12s ease, box-shadow .12s ease}
.swatch:hover{transform:translateY(-2px) scale(1.05)}
.swatch:focus-visible{outline:2px solid var(--brand, #E86A17); outline-offset:4px}
.swatch.on{border-color:#FFF; box-shadow:0 0 0 3px var(--brand, #E86A17), 0 3px 8px rgba(0,0,0,.20);
           transform:scale(1.08)}
@media (max-width:640px){
  .pd-chips{gap:12px}
  .swatch{width:46px; height:46px}
}
.card-swatches{display:flex; gap:4px; margin-top:6px}
.card-swatch{width:14px; height:14px; border-radius:50%; background:#C9BFB0; border:1px solid rgba(0,0,0,.18)}
.card-swatch-more{font-size:11px; color:var(--muted); line-height:14px}
@keyframes chipNag{0%,100%{transform:translateX(0)} 25%{transform:translateX(-4px)} 75%{transform:translateX(4px)}}
.pd-colors.nag{animation:chipNag .28s ease 2}
.pd-colors.nag .pd-colors-label{color:var(--brand, #E86A17); font-weight:700}

/* ── checkout (v33) ────────────────────────────────────────────────────────
   Four numbered sections — what you bought, how you get it, who you are, what
   you pay — with a fixed header and a footer that keeps PAY on screen while the
   middle scrolls. The old version was one flat stack of inputs and read like it
   had been bolted on. */
.co-dlg{width:min(560px,96vw); display:flex; flex-direction:column; max-height:92vh}
.co-hd{padding:18px 52px 14px 22px; border-bottom:1px solid var(--line,#E4DACB);
       background:var(--surface); flex:0 0 auto}
.co-hd h3{margin:0; font-size:20px; letter-spacing:-.01em}
.co-hd-sub{margin:3px 0 0; font-size:12px; color:var(--muted); line-height:1.45}
.co-body{flex:1 1 auto; overflow-y:auto; padding:4px 22px 8px; -webkit-overflow-scrolling:touch}
.co-ft{flex:0 0 auto; padding:14px 22px 18px; border-top:1px solid var(--line,#E4DACB);
       background:var(--surface)}

.co-sec{padding:16px 0; border-bottom:1px solid var(--line,#E4DACB)}
.co-sec:last-child{border-bottom:0}
.co-sec-t{display:flex; align-items:center; gap:9px; margin:0 0 11px;
          font-size:13px; letter-spacing:.03em; text-transform:uppercase; color:var(--muted); font-weight:700}
.co-step{display:grid; place-items:center; width:21px; height:21px; border-radius:50%;
         background:var(--brand-tint,#FDEEDF); color:var(--brand,#E86A17);
         font-size:11.5px; font-weight:800; flex:0 0 auto}

/* what they are buying */
.co-items{list-style:none; margin:0; padding:0; display:grid; gap:9px}
.co-item{display:flex; align-items:center; gap:11px}
.co-item img{width:46px; height:46px; border-radius:10px; object-fit:cover;
             border:1px solid var(--line,#E4DACB); flex:0 0 auto; background:var(--brand-tint,#FDEEDF)}
.co-item-b{flex:1; min-width:0}
.co-item-n{display:block; font-size:14.5px; font-weight:600; line-height:1.3}
.co-item-s{display:block; font-size:12.5px; color:var(--muted); margin-top:2px}
.co-item-p{font-size:14px; font-weight:650; white-space:nowrap}

.co-modes{display:flex; gap:9px; margin:0 0 11px}
.co-mode{flex:1; padding:12px 11px; border-radius:13px; border:1.5px solid var(--line,#E4DACB);
         background:#fff; color:var(--text); font:inherit; cursor:pointer; text-align:left; transition:.16s}
.co-mode:hover{border-color:var(--brand,#E86A17)}
.co-mode.on{border-color:var(--brand,#E86A17); background:var(--brand-tint,#FDEEDF)}
.co-mode-t{display:block; font-size:14px; font-weight:600}
.co-mode.on .co-mode-t{font-weight:700}
.co-mode-s{display:block; font-size:12px; color:var(--muted); margin-top:2px}
.co-box{margin-top:2px}
.co-note{margin:8px 0 0; font-size:12.5px; color:var(--muted); line-height:1.5}

/* their details — two across where there is room, stacked on a phone */
.co-grid{display:grid; grid-template-columns:1fr 1fr; gap:11px}
@media (max-width:520px){ .co-grid{grid-template-columns:1fr} }
.co-field{min-width:0}
.co-lbl{display:block; margin:0 0 5px; font-size:11.5px; letter-spacing:.04em;
        text-transform:uppercase; color:var(--muted); font-weight:600}
.co-opt{text-transform:none; letter-spacing:0; font-weight:400; opacity:.75}
.co-dlg input[type=text],.co-dlg input[type=tel]{width:100%; padding:11px 13px; border-radius:12px;
        border:1.5px solid var(--line,#E4DACB); background:#fff; font:inherit; font-size:15px; color:var(--text)}
.co-dlg input:focus{outline:2px solid var(--brand,#E86A17); outline-offset:1px}

/* invoice details, folded away so a walk-in is never nagged for a TIN */
.co-biz{margin-top:12px; border:1px solid var(--line,#E4DACB); border-radius:13px; overflow:hidden}
.co-biz summary{padding:11px 14px; cursor:pointer; font-size:13.5px; font-weight:600;
                list-style:none; color:var(--brand,#E86A17)}
.co-biz summary::-webkit-details-marker{display:none}
.co-biz summary::before{content:'+ '; font-weight:800}
.co-biz[open] summary::before{content:'– '}
.co-biz[open] summary{border-bottom:1px solid var(--line,#E4DACB)}
.co-biz>div,.co-biz>p{padding:0 14px}
.co-biz>div{padding-top:12px}
.co-biz>p{padding-bottom:13px}
.co-search{display:flex; gap:8px; align-items:center}
.co-search input{flex:1}
.co-results{margin:6px 0 0; border:1px solid var(--line,#E4DACB); border-radius:12px; overflow:hidden; background:#fff}
.co-res{display:block; width:100%; text-align:left; padding:10px 12px; border:0; background:#fff;
        font:inherit; font-size:13px; color:var(--text); cursor:pointer; border-bottom:1px solid var(--line,#E4DACB)}
.co-res:last-child{border-bottom:0}
.co-res:hover{background:var(--brand-tint,#FDEEDF)}
.co-map{height:230px; margin:10px 0 6px; border-radius:14px; overflow:hidden; border:1px solid var(--line,#E4DACB)}
.co-picked{margin:0; font-size:12.5px; color:var(--muted)}
.co-search{margin-top:2px}
/* the money block sits on a tint so it reads as the conclusion, not another field */
.co-sec-sum .co-sum{margin:0; border:0; padding:13px 15px; border-radius:14px;
                    background:var(--brand-tint,#FDEEDF)}
.co-sum>div{display:flex; justify-content:space-between; gap:12px; padding:4px 0; font-size:14px}
.co-grand{border-top:1px solid rgba(0,0,0,.10); margin-top:7px; padding-top:10px !important;
          font-size:18px !important; font-weight:700; color:var(--brand,#E86A17)}
.co-problem{margin:10px 0 0; padding:10px 12px; border-radius:12px; background:#FDE8E6;
            color:#A3271F; font-size:13.5px}
.co-fine{margin:9px 0 0; font-size:11.5px; color:var(--muted); text-align:center; line-height:1.5}
#coPay[disabled]{opacity:.5; cursor:not-allowed}

/* An image that could not be fetched (even after one retry): show a calm tinted panel rather
   than the browser's broken-file glyph with the alt text spilling across the card. */
img.noimg{
  background:var(--brand-tint,#FDEEDF);
  color:transparent; font-size:0; text-indent:-9999px;
}

/* Start a new conversation at any time — sits beside the close button in Quri's header.
   `.chat-x` puts margin-left:auto on the first of the pair, so the reset must not repeat it
   or the two buttons drift apart. */
.chat-reset{margin-left:auto; display:grid; place-items:center; width:30px; height:30px; padding:0}
.chat-reset + .chat-x{margin-left:0}
.chat-reset svg{display:block}
.fresh-note{margin:0 0 8px; font-size:12.5px; line-height:1.5; color:var(--muted); max-width:34ch}

/* ───────── legal pages (terms / privacy / refunds) ─────────
   Plain, readable documents. A payment-gateway reviewer reads these on a laptop and a
   customer skims them on a phone, so: one column, generous line height, real headings. */
.doc{max-width:760px; margin:0 auto; padding:40px clamp(16px,5vw,28px) 72px}
.doc-back{display:inline-block; margin-bottom:22px; font-size:14px; color:var(--brand)}
.doc-back:hover{text-decoration:underline}
.doc h1{font-size:clamp(28px,5vw,38px); margin:0 0 6px}
.doc-sub{margin:0 0 6px; color:var(--muted); font-size:14.5px}
.doc-upd{margin:0 0 30px; color:var(--muted); font-size:12.5px}
.doc h2{font-size:19px; margin:32px 0 10px; font-family:var(--serif)}
.doc h3{font-size:15.5px; margin:20px 0 6px; font-family:var(--font); font-weight:700}
.doc p,.doc li{font-size:15.5px; line-height:1.7; color:var(--text)}
.doc ul{padding-left:20px; margin:8px 0}
.doc li{margin:5px 0}
.doc strong{font-weight:650}
.doc .callout{background:var(--brand-tint,#FDEEDF); border-radius:14px; padding:14px 16px; margin:18px 0}
.doc .callout p{margin:0; font-size:14.5px}
.doc table{width:100%; border-collapse:collapse; margin:14px 0; font-size:14.5px}
.doc th,.doc td{text-align:left; padding:9px 10px; border-bottom:1px solid var(--line)}
.doc th{font-weight:650; color:var(--muted); font-size:12.5px; text-transform:uppercase; letter-spacing:.04em}
.doc-foot{margin-top:40px; padding-top:20px; border-top:1px solid var(--line); color:var(--muted); font-size:14px}
.ftr-legal{display:flex; gap:16px; flex-wrap:wrap}
.ftr-legal a:hover{color:var(--brand)}
