/* Emerald Vapors storefront. Measurements: docs/research/eseries/04_website.md (today's Ecwid site). Sharp corners
   (sections, tiles); store cards and buttons keep Ecwid's 3 px; the age gate keeps its measured 18 px card and pill buttons. */
:root {
  --c-ann: #F5041E;
  --c-hdr: #212427;
  --c-hdr-text: #FFFFFF;
  --c-bg: #FFFFFF;
  --c-text: #191919;
  --c-accent: #F5041E;
  --c-ink: #121212;
  --c-muted: #5A5E5C;
  --c-muted2: #6F6F6F;
  --c-beige: #F3F0E6;
  --c-soft: #F9F9F9;
  --c-sold: #FD7474;
  --w: 1128px;
  --gut: 24px;
  --font: "DM Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --sys: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color-scheme: light;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--c-bg); color: var(--c-text); font: 400 16px/24px var(--font); overflow-x: hidden; }
html.gated, html.gated body, html.menu-open body { overflow: hidden; }
img { max-width: 100%; }
a { color: inherit; }
button { font: inherit; }
h1, h2, h3 { margin: 0; }
.skip { position: absolute; left: -9999px; top: 0; background: #fff; color: #000; padding: 8px 12px; z-index: 1000; }
.skip:focus { left: 8px; top: 8px; }
:focus-visible { outline: 2px solid var(--c-accent); outline-offset: 2px; }
.noscript { padding: 24px; text-align: center; }
.wrap { width: min(var(--w), 100% - 2 * var(--gut)); margin: 0 auto; }
main { display: block; min-height: 50vh; }
main:focus { outline: none; }
.loading { min-height: 60vh; }

/* Closed banner and announcement */
#closed { background: var(--c-ink); color: #fff; text-align: center; }
.closed-in { padding: 12px 16px; font-weight: 700; font-size: 15px; line-height: 22px; }
#announce { background: var(--c-ann); color: #fff; }
.ann-in { display: flex; align-items: center; justify-content: center; min-height: 48px; padding: 12px 16px; font-size: 14px; line-height: 24px; text-align: center; text-decoration: none; color: inherit; }
a.ann-in:hover { text-decoration: underline; }

/* Header */
#hdr { background: var(--c-hdr); color: var(--c-hdr-text); position: relative; z-index: 50; }
.hdr-in { display: flex; align-items: center; height: 70px; padding: 0 40px; gap: 30px; }
.logo { display: flex; align-items: center; flex: 0 0 auto; height: 50px; text-decoration: none; color: var(--c-hdr-text); }
.logo img { height: 50px; width: auto; display: block; background: transparent; }
.wordmark { font-weight: 700; font-size: 22px; line-height: 28px; letter-spacing: .01em; white-space: nowrap; }
.menu { flex: 1 1 auto; min-width: 0; align-self: stretch; }
.menu ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 30px; height: 100%; }
.menu li { position: relative; display: flex; align-items: center; height: 100%; }
.mi { color: var(--c-hdr-text); text-decoration: none; font-size: 16px; line-height: 24px; white-space: nowrap; }
.mi:hover { text-decoration: underline; text-underline-offset: 4px; }
.dd-btn { background: none; border: 0; color: var(--c-hdr-text); padding: 4px 2px; margin-left: 2px; cursor: pointer; display: flex; }
.chev { transition: transform .15s; }
.has-dd:hover .chev, .has-dd:focus-within .chev, .has-dd.open .chev, .mexp.up .chev { transform: rotate(180deg); }
.dd { display: none; position: absolute; top: calc(100% - 8px); left: -8px; width: 250px; max-height: min(70vh, 520px); overflow-y: auto; background: var(--c-soft); border-radius: 8px; box-shadow: 0 6px 24px rgba(0, 0, 0, .18); padding: 8px; z-index: 60; }
.has-dd:hover .dd, .has-dd:focus-within .dd, .has-dd.open .dd { display: block; }
.dd a { display: block; padding: 10px 8px; min-height: 44px; font-size: 16px; line-height: 24px; color: #0F0F0F; text-decoration: none; }
.dd a:hover, .dd a:focus-visible { background: #E9E9E9; }
.icons { display: flex; align-items: center; gap: 30px; margin-left: auto; flex: 0 0 auto; }
.ic { display: flex; color: var(--c-hdr-text); background: none; border: 0; padding: 0; cursor: pointer; }
.burger { display: none; }
.mnav { background: var(--c-hdr); color: var(--c-hdr-text); position: absolute; left: 0; right: 0; top: 100%; height: calc(100vh - 60px); overflow-y: auto; z-index: 70; }
.mnav ul { list-style: none; margin: 0; padding: 8px 0 24px; }
.mrow-w { display: flex; align-items: center; }
.mrow { display: flex; align-items: center; flex: 1; min-height: 56px; padding: 0 16px; font-size: 20px; line-height: 28px; color: inherit; text-decoration: none; }
.mexp { background: none; border: 0; color: inherit; width: 56px; height: 56px; display: flex; align-items: center; justify-content: center; cursor: pointer; }
.mexp .chev { width: 16px; height: 16px; }
.mkids a { display: block; padding: 12px 16px 12px 32px; font-size: 17px; color: rgba(255, 255, 255, .85); text-decoration: none; }

/* Sections (home) */
.sec { padding: 64px 0; }
.sec-cats { background: var(--c-soft); }
.sec-title { font-size: 40px; line-height: 48px; font-weight: 700; color: #212427; margin-bottom: 22px; }
.sec-title.center { text-align: center; color: #191919; line-height: 55px; margin-bottom: 43px; }
.hgrid { --cols: 5; list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(var(--cols), minmax(0, 1fr)); gap: 42px 1.72%; }
.hcard { display: flex; flex-direction: column; text-decoration: none; color: #191919; }
.himg { display: block; aspect-ratio: 1; overflow: hidden; }
.himg img, .himg .catph { width: 100%; height: 100%; object-fit: cover; display: block; }
.hname { margin-top: 17px; font-size: 16px; line-height: 24px; font-weight: 700; }
.hcount { margin-top: 8px; font-size: 12px; line-height: 16px; font-weight: 700; opacity: .72; }
.hcard:hover .hname { color: var(--c-accent); }
.catph { display: block; width: 100%; height: 100%; background: linear-gradient(132deg, #F4D03F 0%, #16A085 100%); }
.sec-text { background: #F1F0E4; color: #212427; }
.sec-text .rich { max-width: 698px; }
.loc { display: grid; grid-template-columns: minmax(0, 411px) minmax(0, 1fr); gap: 40px; align-items: start; }
.loc-text h3 { font-size: 16px; line-height: 24px; font-weight: 700; margin-top: 22px; color: #191919; }
.loc-text p { margin: 5px 0 0; }
.loc-text a { color: #212427; text-decoration: none; }
.loc-text a:hover { color: var(--c-accent); }
.dirs { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; }
.loc-map { min-width: 0; }
.map { display: block; width: 100%; height: 460px; border: 0; background: #E8ECE6; }
.map-link { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; text-align: center; text-decoration: none; color: #212427; background: repeating-linear-gradient(45deg, #E8ECE6 0 14px, #E1E6DE 14px 28px); }
.map-link span { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: 18px; }
.map-link small { color: var(--c-muted); font-size: 14px; }

/* Rich text (descriptions, text sections, pages) */
.rich { overflow-wrap: anywhere; }
.rich p { margin: 0 0 16px; }
.rich h1, .rich h2, .rich h3, .rich h4 { font-size: 16px; line-height: 24px; font-weight: 700; margin: 20px 0 6px; }
.rich ul, .rich ol { margin: 0 0 16px; padding-left: 22px; }
.rich a { color: var(--c-accent); }
.rich img { height: auto; }
.rich table { display: block; overflow-x: auto; border-collapse: collapse; max-width: 100%; }
.rich td, .rich th { border: 1px solid #ddd; padding: 6px 8px; }
.rich > :first-child { margin-top: 0; }

/* Store pages */
.store { padding: 64px 0 80px; color: var(--c-ink); }
.ptitle { font-size: 40px; line-height: 48px; font-weight: 700; color: var(--c-ink); margin-bottom: 5px; overflow-wrap: anywhere; }
.crumbs { color: var(--c-muted); font-size: 16px; line-height: 24px; }
.crumbs a { color: inherit; text-decoration: none; }
.crumbs a:hover { color: var(--c-accent); }
.crumbs .sep { padding: 0 10px; }
.cat-desc { margin-top: 20px; }
.sortbar { display: flex; justify-content: flex-end; margin: 4px 0 6px; }
.sortby { position: relative; display: inline-flex; align-items: center; gap: 4px; font-size: 14px; line-height: 20px; text-transform: uppercase; color: var(--c-muted); cursor: pointer; letter-spacing: .02em; }
.sortby.on, .sortby:hover { color: var(--c-accent); }
.sortby select { position: absolute; inset: 0; width: 100%; opacity: 0; cursor: pointer; font-size: 16px; }
.empty { margin: 32px 0; color: var(--c-muted); text-align: center; }
.featured { text-align: center; font-size: 40px; line-height: 48px; font-weight: 700; margin: 48px 0 24px; }
.center-box { text-align: center; }
.center-box .ptitle { margin-bottom: 16px; }
.store .center-box { margin-top: 32px; }
.btn-out { display: inline-flex; align-items: center; justify-content: center; height: 40px; padding: 0 24px; border: 1px solid var(--c-ink); border-radius: 3px; color: var(--c-ink); background: #fff; text-decoration: none; margin-top: 22px; }
.btn-out:hover { background: var(--c-ink); color: #fff; }

/* Category tiles: first row 3 large, then 4 per row */
.tiles { list-style: none; margin: 16px -8px 8px; padding: 0; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); }
.tiles li { grid-column: span 3; padding: 8px; }
.tiles li:nth-child(-n+3) { grid-column: span 4; }
.tile { display: flex; flex-direction: column; text-decoration: none; color: var(--c-ink); }
.timg { display: block; aspect-ratio: 1; background: #fff; overflow: hidden; }
.timg img, .timg .catph { width: 100%; height: 100%; object-fit: contain; display: block; }
.tname { margin-top: 5px; text-align: center; font-weight: 700; font-size: 16px; line-height: 24px; }
.tile:hover .tname { color: var(--c-accent); }

/* Product grid and cards */
.pgrid { list-style: none; margin: 8px -8px 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.pgrid.size-small { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.pgrid.size-large { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.pgrid li { padding: 8px; display: flex; }
.pcard { display: flex; flex-direction: column; width: 100%; background: var(--c-beige); border: 1px solid rgba(13, 13, 13, .08); border-radius: 3px; box-shadow: 0 2px 5px rgba(0, 0, 0, .08); text-decoration: none; color: var(--c-ink); transition: box-shadow .15s; }
.pcard:hover { box-shadow: 0 4px 12px rgba(0, 0, 0, .14); }
.pcard:hover .pname { color: var(--c-accent); }
.pimg { position: relative; display: block; aspect-ratio: 1; background: #fff; border-radius: 3px 3px 0 0; overflow: hidden; }
.pimg::after { content: ""; position: absolute; inset: 0; background: rgba(0, 0, 0, .02); pointer-events: none; }
.pimg img { width: 100%; height: 100%; object-fit: cover; display: block; }
.noimg { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; padding: 12px; background: #D0DAF0; color: var(--c-ink); text-align: center; font-weight: 700; overflow-wrap: anywhere; }
.ribbon { position: absolute; top: 11px; right: 0; z-index: 1; background: var(--c-accent); color: #fff; font-size: 14px; line-height: 20px; padding: 1px 7px; text-transform: uppercase; }
.ribbon.sold { background: var(--c-sold); }
.ptext { display: flex; flex-direction: column; align-items: flex-end; text-align: right; padding: 16px 12px 14px; gap: 2px; }
.pname { font-size: 16px; line-height: 24px; font-weight: 700; overflow-wrap: anywhere; }
.pprice { font-size: 16px; line-height: 26.4px; }

/* Pager */
.pager { text-align: center; margin-top: 40px; }
.pager .count { color: var(--c-muted2); margin: 0 0 12px; }
.pages { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 14px; text-transform: uppercase; font-size: 14px; }
.pages a { color: var(--c-accent); text-decoration: none; }
.pages a:hover { text-decoration: underline; }
.pages .cur { font-weight: 700; color: var(--c-ink); }
.pages .gap { color: var(--c-muted2); }

/* Product page */
.p-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.pn { display: flex; flex: 0 0 auto; height: 30px; border: 1px solid rgba(90, 93, 93, .32); border-radius: 34px; overflow: hidden; }
.pn-btn { display: flex; align-items: center; justify-content: center; width: 28px; font-size: 20px; line-height: 1; color: var(--c-ink); text-decoration: none; }
.pn-btn + .pn-btn { border-left: 1px solid rgba(90, 93, 93, .2); }
.pn-btn:hover { color: var(--c-accent); }
.pn-btn.off { color: #C4C4C4; }
.p-cols { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 544px); gap: 32px; margin-top: 32px; }
.gallery { min-width: 0; }
.g-main { position: relative; width: 100%; max-width: 450px; aspect-ratio: 1; margin: 0 auto; background: #fff; overflow: hidden; }
.g-main img { width: 100%; height: 100%; object-fit: contain; display: block; transition: transform .1s; }
.g-main.zoom img { transform: scale(2); cursor: zoom-in; }
.g-main .ribbon { top: 11px; }
.g-thumbs { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 12px; }
.g-th { width: 64px; height: 64px; padding: 0; border: 1px solid #ddd; background: #fff; cursor: pointer; }
.g-th img { width: 100%; height: 100%; object-fit: contain; display: block; }
.g-th.on { border-color: var(--c-ink); }
.p-name { font-size: 28px; line-height: 36px; font-weight: 700; margin-bottom: 20px; color: var(--c-ink); overflow-wrap: anywhere; }
.p-price { font-size: 20px; line-height: 28px; font-weight: 700; margin: 0; }
.stock { margin: 24px 0 12px; font-weight: 700; }
.stock.out { color: var(--c-accent); }
.btn-bag { width: 296px; max-width: 100%; height: 50px; border: 1px solid var(--c-ink); border-radius: 3px; background: var(--c-ink); color: #fff; font-size: 16px; cursor: pointer; }
.btn-bag:disabled { opacity: .45; cursor: not-allowed; }
.soon { margin: 8px 0 0; font-size: 14px; color: var(--c-muted); }
.p-desc { margin-top: 35px; }

/* Search */
.sbox { position: relative; width: min(720px, 100%); margin: 32px auto 16px; }
.sbox input { width: 100%; height: 50px; border: 1px solid #C8C8C8; border-radius: 3px; padding: 0 16px 0 46px; font: inherit; font-size: 16px; color: var(--c-ink); background: #fff; }
.sbox input:focus { border-color: var(--c-ink); outline: none; }
.sicon { position: absolute; left: 14px; top: 13px; color: var(--c-muted); display: flex; pointer-events: none; }

/* Legal pages */
.legal-links { display: flex; flex-wrap: wrap; gap: 8px 32px; margin: 24px 0; }
.legal-links a { color: var(--c-accent); text-decoration: none; }
.legal-links a[aria-current] { text-decoration: underline; }
.legal-body, .page-body { color: var(--c-ink); }
.page-body { margin-top: 24px; }

/* Footer (system font, as today) */
#ftr { background: #212427; color: #F5F5F5; font-family: var(--sys); }
.ftr-in { padding: 30px 16px 48px; text-align: center; font-size: 14px; line-height: 20px; }
.copy { margin: 0; }
.ftr-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 20px; margin-top: 15px; }
.ftr-links a { color: rgba(245, 245, 245, .56); text-decoration: none; }
.ftr-links a:hover { color: #F5F5F5; }

/* Age gate (measured: Arial, 18 px card radius, pill buttons) */
#age { position: fixed; inset: 0; z-index: 999; background: #000; display: flex; align-items: center; justify-content: center; padding: 16px; overflow-y: auto; }
#age[hidden] { display: none; }
.age-card { width: 600px; max-width: 100%; background: #fff; color: #000; border-radius: 18px; padding: 60px 95px 46px; box-shadow: 0 4px 40px rgba(0, 0, 0, .5); text-align: center; font-family: Arial, Helvetica, sans-serif; }
.age-card h2 { font-size: 34px; line-height: 40px; font-weight: 700; margin-bottom: 16px; }
.age-card > p { font-size: 18px; line-height: 24px; margin: 0 0 36px; }
.age-btn { display: flex; align-items: center; justify-content: center; width: 100%; max-width: 410px; height: 50px; margin: 0 auto; border: 1px solid #000; border-radius: 50px; font: 18px Arial, Helvetica, sans-serif; cursor: pointer; text-decoration: none; }
.age-btn.yes { background: #000; color: #fff; }
.age-btn.no { background: #fff; color: #000; margin-top: 16px; }
.age-btn.yes:hover { background: #222; }
.age-btn.no:hover { background: #F2F2F2; }
.age-card .age-foot { font-size: 12px; line-height: 16px; margin: 24px 0 0; }
.age-foot a { color: #000; }

/* Phones and small tablets */
@media (max-width: 768px) {
  :root { --gut: 16px; }
  .hdr-in { height: 60px; padding: 0 16px; gap: 16px; }
  .logo, .logo img { height: 38px; }
  .wordmark { font-size: 18px; }
  .menu, .ic-acct { display: none; }
  .burger { display: flex; }
  .icons { gap: 20px; }
  .sec { padding: 48px 0; }
  .sec-title { font-size: 32px; line-height: 40px; }
  .sec-title.center { line-height: 48.6px; margin-bottom: 28px; }
  .hgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 34px 16px; }
  .loc { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .map { height: 320px; }
  .store { padding: 32px 0 56px; }
  .ptitle, .featured { font-size: 32px; line-height: 40px; }
  .tiles li, .tiles li:nth-child(-n+3) { grid-column: span 6; }
  .pgrid, .pgrid.size-small, .pgrid.size-large { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ptext { padding: 12px 10px; }
  .p-top .pn { display: none; }
  .p-cols { grid-template-columns: minmax(0, 1fr); gap: 20px; margin-top: 20px; }
  .g-main { max-width: none; }
  .p-name { font-size: 24px; line-height: 32px; margin-bottom: 12px; }
  .btn-bag { width: 100%; }
  .age-card { padding: 40px 24px 32px; }
  .age-card h2 { font-size: 28px; line-height: 34px; }
  .age-card > p { margin-bottom: 28px; }
}
@media (min-width: 769px) and (max-width: 1000px) {
  .hdr-in { padding: 0 24px; gap: 20px; }
  .menu ul { gap: 20px; }
  .hgrid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .pgrid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* Phase 2: test bar, bag count, Add to Bag, cart, checkout, order page (buttons at least 44 px for one-handed use) */
#testbar { background: #FFE14D; color: #191919; text-align: center; border-bottom: 1px solid #E0BE00; }
.testbar-in { padding: 10px 16px; font-weight: 700; font-size: 14px; line-height: 20px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; margin: 0; }
.ic-bag { position: relative; }
.bag-n { position: absolute; top: -6px; right: -9px; min-width: 18px; height: 18px; padding: 0 4px; border-radius: 9px; background: var(--c-accent); color: #fff; font-size: 11px; line-height: 18px; font-weight: 700; text-align: center; }
.bag-n[hidden] { display: none; }
.bagbox { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
a.btn-bag { display: inline-flex; align-items: center; justify-content: center; text-decoration: none; }
.btn-bag.more { background: #FFF4F4; color: var(--c-ink); }
.inbag { margin: 0; }
.inbag span { color: var(--c-muted); }
.btn-main { display: inline-flex; align-items: center; justify-content: center; min-height: 50px; width: 100%; max-width: 360px; padding: 0 24px; border: 1px solid var(--c-ink); border-radius: 3px; background: var(--c-ink); color: #fff; font-size: 16px; font-weight: 700; text-decoration: none; cursor: pointer; margin-top: 16px; }
.btn-main:hover { background: #333; }
.btn-main:disabled { opacity: .45; cursor: not-allowed; }
.btn-link { background: none; border: 0; padding: 0 6px; min-height: 44px; min-width: 44px; color: var(--c-accent); font-weight: 700; cursor: pointer; text-decoration: underline; }
.cart, .ck { max-width: 720px; margin: 32px auto 0; }
.cart-lines { list-style: none; margin: 0; padding: 0; }
.cl { display: grid; grid-template-columns: 80px minmax(0, 1fr) 44px; gap: 14px; padding: 16px 0; border-bottom: 1px solid #E0E0E0; align-items: start; }
.cl-img { display: block; width: 80px; height: 80px; background: #fff; }
.cl-img img { width: 80px; height: 80px; object-fit: contain; display: block; }
.cl-img .noimg { width: 80px; height: 80px; padding: 0; }
.cl-name { color: var(--c-ink); text-decoration: none; font-size: 16px; line-height: 24px; overflow-wrap: anywhere; }
.cl-name:hover { color: var(--c-accent); }
.cl-each { margin: 2px 0 8px; font-size: 14px; color: var(--c-muted); }
.cl-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.qty { display: inline-flex; align-items: center; border: 1px solid #C8C8C8; border-radius: 3px; }
.q-btn { width: 44px; height: 44px; border: 0; background: #fff; color: var(--c-accent); font-size: 22px; line-height: 1; cursor: pointer; }
.q-btn:disabled { color: #C4C4C4; cursor: not-allowed; }
.q-n { min-width: 36px; text-align: center; font-weight: 700; }
.cl-total { font-weight: 700; }
.cl-prob { margin: 8px 0 0; color: var(--c-accent); font-weight: 700; font-style: normal; }
.cl-x { width: 44px; height: 44px; border: 0; background: none; color: var(--c-accent); font-size: 28px; line-height: 1; cursor: pointer; }
.cart-sum { display: flex; justify-content: space-between; padding: 16px 0; border-bottom: 1px solid #E0E0E0; font-size: 22px; line-height: 33px; font-weight: 700; }
.cart-sum span:first-child { text-transform: uppercase; }
.cart-bad { margin: 16px 0 0; padding: 12px 14px; border-left: 4px solid var(--c-accent); background: #FFF4F4; color: var(--c-ink); }
.cart-bad a { color: var(--c-accent); font-weight: 700; }
.more-shop { margin-top: 20px; }
.more-shop a { color: var(--c-accent); }
.ck-step { border-bottom: 1px solid #E0E0E0; padding: 18px 0; }
.ck-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 44px; }
.ck-step h2 { display: flex; align-items: center; gap: 12px; font-size: 22px; line-height: 30px; }
.ck-num { display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; border-radius: 50%; background: var(--c-ink); color: #fff; font-size: 15px; flex: 0 0 auto; }
.ck-step.later h2 { color: #8A8A8A; }
.ck-step.later .ck-num { background: #B4B4B4; }
.ck-step.done .ck-num { background: #2E7D32; }
.ck-sum { margin: 8px 0 0 42px; color: var(--c-muted); overflow-wrap: anywhere; }
.ck-form { margin-top: 14px; }
.ck-note { margin: 8px 0; color: var(--c-muted); font-size: 14px; }
.ck-safe { margin-top: 16px; color: var(--c-muted); font-size: 14px; }
.f { margin: 0 0 14px; }
.f label { display: block; font-weight: 700; margin-bottom: 4px; }
.opt { font-weight: 400; color: var(--c-muted); }
.f input, .f textarea { width: 100%; min-height: 50px; border: 1px solid #C8C8C8; border-radius: 3px; padding: 10px 14px; font: inherit; font-size: 16px; color: var(--c-ink); background: #fff; }
.f textarea { min-height: 90px; resize: vertical; }
.f input:focus, .f textarea:focus { border-color: var(--c-ink); outline: none; box-shadow: 0 0 0 2px rgba(18, 18, 18, .15); }
.f.bad input, .f.bad textarea { border-color: var(--c-accent); }
.f-err { margin: 6px 0 0; color: #C40318; font-weight: 700; font-size: 14px; }
.f-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 160px); gap: 12px; }
.meths { border: 0; margin: 0; padding: 0; min-width: 0; }
.meth { display: flex; gap: 12px; align-items: flex-start; padding: 14px; min-height: 56px; border: 1px solid #C8C8C8; border-radius: 3px; margin-bottom: 10px; cursor: pointer; }
.meth.on { border-color: var(--c-ink); box-shadow: inset 0 0 0 1px var(--c-ink); }
.meth.off { opacity: .55; cursor: not-allowed; }
.meth input { width: 22px; height: 22px; margin: 1px 0 0; flex: 0 0 auto; accent-color: var(--c-ink); }
.m-txt { display: flex; flex-direction: column; gap: 4px; min-width: 0; flex: 1; }
.m-top { display: flex; justify-content: space-between; gap: 12px; }
.m-name { font-weight: 700; overflow-wrap: anywhere; }
.m-fee { font-weight: 700; white-space: nowrap; }
.m-desc, .m-min { font-size: 14px; color: var(--c-muted); overflow-wrap: anywhere; }
.m-min { color: #C40318; }
.m-pick { margin: -4px 0 12px; padding: 12px 14px; background: var(--c-soft); border-left: 3px solid var(--c-ink); font-size: 14px; overflow-wrap: anywhere; }
.ck-addr h3 { font-size: 18px; margin: 14px 0 10px; }
.days, .slots { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.day, .slot { min-height: 44px; padding: 0 14px; border: 1px solid #C8C8C8; border-radius: 3px; background: #fff; color: var(--c-ink); font-size: 15px; cursor: pointer; }
.day.on, .slot.on { background: var(--c-ink); border-color: var(--c-ink); color: #fff; }
.rv-lines { list-style: none; margin: 0; padding: 0; }
.rv-lines li { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px solid #EEE; }
.rv-n { min-width: 0; overflow-wrap: anywhere; }
.totals { margin: 12px 0; }
.totals div { display: flex; justify-content: space-between; padding: 4px 0; }
.totals dt, .totals dd { margin: 0; }
.totals .grand { font-size: 20px; font-weight: 700; border-top: 1px solid #E0E0E0; padding-top: 10px; margin-top: 6px; }
.tick { display: flex; gap: 12px; align-items: flex-start; min-height: 44px; padding: 10px 0; cursor: pointer; }
.tick input { width: 24px; height: 24px; margin: 0; flex: 0 0 auto; accent-color: var(--c-ink); }
.tick.bad span { color: #C40318; }
.tick a { color: var(--c-accent); }
.hp { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.thanks { margin: 24px 0; padding: 16px 18px; background: #EEF7EE; border-left: 4px solid #2E7D32; }
.thanks h2 { font-size: 22px; line-height: 30px; margin-bottom: 4px; }
.thanks p { margin: 0; overflow-wrap: anywhere; }
.paybox { margin: 24px 0; padding: 16px 18px; background: #F4F7FB; border-left: 4px solid #1F5FA8; }
.paybox.bad { background: #FFF4F4; border-left-color: var(--c-accent); }
.paybox h2 { font-size: 22px; line-height: 30px; margin: 0 0 4px; overflow-wrap: anywhere; }
.paybox p { margin: 0; overflow-wrap: anywhere; }
.paybox .btn-main { margin-top: 14px; }
.paybox .f-err[hidden] { display: none; }
.paybox .spin { display: inline-block; width: 22px; height: 22px; margin-top: 10px; border: 3px solid #C9D6E6; border-top-color: #1F5FA8; border-radius: 50%; animation: payspin 1s linear infinite; }
@keyframes payspin { to { transform: rotate(360deg); } }
.pay-line { margin: 4px 0; font-weight: 700; overflow-wrap: anywhere; }
.pay-line.ok { color: #2E7D32; }
.ord-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 20px 0 6px; }
.chip { display: inline-block; padding: 3px 10px; border-radius: 3px; background: var(--c-soft); border: 1px solid #DDD; font-size: 14px; font-weight: 700; }
.chip.test { background: #FFE14D; border-color: #E0BE00; }
.chip:empty { display: none; }
.ord-date { color: var(--c-muted); margin: 0 0 16px; }
.ord-cols { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 340px); gap: 40px; }
.ord-where h3 { font-size: 16px; margin: 0 0 4px; }
.ord-where h3 ~ h3 { margin-top: 16px; }
.ord-where p { margin: 0 0 6px; overflow-wrap: anywhere; }
.ord-where .age-note { margin-top: 16px; font-size: 14px; color: var(--c-muted); }
@media (max-width: 768px) {
  .cl { grid-template-columns: 64px minmax(0, 1fr) 44px; gap: 10px; }
  .cl-img, .cl-img img, .cl-img .noimg { width: 64px; height: 64px; }
  .cart-sum { font-size: 20px; }
  .btn-main { max-width: none; }
  .f-row { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .ord-cols { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .ck-sum { margin-left: 0; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } .paybox .spin { animation: none; } }
