/* Red White Mobile — shop layer.
   Adds what the WordPress build needs on top of the approved design: the
   two chromes (desktop site / phone app), product and brand pages, and the
   display guards for a catalogue that ships as-is. */

/* ================================================================
   Which chrome shows

   One markup, two experiences. The switch is CSS only: no device sniffing
   to get wrong, and no second HTML variant for a page cache to hand to the
   wrong visitor.
   ================================================================ */

.mob-only { display: none; }

@media (max-width: 767px) {
  .desk-only { display: none !important; }
  .mob-only  { display: block; }
  body { padding-bottom: calc(64px + env(safe-area-inset-bottom)); }
}

/* ---------------- app chrome: top bar ---------------- */

.appbar { padding: 12px 16px 4px; background: var(--rwm-white); position: sticky; top: 0; z-index: 40; }
.appbar .row { display: flex; align-items: center; gap: 12px; }
.appbar .hello {
  font-family: Outfit, sans-serif; font-size: 19px; font-weight: 800;
  letter-spacing: -.02em; color: var(--rwm-black);
}
.appbar .hello span { color: var(--rwm-red); }
.appbar .sub { font-size: 11.5px; color: var(--rwm-muted); margin-top: 1px; }
.appbar .cart {
  margin-left: auto; width: 40px; height: 40px; border-radius: 50%;
  background: var(--rwm-red); color: #fff; display: grid; place-items: center;
  flex: none; text-decoration: none; box-shadow: var(--sh-red);
}
.searchpill {
  margin: 12px 0 0; display: flex; align-items: center; gap: 9px;
  background: var(--rwm-paper); border-radius: var(--pill); padding: 11px 15px;
  color: var(--rwm-muted);
}
.searchpill input {
  border: 0; background: none; outline: none; width: 100%;
  font-size: 14px; color: var(--rwm-ink);
}

/* ---------------- app chrome: tab bar ---------------- */

/* No `display` here on purpose. .mob-only sets display:none and these rules
   come after it at equal specificity, so declaring display:grid at this point
   would show the tab bar on desktop too -- the same source-order trap that once
   left a sticky rail floating over the page. The phone breakpoint below owns it. */
.tabbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
  height: calc(64px + env(safe-area-inset-bottom));
  padding-bottom: env(safe-area-inset-bottom);
  background: rgba(255, 255, 255, .96);
  backdrop-filter: blur(14px);
  border-top: 1px solid var(--rwm-line);
  grid-template-columns: repeat(5, 1fr);
}
.tabbar a {
  display: grid; place-items: center; align-content: center; gap: 3px;
  min-width: 0; text-decoration: none; color: var(--rwm-muted);
  font-size: 10px; font-weight: 600;
}
.tabbar a[aria-current="page"] { color: var(--rwm-red); }
.tabbar svg { display: block; }

/* On phones the rails run to the screen edge, the way a shelf does in an app. */
@media (max-width: 767px) {
  .tabbar { display: grid; }
  .wrap { width: 100%; padding: 0 16px; }
  .rail-wrap { margin: 0 -16px; }
  .rail { padding: 2px 16px 10px; grid-auto-columns: minmax(158px, 1fr) !important; }
  .rail-nav { display: none; }          /* swipe, not arrows */
  .why { margin-top: 40px; }
  .why-grid, .needs { grid-template-columns: repeat(2, 1fr) !important; }
}

/* ================================================================
   Display guards

   The catalogue is lifted from production untouched: 709 products priced
   $0, 3,099 out of stock. Handled here at render time so nothing looks
   broken and their data is never edited.
   ================================================================ */

/* ---------------- knocking out image backgrounds ----------------

   3,467 of the 4,019 product photos are JPEGs, which cannot carry
   transparency, so every one arrives with a white rectangle baked in. On the
   grey art panels that reads as a white box floating inside a grey box.

   multiply blending solves it without touching a single source file: white
   multiplied by the panel colour is the panel colour, so the box disappears,
   while the product itself darkens only imperceptibly against a near-white
   ground. Already-transparent PNGs are unaffected.

   The ceiling: a photo shot on a *dark* background would turn into a dark
   blob. None seen in this catalogue, but that is the failure mode if one
   appears. The real fix at launch is knocking the backgrounds out properly
   when the shop's own photography is sideloaded. */
.card .shot img,
.p-media img,
.hero-visual img {
  mix-blend-mode: multiply;
  /* The drop shadow has to go with it. A filter creates its own stacking
     context, and an element in its own stacking context cannot blend with the
     parent behind it -- so leaving the shadow in place silently cancels the
     blend and the white box comes straight back. It would have been a shadow
     cast by a white rectangle anyway. */
  filter: none;
}

/* Contain the blend to its own panel. Without isolation the image would blend
   with whatever is painted behind the card as well.

   .hero-visual is deliberately NOT in this list. It paints no background of its
   own -- the panel colour sits on .hero-card behind it -- so isolating it gave
   the image nothing to blend into and the white box survived on the hero alone.
   Only isolate a wrapper that actually paints something. */
.card .shot,
.p-media {
  isolation: isolate;
}

/* The hero: moving the glow instead of stacking above it.
   main.css puts the red glow on .hero-card::after and lifts .hero-visual over it
   with z-index:1 -- and that z-index makes the visual a stacking context, so the
   image could only blend with the visual itself and the white box survived.
   Painting the same glow from ::before instead puts it before the card's
   children in paint order, so the phone sits above it with no z-index at all,
   and the image blends straight through to the card and the glow behind it. */
.hero-card::after { display: none; }
.hero-card::before {
  content: ""; position: absolute; right: -120px; top: -120px;
  width: 420px; height: 420px; border-radius: 50%;
  background: radial-gradient(circle, rgba(225, 29, 46, .13), transparent 62%);
}
.hero-visual { z-index: auto; }

.price-ask, .card .now.ask {
  font-family: Outfit, sans-serif; font-weight: 700;
  font-size: 16px; color: var(--rwm-muted); letter-spacing: -.01em;
}
.card .shot .noimg {
  width: 100%; height: 120px; border-radius: var(--r-md);
  background: repeating-linear-gradient(45deg, var(--rwm-paper) 0 10px, #eceef1 10px 20px);
}
.card[data-hidden] { display: none; }
.rail-empty {
  font-size: 14px; color: var(--rwm-muted);
  padding: 26px 4px; margin: 0;
}

/* ================================================================
   Product page
   ================================================================ */

.p-wrap { display: grid; grid-template-columns: 1.05fr 1fr; gap: 42px; align-items: start; }
@media (max-width: 900px) { .p-wrap { grid-template-columns: 1fr; gap: 26px; } }

.p-media {
  background: var(--rwm-paper); border-radius: var(--r-xl);
  padding: 34px; display: grid; place-items: center; position: relative;
  min-height: 320px;
}
/* No drop-shadow here. It would create a stacking context and cancel the
   multiply blend set above -- and this rule sits later in the file at equal
   specificity, so it would win and quietly bring the white box back. */
.p-media img { max-width: 82%; max-height: 380px; width: auto; }
.p-media .rosette { position: absolute; top: 16px; left: 16px; width: 68px; height: 68px; transform: none; }

.p-brand {
  font-size: 11px; font-weight: 700; letter-spacing: .12em;
  text-transform: uppercase; color: var(--rwm-red); text-decoration: none;
}
.p-title { font-family: Outfit, sans-serif; font-size: clamp(25px, 3.4vw, 36px); line-height: 1.1; letter-spacing: -.03em; margin: 8px 0 12px; }
.p-price { display: flex; align-items: baseline; gap: 12px; margin: 0 0 6px; }
.p-price .now { font-family: Outfit, sans-serif; font-size: 34px; font-weight: 800; color: var(--rwm-red); letter-spacing: -.03em; }
.p-price .was { font-size: 15px; color: var(--rwm-muted); text-decoration: line-through; }
.p-stock { font-size: 13.5px; font-weight: 600; color: var(--rwm-good); margin-bottom: 22px; }
/* Warranty sits with the stock line: both answer "what do I actually get". */
.p-highlights { margin: 10px 0 14px; padding-left: 18px; font-size: 14px; line-height: 1.5; }
.p-highlights li { margin: 2px 0; }
.p-warranty { display: flex; align-items: center; gap: 8px; font-size: 13.5px; font-weight: 600;
  color: var(--rwm-ink); margin: -14px 0 22px; }
.p-warranty svg { flex: none; color: var(--rwm-red); }
.p-stock.out { color: var(--rwm-warn); }

.p-group { margin-bottom: 20px; }
.p-group .cfg-label { font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--rwm-muted); display: block; margin-bottom: 9px; }
.p-opts { display: flex; flex-wrap: wrap; gap: 8px; }
.p-opt {
  border: 1.5px solid var(--rwm-line); background: #fff; border-radius: var(--pill);
  padding: 9px 16px; font-size: 13.5px; font-weight: 600; text-decoration: none;
  color: var(--rwm-ink); transition: border-color .16s var(--ease), color .16s var(--ease);
  display: inline-flex; align-items: center; gap: 8px;
}
.p-opt:hover { border-color: var(--rwm-black); }
.p-opt[aria-current="true"] { background: var(--rwm-black); border-color: var(--rwm-black); color: #fff; }
.p-opt .px { font-size: 12px; opacity: .65; font-variant-numeric: tabular-nums; }
.p-opt.soldout { opacity: .5; }
/* Battery tiers: a radio list; the checked one is the tier Add to cart sells. */
.p-tier { cursor: pointer; display: flex; align-items: center; gap: 10px; width: 100%; justify-content: flex-start; }
.p-tier input { accent-color: var(--rwm-red); margin: 0; }
.p-tier .t-label { flex: 1; font-weight: 600; }
.p-tier .t-col { font-weight: 400; opacity: .7; }
.p-tier:has(input:checked) { border-color: var(--rwm-red); box-shadow: 0 0 0 1px var(--rwm-red) inset; }
.p-tier.soldout { cursor: not-allowed; }
.p-price .from { font-size: 14px; font-weight: 600; color: var(--rwm-muted); }

.p-cta { display: flex; gap: 10px; flex-wrap: wrap; margin: 26px 0 18px; }
.p-cta .pill-btn.solid { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; }
.p-note { font-size: 12.5px; color: var(--rwm-muted); line-height: 1.6; margin: 0; }

.p-specs { margin-top: 40px; }
.p-specs h2 { font-family: Outfit, sans-serif; font-size: 20px; margin: 0 0 14px; letter-spacing: -.02em; }
.p-desc { font-size: 14.5px; line-height: 1.75; color: var(--rwm-ink); }
.p-desc img { border-radius: var(--r-md); margin: 12px 0; }
.p-desc table, .p-specs table { width: 100%; border-collapse: collapse; font-size: 13.5px; display: block; overflow-x: auto; }  /* scroll in place, never widen the page */
.p-desc td, .p-desc th { border-bottom: 1px solid var(--rwm-line); padding: 9px 10px; text-align: left; }

/* An 82KB pasted spec sheet would otherwise be the whole page. */
.p-desc.clamped { max-height: 340px; overflow: hidden; position: relative; }
.p-desc.clamped::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 120px;
  background: linear-gradient(to bottom, rgba(255,255,255,0), #fff);
}
.p-more { margin-top: 12px; }

/* ================================================================
   Archive / brand pages
   ================================================================ */

.arch-head { padding: 34px 0 8px; }
.arch-head .eyebrow { font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--rwm-red); }
.arch-head h1 { font-family: Outfit, sans-serif; font-size: clamp(28px, 4vw, 44px); letter-spacing: -.03em; margin: 8px 0 10px; line-height: 1.05; }
.arch-head p { color: var(--rwm-muted); font-size: 15px; margin: 0; max-width: 60ch; line-height: 1.6; }

.arch-tools { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin: 22px 0 26px; }

.grid-products {
  display: grid; gap: 16px;
  grid-template-columns: repeat(auto-fill, minmax(212px, 1fr));
}
@media (max-width: 640px) { .grid-products { grid-template-columns: repeat(2, 1fr); gap: 12px; } }

.pagination { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; margin: 40px 0 10px; }
.pagination .page-numbers {
  border: 1.5px solid var(--rwm-line); border-radius: var(--pill);
  padding: 9px 16px; font-size: 14px; font-weight: 600; text-decoration: none;
}
.pagination .page-numbers.current { background: var(--rwm-red); border-color: var(--rwm-red); color: #fff; }

.brand-index { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); }
.brand-tile {
  background: #fff; border: 1.5px solid var(--rwm-line); border-radius: var(--r-lg);
  padding: 22px; text-decoration: none; display: grid; gap: 4px;
  transition: border-color .16s var(--ease), transform .16s var(--ease);
}
.brand-tile:hover { border-color: var(--rwm-red); transform: translateY(-3px); }
.brand-tile .bn { font-family: Outfit, sans-serif; font-size: 20px; font-weight: 800; letter-spacing: -.02em; }
.brand-tile .bc { font-size: 13px; color: var(--rwm-muted); }

/* Content pages and posts */
.page-body { max-width: 74ch; font-size: 16px; line-height: 1.75; }
.page-body h2 { font-family: Outfit, sans-serif; letter-spacing: -.02em; margin-top: 34px; }
.page-body img { border-radius: var(--r-md); }

/* ---------------- install prompt ----------------
   Sits above the tab bar rather than over the content, and only on phones.
   Dismissing it is remembered, because a banner that returns on every page
   view is an advert, not an offer. */
.pwa-install {
  position: fixed; left: 12px; right: 12px;
  bottom: calc(72px + env(safe-area-inset-bottom));
  z-index: 70;
  align-items: center; gap: 12px;
  background: var(--rwm-black); color: #fff;
  border-radius: 16px; padding: 12px 14px;
  box-shadow: 0 12px 32px rgba(22, 23, 26, .32);
}

/* Two rules that have to sit here, after the block above, and not inside it.
   A plain `display: flex` on .pwa-install would beat both .mob-only's
   display:none AND the browser's own [hidden] rule, so the bar would show on
   desktop and refuse to stay hidden. The phone breakpoint grants it a display,
   and [hidden] takes it away again whenever the script hides it. */
@media (max-width: 767px) {
  /* right: clears the chat mascot (65px wide at right:12px). It stood on the
     bar's close cross, so the bar could not be dismissed on iPhone. */
  .pwa-install { display: flex; right: 88px; }
}
.pwa-install[hidden] { display: none !important; }
.pwa-install .pwa-ico {
  width: 34px; height: 34px; border-radius: 50%; flex: none;
  background: var(--rwm-red); display: grid; place-items: center;
}
.pwa-install .pwa-copy { min-width: 0; display: grid; line-height: 1.35; }
.pwa-install .pwa-copy b { font-size: 13px; font-weight: 700; }
.pwa-install .pwa-copy span { font-size: 11.5px; color: rgba(255, 255, 255, .68); }
.pwa-install #pwaGo {
  flex: none; background: var(--rwm-red); color: #fff;
  border-radius: 999px; padding: 9px 16px; font-size: 13px; font-weight: 700;
}
.pwa-install #pwaNo {
  flex: none; color: rgba(255, 255, 255, .55); font-size: 20px;
  line-height: 1; padding: 4px 6px;
}

/* ================================================================
   Imported articles

   200 posts lifted from the live site, so the markup inside them was written
   for Flatsome and carries its classes, inline widths and float layouts. These
   rules bring that content back under the theme's control rather than trying
   to clean 200 articles by hand.
   ================================================================ */

.post-lead { margin: 0 0 30px; }
.post-lead img {
  width: 100%; height: auto; border-radius: var(--r-lg);
  background: var(--rwm-paper);
}

.post-body { max-width: 74ch; }
.post-body > * { max-width: 100%; }

/* Inherited layout attributes. Imported markup sets pixel widths and floats
   that were sized for a different grid and overflow this one. */
.post-body img,
.post-body iframe,
.post-body video {
  max-width: 100%; height: auto; width: auto;
  float: none !important; margin: 22px 0; border-radius: var(--r-md);
}
.post-body [style*="width"] { max-width: 100% !important; }

.post-body h2 {
  font-family: Outfit, sans-serif; font-size: 25px; font-weight: 700;
  letter-spacing: -.025em; line-height: 1.2; margin: 40px 0 12px;
}
/* An <h1> in a theme-drawn page's own copy, demoted to <h2> (the hero holds the
   page's one <h1>): drawn exactly as the browser drew that <h1>. */
.post-body h2.h1-copy {
  font-family: Outfit, Inter, system-ui, sans-serif; font-size: 2em; font-weight: 700;
  letter-spacing: -.025em; line-height: inherit; margin: .67em 0;
}
.post-body h3 {
  font-family: Outfit, sans-serif; font-size: 20px; font-weight: 700;
  letter-spacing: -.02em; margin: 30px 0 10px;
}
.post-body p { margin: 0 0 18px; }
.post-body ul, .post-body ol { margin: 0 0 18px; padding-left: 22px; line-height: 1.75; }
.post-body li { margin-bottom: 6px; }
.post-body a { color: var(--rwm-red); text-underline-offset: 3px; }
.post-body blockquote {
  margin: 26px 0; padding: 4px 0 4px 20px;
  border-left: 3px solid var(--rwm-red); color: var(--rwm-muted); font-style: italic;
}

/* Spec tables are the reason most of these articles are long. They must scroll
   inside their own box, never widen the page. */
.post-body table {
  width: 100%; border-collapse: collapse; font-size: 14.5px; margin: 22px 0;
  display: block; overflow-x: auto; white-space: nowrap;
}
.post-body th, .post-body td {
  border-bottom: 1px solid var(--rwm-line); padding: 10px 12px; text-align: left;
}
.post-body th { font-weight: 700; background: var(--rwm-paper); }
/* Phones (finding #15): tighter cells, and the row label stays put while the figures scroll. */
@media (max-width: 640px) {
  .post-body table { font-size: 13.5px; -webkit-overflow-scrolling: touch; }
  .post-body th, .post-body td { padding: 8px 10px; }
  .post-body tr > :first-child { position: sticky; left: 0; background: #fff; box-shadow: 1px 0 0 var(--rwm-line); z-index: 1; }
  .post-body tr > th:first-child { background: var(--rwm-paper); }
}

/* Repair pages: the litemobile-style dropdown. Intro copy stays open above; each
   service section collapses into a clickable row that opens to its price table. */
.repair-acc { margin: 26px 0 8px; border-top: 1px solid var(--rwm-line); }
.repair-acc details { border-bottom: 1px solid var(--rwm-line); }
.repair-acc summary {
  list-style: none; cursor: pointer; padding: 16px 44px 16px 4px; position: relative;
  font-family: Outfit, sans-serif; font-size: 17px; font-weight: 700;
  letter-spacing: -.01em; color: var(--rwm-ink);
}
.repair-acc summary::-webkit-details-marker { display: none; }
.repair-acc summary::after {
  content: "+"; position: absolute; right: 12px; top: 50%; transform: translateY(-50%);
  font-size: 22px; font-weight: 400; line-height: 1; color: var(--rwm-red);
}
.repair-acc details[open] > summary::after { content: "\2212"; }        /* minus */
.repair-acc details[open] > summary { color: var(--rwm-red); }
.repair-acc summary:hover { color: var(--rwm-red); }
.repair-acc details > *:not(summary) { margin-left: 4px; margin-right: 4px; }
.repair-acc details > *:last-child { margin-bottom: 20px; }

/* FAQ page (/faq/): the imported Q&A as dropdowns, held to a readable measure. */
.faq-page { max-width: 860px; }
.faq-intro { color: var(--rwm-muted); font-size: 15.5px; line-height: 1.6; margin-top: 12px; }
.faq-intro p { margin: 0 0 10px; }
.faq-a { font-size: 15px; line-height: 1.62; color: var(--rwm-ink); }
.faq-a p { margin: 0 0 10px; }
.faq-a a { color: var(--rwm-red); }
.faq-cta { margin-top: 34px; padding-top: 24px; border-top: 1px solid var(--rwm-line); }
.faq-cta p { font-size: 15px; color: var(--rwm-muted); margin: 0 0 14px; }

/* Repair page, litemobile layout: red hero band, price-dropdown grid, CTA. */
.repair-hero {
  background: linear-gradient(135deg, var(--rwm-red), var(--rwm-red-deep));
  color: #fff; padding: 52px 0 46px;
}
.repair-hero .eyebrow { color: rgba(255,255,255,.82); }
.repair-hero h1 {
  color: #fff; font-family: Outfit, sans-serif; font-weight: 800;
  font-size: clamp(28px, 4.2vw, 46px); letter-spacing: -.02em; line-height: 1.08;
  margin: .32em 0 .34em; text-wrap: balance;
}
.repair-hero p { color: rgba(255,255,255,.92); max-width: 60ch; font-size: 16px; line-height: 1.6; margin: 0 0 22px; }
.repair-hero .pill-btn.solid { background: #fff; color: var(--rwm-red); }
.repair-wrap { padding-top: 34px; }
/* Owns its own vertical rhythm, so every section heading sits the same distance
   from whatever block precedes it instead of being nudged per call site. */
.repair-h2 { font-family: Outfit, sans-serif; font-weight: 800; font-size: 24px; letter-spacing: -.02em; margin: 34px 0 6px; }
.repair-wrap > .repair-h2:first-child { margin-top: 0; }

.price-drops {
  display: grid; grid-template-columns: 1fr 1fr; gap: 12px 22px;
  align-items: start; margin: 8px 0 34px;
}
@media (max-width: 760px) { .price-drops { grid-template-columns: 1fr; } }
.price-drops details { border: 1px solid var(--rwm-line); border-radius: 12px; overflow: hidden; background: var(--rwm-white); }
.price-drops summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between;
  gap: 12px; padding: 14px 16px; background: var(--rwm-paper);
  font-family: Outfit, sans-serif; font-weight: 700; font-size: 15px; color: var(--rwm-ink);
}
.price-drops summary::-webkit-details-marker { display: none; }
.price-drops summary::after {
  content: "+"; font-size: 20px; font-weight: 400; color: var(--rwm-red); margin-left: auto;
}
.price-drops .rng { font-size: 13px; font-weight: 600; color: var(--rwm-muted); }
.price-drops details[open] > summary { background: var(--rwm-red); color: #fff; }
.price-drops details[open] > summary::after { content: "\2212"; color: #fff; }
.price-drops details[open] > summary .rng { color: rgba(255,255,255,.85); }
.price-drops table { width: 100%; border-collapse: collapse; font-size: 14px; }
.price-drops td { padding: 9px 16px; border-top: 1px solid var(--rwm-line); }
.price-drops td.p { text-align: right; font-weight: 700; white-space: nowrap; }

.repair-cta {
  display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap;
  margin: 34px 0 56px; padding: 22px 26px; border-radius: 16px;
  background: var(--rwm-red-wash); border: 1px solid var(--rwm-line);
}
.repair-cta .rc-text b { display: block; font-family: Outfit, sans-serif; font-weight: 800; font-size: 19px; letter-spacing: -.01em; }
.repair-cta .rc-text span { color: var(--rwm-muted); }

/* ---- Repairs: brand-centric nav + hub grid ---- */
.repair-brands { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 24px; }
.repair-brands .rb {
  font-family: Outfit, sans-serif; font-weight: 600; font-size: 13.5px;
  padding: 7px 14px; border: 1px solid var(--rwm-line); border-radius: 20px;
  color: var(--rwm-ink); text-decoration: none; background: var(--rwm-white);
  transition: border-color .15s ease, color .15s ease;
}
.repair-brands .rb:hover { border-color: var(--rwm-red); color: var(--rwm-red); }
.repair-brands .rb.is-cur { background: var(--rwm-red); border-color: var(--rwm-red); color: #fff; }
.repair-brand-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin: 6px 0 30px; }
@media (max-width: 760px) { .repair-brand-grid { grid-template-columns: repeat(2, 1fr); } }
.rbcard {
  display: flex; flex-direction: column; gap: 10px; justify-content: space-between;
  padding: 18px; border: 1px solid var(--rwm-line); border-radius: 14px;
  background: var(--rwm-white); text-decoration: none; min-height: 92px;
  transition: border-color .15s ease, transform .15s ease;
}
.rbcard:hover { border-color: var(--rwm-red); transform: translateY(-2px); }
.rbcard .rbname { font-family: Outfit, sans-serif; font-weight: 700; font-size: 16px; letter-spacing: -.01em; color: var(--rwm-ink); }
.rbcard .rbgo { display: inline-flex; align-items: center; gap: 5px; font-size: 13px; font-weight: 600; color: var(--rwm-red); }
.rbcard .rbgo svg { flex: 0 0 auto; }

/* ---- how-it-works step cards (trade-in + reusable) ---- */
.flow { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 0 0 8px; }
.flow .step { border: 1px solid var(--rwm-line); border-radius: 14px; padding: 16px 18px; background: var(--rwm-white); }
.flow .step .s { font-family: Outfit, sans-serif; font-weight: 800; font-size: 13px; color: var(--rwm-red); letter-spacing: .02em; }
.flow .step .st { font-family: Outfit, sans-serif; font-weight: 700; font-size: 15px; letter-spacing: -.01em; margin: 5px 0 4px; }
.flow .step .sd { font-size: 13px; color: var(--rwm-muted); line-height: 1.5; }
@media (max-width: 640px) { .flow { grid-template-columns: 1fr; } }

/* ---- Trade-in page: how-it-works + searchable buyback table ---- */
.ti-flow { margin-top: 26px; }
.ti-table { margin: 6px 0 30px; }
.ti-search {
  width: 100%; padding: 13px 16px; font-size: 15px; font-family: Inter, sans-serif;
  border: 1px solid var(--rwm-line); border-radius: 12px; background: var(--rwm-white);
  color: var(--rwm-ink); margin-bottom: 12px;
}
.ti-search:focus { outline: 2px solid var(--rwm-red); outline-offset: 1px; border-color: var(--rwm-red); }
.ti-scroll { max-height: 560px; overflow: auto; border: 1px solid var(--rwm-line); border-radius: 12px; }
.ti-table table { width: 100%; border-collapse: collapse; font-size: 14px; }
.ti-table thead th {
  position: sticky; top: 0; z-index: 1; background: var(--rwm-paper); text-align: left;
  font-family: Outfit, sans-serif; font-weight: 700; font-size: 12px; letter-spacing: .04em; text-transform: uppercase;
  color: var(--rwm-muted); padding: 11px 16px; border-bottom: 1px solid var(--rwm-line);
}
.ti-table td { padding: 11px 16px; border-bottom: 1px solid var(--rwm-line); }
.ti-table tbody tr:last-child td { border-bottom: 0; }
.ti-table .ti-b { font-weight: 700; }
.ti-table td.tnum { white-space: nowrap; font-weight: 700; }
.ti-empty { padding: 16px; font-size: 14px; color: var(--rwm-muted); }
@media (max-width: 640px) {
  .ti-scroll { max-height: none; border: 0; }
  .ti-table thead { display: none; }
  .ti-table table, .ti-table tbody, .ti-table tr, .ti-table td { display: block; }
  .ti-table tr { border: 1px solid var(--rwm-line); border-radius: 12px; margin-bottom: 10px; padding: 4px 4px 6px; }
  .ti-table td { border: 0; padding: 7px 14px; display: flex; justify-content: space-between; gap: 12px; }
  .ti-table td[data-l="Model"] { font-weight: 600; border-bottom: 1px solid var(--rwm-line); padding-bottom: 9px; margin-bottom: 2px; }
  .ti-table td[data-l="Used"]::before, .ti-table td[data-l="New"]::before {
    content: attr(data-l) " trade-in"; color: var(--rwm-muted); font-weight: 500;
  }
}

/* ---- Product page: breadcrumb, facts, why-RWM, mobile sticky bar ---- */
.p-crumbs { display: flex; flex-wrap: wrap; gap: 7px; align-items: center; font-size: 13px; color: var(--rwm-muted); padding: 0 0 16px; }
.p-crumbs a { color: var(--rwm-muted); }
.p-crumbs a:hover { color: var(--rwm-red); }
.p-crumbs span { opacity: .55; }
.p-facts { list-style: none; padding: 0; margin: 16px 0 0; display: flex; flex-direction: column; gap: 9px; }
.p-facts li { display: flex; align-items: center; gap: 9px; font-size: 13.5px; color: var(--rwm-ink); }
.p-facts svg { color: var(--rwm-red); flex: 0 0 auto; }
.p-trust { margin-top: 48px; }
.p-trust h2 { font-family: Outfit, sans-serif; font-weight: 800; font-size: 21px; letter-spacing: -.02em; margin: 0 0 16px; }
.p-trust-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.p-trust .pt { display: flex; gap: 11px; padding: 16px; border: 1px solid var(--rwm-line); border-radius: 14px; background: var(--rwm-white); }
.p-trust .pt .ico { color: var(--rwm-red); flex: 0 0 auto; }
.p-trust .pt b { display: block; font-family: Outfit, sans-serif; font-weight: 700; font-size: 14px; margin-bottom: 3px; }
.p-trust .pt span { font-size: 12.5px; color: var(--rwm-muted); line-height: 1.45; }
@media (max-width: 820px) { .p-trust-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 440px) { .p-trust-grid { grid-template-columns: 1fr; } }

.p-sticky { display: none; }
@media (max-width: 767px) {
  .p-sticky {
    display: flex; align-items: center; gap: 12px; position: fixed; left: 0; right: 0; z-index: 55;
    bottom: calc(64px + env(safe-area-inset-bottom));
    padding: 10px 16px; background: rgba(255,255,255,.97); backdrop-filter: blur(14px);
    border-top: 1px solid var(--rwm-line);
  }
  .p-sticky .ps-info { display: flex; flex-direction: column; min-width: 0; flex: 1; }
  .p-sticky .ps-name { font-size: 12px; color: var(--rwm-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .p-sticky .ps-price { font-family: Outfit, sans-serif; font-weight: 800; font-size: 17px; color: var(--rwm-ink); }
  .p-sticky .pill-btn { flex: 0 0 auto; }
  body.single-product { padding-bottom: 70px; }
}
.faq-home { margin-top: 6px; }

/* Homepage: the rails are the first layer, tight under the hero. */
.rails-lead { padding-top: 10px; }

/* Homepage: Back Market-style top-brands strip -- sideways scroll of make chips. */
.brand-strip {
  display: flex; gap: 12px; overflow-x: auto; padding: 4px 2px 14px;
  scroll-snap-type: x proximity; -webkit-overflow-scrolling: touch;
}
.brand-chip {
  flex: 0 0 auto; scroll-snap-align: start; display: flex; flex-direction: column; gap: 5px;
  min-width: 132px; padding: 16px 18px; border: 1px solid var(--rwm-line); border-radius: 14px;
  background: var(--rwm-white); text-decoration: none;
  transition: border-color .15s ease, transform .15s ease;
}
.brand-chip:hover { border-color: var(--rwm-red); transform: translateY(-2px); }
.brand-chip .bn {
  font-family: Outfit, sans-serif; font-weight: 700; font-size: 16px;
  letter-spacing: -.01em; color: var(--rwm-ink);
}
.brand-chip .bc { font-size: 13px; color: var(--rwm-muted); }
.brand-chip .bc::after { content: " in stock"; }

/* ================================================================
   Specifications

   Two blocks, visibly separate: what is true of the unit in the shop, and
   reference data about the model from a connected feed. Never blended, so a
   customer can tell which is which.
   ================================================================ */

.specs { margin-top: 44px; }
.specs h2 {
  font-family: Outfit, sans-serif; font-size: 21px; font-weight: 700;
  letter-spacing: -.02em; margin: 0 0 18px;
}
.spec-block + .spec-block { margin-top: 26px; }
.spec-block h3 {
  font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: var(--rwm-muted); margin: 0 0 10px;
}
.spec-list {
  margin: 0; border: 1px solid var(--rwm-line); border-radius: var(--r-lg);
  overflow: hidden; background: #fff;
}
.spec-row {
  display: grid; grid-template-columns: 190px 1fr; gap: 16px;
  padding: 12px 18px; border-bottom: 1px solid var(--rwm-line);
}
.spec-row:last-child { border-bottom: 0; }
.spec-row dt { color: var(--rwm-muted); font-size: 13.5px; }
.spec-row dd { margin: 0; font-size: 14.5px; font-weight: 500; }
@media (max-width: 560px) {
  .spec-row { grid-template-columns: 1fr; gap: 2px; padding: 11px 15px; }
}
.spec-credit { font-size: 12.5px; color: var(--rwm-muted); margin: 10px 2px 0; line-height: 1.55; }

/* ---------------- gallery ---------------- */

.p-thumbs { display: flex; gap: 8px; margin-top: 12px; flex-wrap: wrap; }
.p-thumb {
  width: 62px; height: 62px; border-radius: var(--r-md); padding: 5px;
  background: var(--rwm-paper); border: 1.5px solid transparent;
  display: grid; place-items: center; isolation: isolate;
}
.p-thumb img { max-width: 100%; max-height: 100%; width: auto; mix-blend-mode: multiply; }
.p-thumb[aria-current="true"] { border-color: var(--rwm-black); }
.p-thumb:hover { border-color: var(--rwm-line); }

/* ---------------- hero carousel ----------------
   The hero region rotates the flagship slide and the promo slides. The track is
   a flex row of full-width slides moved by translateX; JS owns --hero-i. Without
   JS the track scrolls horizontally instead, so every slide is still reachable. */
.hero-carousel { position: relative; }
.hero-viewport { position: relative; overflow: hidden; border-radius: 40px; }
.hero-track {
  display: flex;
  transform: translateX(calc(var(--hero-i, 0) * -100%));
  transition: transform .5s var(--ease);
}
/* Slides stretch to the tallest (the flagship, which carries a photo), but the
   card inside only grew to its own content — so the promo slides rendered as a
   short card floating in a tall slide. Make the card fill the slide it sits in. */
.hero-slide { flex: 0 0 100%; min-width: 0; display: grid; }
.hero-slide > .hero-card { min-height: 100%; }
@media (prefers-reduced-motion: reduce) { .hero-track { transition: none; } }

/* No-JS / pre-hydration fallback: a swipeable row rather than a stack. Once JS
   marks the carousel ready, the track goes back to the transform model. */
.hero-carousel:not([data-ready]) .hero-track {
  overflow-x: auto; scroll-snap-type: x mandatory; transform: none;
  scrollbar-width: none;
}
.hero-carousel:not([data-ready]) .hero-track::-webkit-scrollbar { display: none; }
.hero-carousel:not([data-ready]) .hero-slide { scroll-snap-align: start; }

/* Promo slide: dark panel, icon medallion where the flagship has its photo. */
.hero-card--promo {
  background: var(--promo-tone, var(--rwm-black));
  color: #fff;
}
.hero-card--promo::after {
  background: radial-gradient(circle, rgba(255,255,255,.10), transparent 62%);
}

/* Photo slide: the picture fills the card and a scrim carries the type.
   Two gradients, because the text sits top-left on desktop and top-centre once
   the card stacks — one vertical, one horizontal, both anchored where the words
   are. The tone colour stays underneath so the slide keeps its identity. */
.hero-card--shot {
  background-color: var(--promo-tone, var(--rwm-black));
  background-image: var(--promo-img);
  background-size: cover;
  background-position: var(--promo-focus, center);
  background-repeat: no-repeat;
}
.hero-card--shot::before {
  /* width/height reset on purpose: the flagship glow sizes ::before to a 420px
     circle, and an explicit size beats inset:0 — the scrim came out as a hard
     square in the corner. */
  content: ""; display: block; position: absolute; inset: 0; z-index: 0;
  width: auto; height: auto; border-radius: inherit; pointer-events: none;
  background:
    linear-gradient(180deg, rgba(10,11,13,.74) 0%, rgba(10,11,13,.48) 32%, rgba(10,11,13,.16) 66%, rgba(10,11,13,0) 100%),
    linear-gradient(90deg, rgba(10,11,13,.70) 0%, rgba(10,11,13,.34) 44%, rgba(10,11,13,0) 74%);
}
/* The tone tints the photo so the repair slide still reads red, not grey.
   display/position restated because .hero-card::after is switched off above. */
.hero-card--shot::after {
  content: ""; display: block; position: absolute; inset: 0; z-index: 0;
  width: auto; height: auto;   /* same 420px glow sizing to undo as ::before */
  background: var(--promo-tone, transparent);
  opacity: .2; mix-blend-mode: multiply; border-radius: inherit;
  pointer-events: none;
}
/* Content above both layers. A photo slide has no art column, so the copy would
   otherwise run the full width of the card and straight under the next-arrow.
   Hold it to a readable measure over the darkest part of the scrim. */
.hero-card--shot > * { position: relative; z-index: 1; max-width: 46ch; }
.hero-card--shot :is(h1, h2.hero-h) { font-size: clamp(26px, 3.4vw, 42px); }
/* Scrim is lighter now so the image shows through; a soft shadow keeps the type
   legible over the brighter parts of the photo without darkening it again.
   `p.sub` (not `.sub`) so it beats the base `.hero p.sub` grey on specificity. */
.hero-card--shot :is(h1, h2.hero-h),
.hero-card--shot p.sub { text-shadow: 0 1px 14px rgba(10,11,13,.6); }
.hero-card--promo p.sub,
.hero-card--shot p.sub { color: #fff; }
.hero-card--promo .hero-tag { background: rgba(255,255,255,.14); color: #fff; box-shadow: none; }
.hero-card--promo .hero-tag .dot { background: #fff; }
.hero-card--promo :is(h1, h2.hero-h) { color: #fff; }
.hero-card--promo :is(h1, h2.hero-h) em { color: #fff; opacity: .72; }
.hero-card--promo .sub { color: rgba(255,255,255,.72); }
.hero-card--promo .pill-btn { border-color: rgba(255,255,255,.28); color: #fff; background: transparent; }
.hero-card--promo .pill-btn:hover { border-color: #fff; }
.hero-card--promo .pill-btn.solid { background: #fff; border-color: #fff; color: var(--rwm-black); box-shadow: none; }
.hero-card--promo .pill-btn.solid:hover { background: rgba(255,255,255,.86); }

.hero-promo-art {
  display: grid; place-items: center; color: #fff;
}
.hero-promo-art svg { width: 104px; height: 104px; opacity: .9; }
@media (max-width: 860px) { .hero-promo-art { display: none; } }

/* Prev / next arrows -- hidden on touch-first small screens where the swipe does it. */
.hero-arrow {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 42px; height: 42px; border-radius: 50%;
  background: var(--rwm-white); border: 1px solid var(--rwm-line);
  box-shadow: var(--sh-2); cursor: pointer; z-index: 3;
  display: grid; place-items: center; color: var(--rwm-ink);
}
.hero-arrow:hover { border-color: var(--rwm-black); }
.hero-arrow.prev { left: 12px; }
.hero-arrow.next { right: 12px; }
.hero-arrow:disabled { opacity: 0; pointer-events: none; }
.hero-carousel:not([data-ready]) .hero-arrow { display: none; }
@media (max-width: 700px) { .hero-arrow { display: none; } }

.hero-dots {
  display: flex; gap: 8px; justify-content: center; margin-top: 16px;
}
.hero-dots button {
  width: 8px; height: 8px; padding: 0; border-radius: 50%; cursor: pointer;
  border: 0; background: var(--rwm-line); transition: width .2s var(--ease), background .2s var(--ease);
}
.hero-dots button[aria-selected="true"] { width: 22px; border-radius: var(--pill); background: var(--rwm-red); }
.hero-carousel:not([data-ready]) .hero-dots { display: none; }

/* ---------------- promise strip ----------------
   The glance-level trust row under the hero (Back Market's "promise" band): four
   icon + label items, wrapping to two-up then one-up as the screen narrows. */
.promise { padding: 22px 0 18px; }
/* The strip stacks one-per-row on a phone, so it needs more air before the rails
   start or the two blocks read as one. */
@media (max-width: 700px) { .promise { padding: 18px 0 30px; } }
.promise-strip {
  list-style: none; margin: 0; padding: 18px 20px;
  background: var(--rwm-paper); border-radius: var(--r-lg);
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px;
}
.promise-strip li { display: flex; align-items: center; gap: 12px; min-width: 0; }
.promise-strip li + li { border-left: 1px solid var(--rwm-line); padding-left: 18px; }
.promise-strip .ico {
  flex: none; width: 38px; height: 38px; border-radius: 50%;
  background: var(--rwm-white); box-shadow: var(--sh-1);
  display: grid; place-items: center; color: var(--rwm-red);
}
.promise-strip b { display: block; font-size: 14px; line-height: 1.25; color: var(--rwm-black); }
.promise-strip span { font-size: 12.5px; color: var(--rwm-muted); line-height: 1.35; }
@media (max-width: 860px) {
  .promise-strip { grid-template-columns: repeat(2, 1fr); }
  .promise-strip li:nth-child(odd) { border-left: 0; padding-left: 0; }
}
@media (max-width: 480px) {
  .promise-strip { grid-template-columns: 1fr; }
  .promise-strip li + li { border-left: 0; padding-left: 0; border-top: 1px solid var(--rwm-line); padding-top: 14px; }
}

/* ---------------- trade-in: how it works + buyback picker ----------------
   The mister-mobile trade-in flow rebuilt with the shop's own values: a five-step
   "how it works" band, then a New/Used toggle, a search, brand cards, and a model
   grid where each card shows "up to $X" and a Sell button. */
.ti-how {
  background: var(--rwm-paper); border-radius: var(--r-lg);
  padding: 22px 24px; margin: 26px 0 30px;
}
.ti-how-title { font-family: Outfit, sans-serif; font-weight: 800; font-size: 19px; letter-spacing: -.01em; margin: 0 0 16px; }
.ti-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; counter-reset: none; }
.ti-steps li { display: flex; flex-direction: column; gap: 8px; position: relative; }
.ti-steps .n {
  width: 26px; height: 26px; border-radius: 50%; flex: none;
  background: var(--rwm-red); color: #fff; font-family: Outfit, sans-serif;
  font-weight: 800; font-size: 13px; display: grid; place-items: center;
}
.ti-steps .ico { color: var(--rwm-red); }
.ti-steps b { display: block; font-size: 14px; letter-spacing: -.01em; margin-bottom: 2px; }
.ti-steps span { font-size: 12.5px; color: var(--rwm-muted); line-height: 1.45; }
.ti-how-note { margin: 16px 0 0; font-size: 13px; color: var(--rwm-muted); }
@media (max-width: 900px) { .ti-steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .ti-steps { grid-template-columns: 1fr; } }

.ti-picker { margin: 0 0 34px; }
.ti-controls { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin-bottom: 8px; }
.ti-toggle { display: inline-flex; background: var(--rwm-paper); border-radius: var(--pill); padding: 4px; gap: 2px; }
.ti-toggle button {
  border: 0; background: transparent; cursor: pointer; border-radius: var(--pill);
  padding: 8px 22px; font-size: 14px; font-weight: 700; color: var(--rwm-muted);
}
.ti-toggle button[aria-selected="true"] { background: var(--rwm-red); color: #fff; box-shadow: var(--sh-red); }
.ti-searchwrap {
  flex: 1; min-width: 220px; display: flex; align-items: center; gap: 8px;
  background: #fff; border: 1.5px solid var(--rwm-line); border-radius: var(--pill);
  padding: 0 16px; color: var(--rwm-muted);
}
.ti-searchwrap:focus-within { border-color: var(--rwm-red); }
.ti-search2 { border: 0; outline: 0; background: transparent; width: 100%; padding: 12px 0; font-size: 14px; color: var(--rwm-ink); }
.ti-orselect { text-align: center; color: var(--rwm-muted); font-size: 13px; margin: 18px 0; }

.ti-brands { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
@media (max-width: 720px) { .ti-brands { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 460px) { .ti-brands { grid-template-columns: repeat(2, 1fr); } }
.ti-brandcard {
  cursor: pointer; text-align: center; background: #fff;
  border: 1.5px solid var(--rwm-line); border-radius: var(--r-lg);
  padding: 24px 14px; transition: border-color .16s var(--ease), transform .16s var(--ease);
}
.ti-brandcard:hover { border-color: var(--rwm-red); transform: translateY(-3px); }
.ti-brandcard .bn { display: block; font-family: Outfit, sans-serif; font-size: 19px; font-weight: 800; letter-spacing: -.02em; color: var(--rwm-black); }
.ti-brandcard .bc { display: block; margin-top: 5px; font-size: 12.5px; color: var(--rwm-muted); }
.ti-brandcard .bc b { color: var(--rwm-red); }

.ti-back {
  background: none; border: 0; cursor: pointer; color: var(--rwm-muted);
  display: inline-flex; align-items: center; gap: 4px; font-size: 14px; font-weight: 600;
  padding: 0; margin-bottom: 12px;
}
.ti-back:hover { color: var(--rwm-red); }
.ti-models-title { font-family: Outfit, sans-serif; font-weight: 800; font-size: 20px; letter-spacing: -.02em; margin: 0 0 14px; }
.ti-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(158px, 1fr)); gap: 12px; }
.ti-model {
  background: #fff; border: 1.5px solid var(--rwm-line); border-radius: var(--r-md);
  padding: 14px; display: flex; flex-direction: column; gap: 10px;
}
.ti-model:hover { border-color: var(--rwm-line); box-shadow: var(--sh-2); }
.ti-model .mm { min-height: 44px; }
.ti-model .mb { display: block; font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--rwm-muted); }
.ti-model .mn { display: block; font-size: 14px; font-weight: 600; line-height: 1.3; letter-spacing: -.01em; color: var(--rwm-ink); }
.ti-model .up { font-size: 12.5px; color: var(--rwm-muted); margin-top: auto; }
.ti-model .up b { display: block; font-family: Outfit, sans-serif; font-size: 22px; font-weight: 800; color: var(--rwm-red); letter-spacing: -.02em; line-height: 1.1; }
.ti-model .sell { text-align: center; text-decoration: none; padding: 9px 0; font-size: 13.5px; }
.ti-empty2 { padding: 20px 4px; font-size: 14px; color: var(--rwm-muted); }

/* display:flex/grid on the picker parts beats the UA [hidden] rule, so the
   attribute alone would not hide them. Make hidden actually hide. */
.ti-picker [hidden] { display: none !important; }

/* ---------------- trade-in picker v2: dropdowns + in-page detail ----------------
   Replaces the model wall with a brand + phone dropdown feeding one detail panel
   (photo, name, condition, value, Sell). The photo is fetched per pick from
   rwm/v1/tradein-image; until it lands (or if nothing matches) a placeholder shows. */
.ti-selects { display: grid; grid-template-columns: 220px 1fr; gap: 14px; align-items: end; margin: 6px 0 14px; }
@media (max-width: 620px) { .ti-selects { grid-template-columns: 1fr; } }
.ti-field { display: block; }
.ti-field > span { display: block; font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--rwm-muted); margin-bottom: 7px; }
.ti-field select {
  width: 100%; appearance: none; -webkit-appearance: none;
  border: 1.5px solid var(--rwm-line); border-radius: var(--pill);
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%236b6f76' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") no-repeat right 16px center;
  padding: 13px 42px 13px 18px; font-size: 15px; font-weight: 600; color: var(--rwm-ink); cursor: pointer;
}
.ti-field select:focus { outline: 0; border-color: var(--rwm-red); }

.ti-hint { color: var(--rwm-muted); font-size: 14px; margin: 18px 0 30px; }

/* The drill-down: brand, then device kind, then the model dropdown. Once the
   buttons are doing the choosing the grid is a single column -- the brand
   dropdown is hidden and a lone model select has no second column to sit
   beside. */
.ti-selects.is-wizard { grid-template-columns: 1fr; max-width: 520px; }
.ti-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; }
.ti-chip {
  display: inline-flex; align-items: baseline; gap: 7px;
  font: inherit; font-size: 14px; font-weight: 700; color: var(--rwm-ink);
  background: #fff; border: 1.5px solid var(--rwm-line); border-radius: var(--pill);
  padding: 9px 16px; cursor: pointer; transition: border-color .12s ease, color .12s ease;
}
.ti-chip span { font-size: 12px; font-weight: 600; color: var(--rwm-muted); }
.ti-chip:hover { border-color: var(--rwm-red); color: var(--rwm-red); }
.ti-chip:hover span { color: var(--rwm-red); }
.ti-chip:focus-visible { outline: 2px solid var(--rwm-red); outline-offset: 2px; }

/* The mascot standing in a page that has nothing else to show. Loaded from the
   same frames the assistant uses, so he is one set of files across the site. */
.rwm-mascot-say { margin: 6px 0 18px; }
.rwm-mascot-say .orb-frame {
  display: block;
  width: auto;
  height: 150px;
  filter: drop-shadow(0 6px 10px rgba(20, 22, 28, .16));
}

/* Visually hidden, still read aloud. Lives here because the trade-in picker
   uses it; it was only in orb.css, so on a site with the assistant switched off
   the label sat visible next to the search box. */
.scr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* The two ways in. Stacked on a phone, side by side once there is room:
   search on the left, the device cards on the right. */
.ti-entry { display: block; }

@media (min-width: 900px) {
  .ti-entry {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
    gap: 34px;
    align-items: start;
    max-width: 900px;
  }
  .ti-entry > .ti-search { margin-top: 0; max-width: none; }
  .ti-entry > .ti-found { grid-column: 1; max-width: none; }
  .ti-entry > .ti-wiz { grid-column: 2; grid-row: 1 / span 2; }
  /* The rule reads as a separator between stacked blocks; side by side it is
     just a heading for the column it sits above. */
  .ti-entry > .ti-wiz > .ti-or { margin-top: 0; }
  .ti-entry > .ti-wiz > .ti-or::before { display: none; }
  .ti-entry .ti-kinds, .ti-entry .ti-chips, .ti-entry .ti-crumbs { max-width: none; }
  .ti-entry .ti-or { max-width: none; }
}

/* ---- search box: for somebody who already knows what they have ---- */
.ti-search {
  display: flex; align-items: center; gap: 10px;
  border: 1.5px solid var(--rwm-line); border-radius: var(--pill);
  padding: 11px 16px; margin: 18px 0 0; background: #fff; max-width: 460px;
}
.ti-search:focus-within { border-color: var(--rwm-red); }
.ti-search .ico { display: flex; color: var(--rwm-muted); flex: none; }
.ti-searchbox {
  flex: 1; min-width: 0; font: inherit; font-size: 15px; border: 0; outline: 0;
  background: none; color: var(--rwm-ink);
}
.ti-searchbox::-webkit-search-cancel-button { display: none; }
.ti-clear {
  flex: none; font-size: 20px; line-height: 1; color: var(--rwm-muted);
  background: none; border: 0; cursor: pointer; padding: 0 2px;
}
.ti-clear:hover { color: var(--rwm-ink); }

.ti-found { display: flex; flex-direction: column; gap: 6px; margin: 12px 0 0; max-width: 460px; }
.ti-wiz > :first-child { margin-top: 18px; }
.ti-hit {
  display: flex; align-items: baseline; justify-content: space-between; gap: 14px;
  font: inherit; text-align: left; cursor: pointer; background: #fff;
  border: 1.5px solid var(--rwm-line); border-radius: var(--r-lg); padding: 11px 15px;
}
.ti-hit:hover { border-color: var(--rwm-red); }
.ti-hit b { font-size: 14px; }
.ti-hit span { font-size: 13px; color: var(--rwm-muted); white-space: nowrap; }
.ti-none { font-size: 14px; color: var(--rwm-muted); margin: 4px 0 0; max-width: 52ch; }

/* ---- or pick the kind of device ---- */
.ti-or {
  display: flex; align-items: center; gap: 14px; margin: 18px 0 16px;
  color: var(--rwm-muted); font-size: 13px; max-width: 460px;
}
.ti-or::before, .ti-or::after {
  content: ""; flex: 1; height: 1px; background: var(--rwm-line);
}

.ti-kinds {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px; max-width: 460px;
}
.ti-kind {
  display: flex; align-items: center; gap: 13px; text-align: left;
  font: inherit; cursor: pointer; background: #fff;
  border: 1.5px solid var(--rwm-line); border-radius: var(--r-lg); padding: 16px 18px;
  transition: border-color .14s ease, transform .14s ease;
}
.ti-kind:hover { border-color: var(--rwm-red); transform: translateY(-1px); }
.ti-kind:focus-visible { outline: 2px solid var(--rwm-red); outline-offset: 2px; }
.ti-kind .ico {
  display: flex; align-items: center; justify-content: center; flex: none;
  width: 44px; height: 44px; border-radius: 12px;
  background: var(--rwm-paper); color: var(--rwm-red);
}
/* The label and the count are one block beside the icon, and it has to be
   allowed to shrink: as bare flex items they would not, and two cards side by
   side pushed a phone screen sideways. */
.ti-kind-text { min-width: 0; }
.ti-kind b { display: block; font-size: 15px; }
.ti-kind .n { display: block; font-size: 12.5px; color: var(--rwm-muted); }

@media (max-width: 430px) {
  .ti-kinds { gap: 10px; }
  .ti-kind { padding: 13px 12px; gap: 10px; }
  .ti-kind .ico { width: 38px; height: 38px; border-radius: 10px; }
  .ti-kind b { font-size: 14px; }
  .ti-kind .n { font-size: 11.5px; }
}
.ti-kinds[hidden], .ti-or[hidden], .ti-search[hidden], .ti-found[hidden] { display: none; }

/* Where you are, and the one way back. A button that says where it goes, then
   plain text for the step you are on -- not a second link competing with it. */
/* The crumb row and the choices under it are one unit -- where you are, and
   what you can pick from here -- so they sit close, with the wider gap above
   separating them from the search box. Even gaps on both sides left the crumb
   row floating between two things it belonged to equally. */
.ti-crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 26px 0 10px; }
.ti-stepback {
  display: inline-flex; align-items: center; gap: 7px;
  font: inherit; font-size: 13px; font-weight: 700; color: var(--rwm-ink);
  background: var(--rwm-paper); border: 1.5px solid var(--rwm-line);
  border-radius: var(--pill); padding: 7px 14px; cursor: pointer;
}
.ti-stepback:hover { border-color: var(--rwm-red); color: var(--rwm-red); }
.ti-stepback:focus-visible { outline: 2px solid var(--rwm-red); outline-offset: 2px; }
.ti-where { font-size: 13px; font-weight: 700; color: var(--rwm-muted); }

@media (max-width: 640px) {
  .ti-chip { padding: 10px 14px; }
}

.ti-detail {
  display: grid; grid-template-columns: 240px 1fr; gap: 26px; align-items: center;
  border: 1.5px solid var(--rwm-line); border-radius: var(--r-xl);
  padding: 26px; margin: 4px 0 30px; background: #fff;
}
@media (max-width: 620px) { .ti-detail { grid-template-columns: 1fr; gap: 18px; text-align: center; } }
.ti-detail-media {
  background: var(--rwm-paper); border-radius: var(--r-lg);
  min-height: 200px; display: grid; place-items: center; padding: 20px; isolation: isolate;
}
.ti-detail-img { max-width: 100%; max-height: 220px; width: auto; mix-blend-mode: multiply; }
.ti-detail-noimg {
  width: 84px; height: 128px; border-radius: 16px;
  border: 2px dashed var(--rwm-line);
  background: repeating-linear-gradient(45deg, #fff 0 8px, var(--rwm-paper) 8px 16px);
}
.ti-detail-brand { font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--rwm-muted); }
.ti-detail-name { font-family: Outfit, sans-serif; font-weight: 800; font-size: 26px; letter-spacing: -.02em; margin: 4px 0 8px; line-height: 1.1; }
.ti-detail-cond { display: inline-block; font-size: 12.5px; font-weight: 600; color: var(--rwm-ink); background: var(--rwm-paper); border-radius: var(--pill); padding: 5px 12px; }
.ti-detail-price { margin: 16px 0 18px; font-size: 14px; color: var(--rwm-muted); }
.ti-detail-price b { display: block; font-family: Outfit, sans-serif; font-size: 40px; font-weight: 800; color: var(--rwm-red); letter-spacing: -.03em; line-height: 1; margin-top: 2px; }

/* The two offers, side by side so the difference is the point rather than a
   footnote. Trade-in leads because it is the better number and the one the
   shop would rather do. */
.ti-offers { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 16px 0 18px; }
.ti-offer { border: 1.5px solid var(--rwm-line); border-radius: var(--r-lg); padding: 14px 16px; background: #fff; }
.ti-offer-trade { border-color: var(--rwm-red); box-shadow: 0 10px 26px rgba(225,29,46,.10); }
.ti-offer-label { display: block; font-size: 12.5px; color: var(--rwm-muted); line-height: 1.35; }
.ti-offer-value { display: block; font-family: Outfit, sans-serif; font-weight: 800; letter-spacing: -.03em; line-height: 1; margin-top: 8px; font-size: 34px; color: var(--rwm-ink); }
.ti-offer-trade .ti-offer-value { color: var(--rwm-red); }
@media (max-width: 620px) { .ti-offers { grid-template-columns: 1fr; } }

.ti-detail-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.ti-detail-sell { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; }
@media (max-width: 620px) {
  .ti-detail-actions { flex-direction: column; }
  .ti-detail-sell { justify-content: center; }
}
.ti-detail-note { font-size: 12.5px; color: var(--rwm-muted); line-height: 1.55; margin: 14px 0 0; max-width: 52ch; }
@media (max-width: 620px) { .ti-detail-note { margin-inline: auto; } }

/* ---------------- trade-in: terms, SEO table, acknowledgement modal ---------------- */
.ti-seo { margin: 8px 0 26px; border: 1px solid var(--rwm-line); border-radius: var(--r-md); overflow: hidden; }
.ti-seo > summary { cursor: pointer; list-style: none; padding: 14px 18px; font-weight: 700; font-size: 14.5px; background: var(--rwm-paper); color: var(--rwm-ink); }
.ti-seo > summary::-webkit-details-marker { display: none; }
.ti-seo > summary::after { content: "+"; float: right; color: var(--rwm-red); font-size: 18px; line-height: 1; }
.ti-seo[open] > summary::after { content: "\2212"; }
.ti-seo-scroll { max-height: 460px; overflow: auto; }
.ti-seo-table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.ti-seo-table th { position: sticky; top: 0; background: #fff; text-align: left; font-weight: 700; padding: 10px 16px; border-bottom: 1.5px solid var(--rwm-line); }
.ti-seo-table td { padding: 9px 16px; border-bottom: 1px solid var(--rwm-line); }
.ti-seo-table td.tnum { white-space: nowrap; font-weight: 700; }

.ti-terms { padding: 0; margin: 6px 0 8px; }
.ti-terms ol { margin: 8px 0 0; padding-left: 20px; color: var(--rwm-ink); }
.ti-terms li { font-size: 14px; line-height: 1.6; margin-bottom: 8px; max-width: 74ch; }

.ti-modal {
  position: fixed; inset: 0; z-index: 200; display: grid; place-items: center;
  background: rgba(22,23,26,.55); padding: 20px; overflow: auto;
}
.ti-modal-box {
  background: #fff; border-radius: var(--r-xl); padding: 30px; max-width: 520px; width: 100%;
  box-shadow: var(--sh-3);
}
.ti-modal-box h3 { font-family: Outfit, sans-serif; font-weight: 800; font-size: 22px; letter-spacing: -.02em; margin: 0 0 8px; }
.ti-modal-box > p { color: var(--rwm-muted); font-size: 14px; line-height: 1.55; margin: 0 0 14px; }
.ti-modal-terms { margin: 0 0 18px; padding-left: 18px; }
.ti-modal-terms li { font-size: 13.5px; line-height: 1.55; color: var(--rwm-ink); margin-bottom: 8px; }
.ti-modal-ack { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; font-weight: 600; color: var(--rwm-ink); cursor: pointer; }
.ti-modal-ack input { margin-top: 3px; width: 17px; height: 17px; accent-color: var(--rwm-red); flex: none; }
.ti-modal-actions { display: flex; gap: 10px; justify-content: flex-end; margin-top: 22px; flex-wrap: wrap; }
.ti-modal-proceed { text-decoration: none; display: inline-flex; align-items: center; gap: 8px; }
.ti-modal-proceed[aria-disabled="true"] { opacity: .45; pointer-events: none; }

/* ---------------- new / used phones marketplace ---------------- */
.mkt-hero { padding: 40px 0 8px; }
.mkt-hero h1 { font-size: clamp(30px, 4.4vw, 44px); line-height: 1.05; margin: 6px 0 18px; letter-spacing: -.03em; }
.mkt-pills { list-style: none; display: flex; flex-wrap: wrap; gap: 10px; margin: 0; padding: 0; }
/* Selling points, not buttons: plain ticked text. */
.mkt-pill { color: var(--rwm-ink); font-size: 13.5px; font-weight: 700; letter-spacing: -.01em; padding: 2px 0; }
.mkt-pill a { color: inherit; text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.mkt-pill a:hover, .mkt-pill a:focus-visible { color: var(--rwm-red); }
.mkt-pill::before { content: "¹3"; color: var(--rwm-red); margin-right: 6px; }
.mkt-body { padding: 22px 0 0; }
.mkt-bar {
  display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  padding: 14px 0 18px; border-bottom: 1px solid var(--rwm-line); margin-bottom: 22px;
}
.mkt-count { font-size: 14px; font-weight: 700; color: var(--rwm-ink); }
.mkt-filters { display: flex; gap: 14px; flex-wrap: wrap; }
.mkt-filters label { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--rwm-muted); }
.mkt-filters select {
  appearance: none; -webkit-appearance: none; border: 1.5px solid var(--rwm-line); border-radius: var(--pill);
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%236b6f76' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") no-repeat right 12px center;
  padding: 9px 34px 9px 14px; font-size: 13.5px; font-weight: 600; color: var(--rwm-ink); text-transform: none; letter-spacing: 0; cursor: pointer;
}
.mkt-filters select:focus { outline: 0; border-color: var(--rwm-red); }
.mkt-pager { display: flex; align-items: center; justify-content: center; gap: 16px; margin: 30px 0 8px; }
.mkt-pager .pill-btn { display: inline-flex; align-items: center; gap: 5px; }
.mkt-pageno { font-size: 13.5px; color: var(--rwm-muted); font-weight: 600; }
.mkt-empty { padding: 40px 4px; font-size: 15px; color: var(--rwm-muted); }
.mkt-empty a { color: var(--rwm-red); }
.mkt-copy { margin-top: 40px; padding-top: 26px; border-top: 1px solid var(--rwm-line); }

/* ---------------- product video embed ---------------- */
.p-video { margin-top: 48px; }
.p-video h2 { font-family: Outfit, sans-serif; font-weight: 800; font-size: 22px; letter-spacing: -.02em; margin: 0 0 16px; }
.p-video-frame { position: relative; width: 100%; aspect-ratio: 16 / 9; border-radius: var(--r-lg); overflow: hidden; background: var(--rwm-black); }
.p-video-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* The new/used marketplace already ends on the light-red WhatsApp banner, so the
   SEO copy's own CTA button is a duplicate — keep the copy, drop its button. */
.mkt-copy .pill-btn { display: none; }

/* ---------------- brand logos + official-site link ----------------
   Every brand gets a mark in the same 48px box: the maker's own site icon on
   top, a red lettermark underneath. If the icon 404s or the brand blocks
   hotlinking the <img> removes itself and the lettermark shows through, so a
   tile is never blank and never broken. */
.blogo {
  position: relative; width: 48px; height: 48px; border-radius: 13px;
  background: #fff; border: 1px solid var(--rwm-line);
  display: grid; place-items: center; overflow: hidden; flex: none;
}
.blogo .binitial { font-family: Outfit, sans-serif; font-weight: 800; font-size: 19px; color: var(--rwm-red); line-height: 1; }
.blogo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; padding: 9px; background: #fff; }
.brand-tile .blogo { margin: 0 auto 12px; }
.brand-official { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin: 4px 0 26px; }
.brand-official .bo-logo { width: 56px; height: 56px; border-radius: 15px; }
.brand-official .pill-btn { display: inline-flex; align-items: center; gap: 5px; }

/* ---------------- Shop mega-menu (desktop nav) ---------------- */
nav.cats .wrap { overflow: visible; position: relative; align-items: center; }
.megawrap { position: static; display: inline-flex; }
.megatrigger {
  border: 0; cursor: pointer; font: inherit; display: inline-flex; align-items: center; gap: 5px;
  border-radius: var(--pill); padding: 8px 17px; font-size: 14px; font-weight: 600;
  background: var(--rwm-paper); color: var(--rwm-ink);
  transition: background .16s var(--ease), color .16s var(--ease);
}
.megawrap:hover .megatrigger, .megatrigger:focus-visible { background: var(--rwm-black); color: #fff; }
.megatrigger svg { transition: transform .16s var(--ease); }
.megawrap:hover .megatrigger svg { transform: rotate(90deg); }
.megapanel {
  position: absolute; left: 0; right: 0; top: 100%; margin-top: 10px; z-index: 55;
  background: #fff; border: 1px solid var(--rwm-line); border-radius: var(--r-lg);
  box-shadow: var(--sh-3); padding: 26px 30px;
  display: grid; grid-template-columns: 1fr 2.2fr 1fr; gap: 34px;
  opacity: 0; visibility: hidden; transform: translateY(-8px);
  transition: opacity .16s var(--ease), transform .16s var(--ease), visibility .16s;
}
.megawrap:hover .megapanel, .megawrap:focus-within .megapanel { opacity: 1; visibility: visible; transform: none; }
nav.cats .megahead { display: block; font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--rwm-muted); margin: 0 0 14px; }
nav.cats .megapanel a { display: block; padding: 7px 0; background: none; border-radius: 0; white-space: normal; color: var(--rwm-ink); font-size: 14px; font-weight: 600; }
nav.cats .megapanel a:hover { background: none; color: var(--rwm-red); }
.megabrands { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 20px; }
nav.cats .megamore { color: var(--rwm-red); font-size: 13px; margin-top: 10px; display: inline-flex; align-items: center; gap: 4px; }

/* ---------------- commerce: cart icon + add-to-cart ---------------- */
.cart-link { position: relative; display: inline-grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; color: var(--rwm-ink); text-decoration: none; flex: none; }
.cart-link:hover { background: var(--rwm-paper); }
.cart-count { position: absolute; top: 1px; right: 1px; min-width: 17px; height: 17px; padding: 0 4px; border-radius: var(--pill); background: var(--rwm-red); color: #fff; font-size: 10.5px; font-weight: 800; display: grid; place-items: center; line-height: 1; }
.appbar .cart { position: relative; }
.appbar .cart .cart-count { top: -3px; right: -3px; }
.p-buy { margin: 0; }
.p-addcart { display: inline-flex; align-items: center; gap: 8px; }

/* ---------------- WooCommerce cart + checkout, aligned to the theme ---------------- */
.woocommerce-cart .page-body, .woocommerce-checkout .page-body,
.woocommerce-cart .wrap, .woocommerce-checkout .wrap { max-width: 1100px; }
.woocommerce a.button, .woocommerce button.button, .woocommerce input.button,
.wc-block-components-button, .wp-block-button__link, .checkout-button {
  background: var(--rwm-red) !important; color: #fff !important; border: 0 !important;
  border-radius: var(--pill) !important; font-weight: 700 !important; padding: 12px 24px !important;
  box-shadow: var(--sh-red) !important; text-decoration: none !important;
}
.woocommerce a.button:hover, .woocommerce button.button:hover,
.wc-block-components-button:hover, .wp-block-button__link:hover, .checkout-button:hover {
  background: var(--rwm-red-deep) !important;
}
.woocommerce table.shop_table { border-radius: var(--r-lg); overflow: hidden; }
.woocommerce form .form-row input.input-text, .woocommerce form .form-row textarea,
.woocommerce .select2-selection, .wc-block-components-text-input input,
.wc-block-components-select .wc-block-components-select__container {
  border-radius: 10px !important; border-color: var(--rwm-line) !important;
}
.woocommerce-cart h1, .woocommerce-checkout h1, .woocommerce-account h1 { font-family: Outfit, sans-serif; letter-spacing: -.02em; }
.woocommerce-message, .woocommerce-info, .wc-block-components-notice-banner { border-radius: 12px; }
.woocommerce div.product, .woocommerce .cart-collaterals { margin-top: 8px; }

/* ---------------- custom checkout (reservation flow) ---------------- */
.woocommerce-checkout .page-body, .woocommerce-checkout .wrap { max-width: 1120px; }
.co { display: grid; grid-template-columns: 1fr 400px; gap: 44px; align-items: start; }
@media (max-width: 880px) { .co { grid-template-columns: 1fr; gap: 28px; } }
.co-main { max-width: 620px; }
.co-block { margin-bottom: 30px; }
.co-block h2 { font-family: Outfit, sans-serif; font-weight: 800; font-size: 19px; letter-spacing: -.01em; margin: 0 0 14px; }
.co-sub { color: var(--rwm-muted); font-size: 13.5px; margin: -6px 0 14px; line-height: 1.5; }
.co-in, .co-field select { width: 100%; border: 1.5px solid var(--rwm-line); border-radius: 10px; padding: 13px 15px; font-size: 15px; color: var(--rwm-ink); background: #fff; margin-bottom: 12px; }
.co-in:focus, .co-field select:focus { outline: 0; border-color: var(--rwm-red); }
.co-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.co-check { display: flex; gap: 8px; align-items: center; font-size: 13.5px; color: var(--rwm-ink); }
.co-check input { accent-color: var(--rwm-red); }
.co-field label { display: block; font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--rwm-muted); margin-bottom: 6px; }
.co-toggle { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 18px; }
.co-toggle label { display: flex; align-items: center; justify-content: center; gap: 8px; border: 1.5px solid var(--rwm-line); border-radius: 12px; padding: 14px; font-weight: 700; font-size: 14.5px; cursor: pointer; color: var(--rwm-ink); }
.co-toggle label.on { border-color: var(--rwm-red); background: var(--rwm-red-wash); color: var(--rwm-red); }
.co-toggle input { display: none; }
.co-pay { display: flex; flex-direction: column; border: 1.5px solid var(--rwm-line); border-radius: 12px; }
.co-payopt { display: block; padding: 16px 18px; border-bottom: 1px solid var(--rwm-line); cursor: pointer; }
.co-payopt:last-child { border-bottom: 0; }
.co-payopt.on { box-shadow: inset 0 0 0 2px var(--rwm-red); border-radius: 12px; background: #fbfbfe; }
.co-payopt input { display: none; }
.co-payhead { display: block; font-weight: 700; font-size: 14.5px; }
.co-paydesc { display: block; font-size: 13px; color: var(--rwm-muted); margin-top: 6px; line-height: 1.5; }
.co-note { background: var(--rwm-paper); border-radius: 12px; padding: 16px 18px; }
.co-note b { display: block; font-size: 14.5px; }
.co-note span { font-size: 13px; color: var(--rwm-muted); }
.co-submit { width: 100%; justify-content: center; padding: 15px; font-size: 15.5px; margin-top: 6px; }
.co-fine { font-size: 12px; color: var(--rwm-muted); margin-top: 12px; line-height: 1.5; }
.co-summary { background: var(--rwm-paper); border-radius: var(--r-lg); padding: 24px; position: sticky; top: 16px; }
.co-line { display: flex; gap: 14px; align-items: center; margin-bottom: 16px; }
.co-thumb { position: relative; width: 60px; height: 60px; flex: none; background: #fff; border: 1px solid var(--rwm-line); border-radius: 10px; overflow: hidden; display: grid; place-items: center; isolation: isolate; }
.co-thumb img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; }
.co-qty { position: absolute; top: -8px; right: -8px; min-width: 20px; height: 20px; border-radius: 50%; background: var(--rwm-black); color: #fff; font-size: 11px; font-weight: 700; display: grid; place-items: center; }
.co-lineinfo { flex: 1; min-width: 0; }
.co-lineinfo b { display: block; font-size: 14px; }
.co-lineinfo span { font-size: 12.5px; color: var(--rwm-muted); }
.co-linetot { font-weight: 700; white-space: nowrap; }
.co-tot { border-top: 1px solid var(--rwm-line); margin-top: 8px; padding-top: 16px; }
.co-totrow { display: flex; justify-content: space-between; font-size: 14px; margin-bottom: 10px; color: var(--rwm-ink); }
.co-grand { font-size: 18px; font-weight: 800; margin-top: 6px; }
.co-grand .cur { font-size: 12px; color: var(--rwm-muted); font-weight: 600; }
.co-empty, .co-thanks { padding: 30px 0; }
.co-empty { text-align: center; }
.co-thanks { background: var(--rwm-red-wash); border-radius: var(--r-lg); padding: 24px; margin: 20px 0; }
.co-billfields .co-in { margin-top: 4px; }

/* ---------------- product page: instalment, enquire, badges (8th-ave style) ---------------- */
.p-instalment { font-size: 14px; color: var(--rwm-muted); margin: -8px 0 12px; }
.p-instalment b { color: var(--rwm-ink); font-weight: 700; }
.p-enquire { background: #25D366 !important; border-color: #25D366 !important; color: #fff !important; display: inline-flex; align-items: center; gap: 8px; box-shadow: 0 8px 22px rgba(37,211,102,.28); }
.p-enquire:hover { background: #1eb955 !important; border-color: #1eb955 !important; }
.p-pickup { display: flex; align-items: center; gap: 7px; font-size: 13.5px; color: var(--rwm-good); margin: 4px 0 0; }
.p-pickup b { color: var(--rwm-ink); }
.p-pay { display: flex; flex-wrap: wrap; gap: 7px; margin: 16px 0 6px; }
.p-paybadge { font-size: 11.5px; font-weight: 700; color: var(--rwm-muted); background: var(--rwm-paper); border: 1px solid var(--rwm-line); border-radius: 6px; padding: 5px 9px; }
.p-facts a { color: var(--rwm-red); }
.cart-count:empty { display: none; }

/* ---------------- slide-out cart drawer ---------------- */
.rwm-drawer { position: fixed; inset: 0; z-index: 200; }
.rwm-drawer[hidden] { display: none; }
.rwm-drawer-bg { position: absolute; inset: 0; background: rgba(22,23,26,.5); opacity: 0; transition: opacity .26s var(--ease); }
.rwm-drawer.open .rwm-drawer-bg { opacity: 1; }
.rwm-drawer-panel { position: absolute; top: 0; right: 0; height: 100%; width: min(420px, 92vw); background: #fff; box-shadow: -20px 0 60px rgba(0,0,0,.18); display: flex; flex-direction: column; transform: translateX(100%); transition: transform .26s var(--ease); }
.rwm-drawer.open .rwm-drawer-panel { transform: none; }
.rwm-drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 22px 24px; border-bottom: 1px solid var(--rwm-line); }
.rwm-drawer-head h2 { font-family: Outfit, sans-serif; font-weight: 800; font-size: 20px; margin: 0; }
.rwm-dclose { border: 0; background: none; font-size: 28px; line-height: 1; color: var(--rwm-muted); cursor: pointer; }
.rwm-drawer-inner { flex: 1; display: flex; flex-direction: column; overflow: hidden; min-height: 0; }
.rwm-dlines { flex: 1; overflow-y: auto; padding: 8px 24px; }
.rwm-dline { display: flex; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--rwm-line); }
.rwm-dthumb { width: 64px; height: 64px; flex: none; background: var(--rwm-paper); border-radius: 10px; overflow: hidden; display: grid; place-items: center; isolation: isolate; }
.rwm-dthumb img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; }
.rwm-dinfo { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.rwm-dinfo b { font-size: 14.5px; }
.rwm-dmeta { font-size: 12.5px; color: var(--rwm-muted); }
.rwm-dqp { display: flex; gap: 10px; align-items: baseline; font-size: 14px; }
.rwm-dprice { font-weight: 700; }
.rwm-dqty { color: var(--rwm-muted); font-size: 12.5px; }
.rwm-drm { align-self: flex-start; font-size: 12px; color: var(--rwm-muted); text-decoration: underline; margin-top: 2px; }
.rwm-drm:hover { color: var(--rwm-red); }
.rwm-dfoot { border-top: 1px solid var(--rwm-line); padding: 18px 24px calc(18px + env(safe-area-inset-bottom)); }
.rwm-dtot { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 14px; }
.rwm-dtot b { font-family: Outfit, sans-serif; font-size: 18px; font-weight: 800; }
.rwm-dcheckout { width: 100%; justify-content: center; display: flex; align-items: center; gap: 8px; }
.rwm-dempty { padding: 60px 24px; text-align: center; color: var(--rwm-muted); }
.rwm-dempty .pill-btn { margin-top: 16px; }

/* ---------------- product page rhythm (tightened) ----------------
   The buy column had blocks colliding: the pickup line ran into the note, the
   badges into the facts. Give each its own step, and rule off the trust rows so
   the eye can find the CTA. */
.p-price { margin: 0 0 4px; }
.p-instalment { margin: 0 0 10px; }
.p-stock { margin: 0 0 20px; }
.p-group { margin-bottom: 18px; }
.p-cta { margin: 24px 0 0; gap: 10px; }
.p-pickup { display: flex; align-items: flex-start; gap: 8px; margin: 18px 0 0; line-height: 1.5; }
.p-pickup svg { flex: none; margin-top: 2px; }
.p-note { margin: 10px 0 0; }
.p-pay { margin: 20px 0 0; padding-top: 18px; border-top: 1px solid var(--rwm-line); gap: 8px; }
.p-facts { margin: 18px 0 0; padding-top: 18px; border-top: 1px solid var(--rwm-line); gap: 11px; }
.p-trust { margin-top: 52px; }

/* Repair hub brand cards now carry the real starting price + how much is priced. */
.rbcard .rbfrom { font-size: 13px; color: var(--rwm-muted); margin-top: 6px; }
.rbcard .rbfrom b { font-family: Outfit, sans-serif; font-size: 19px; font-weight: 800; color: var(--rwm-red); letter-spacing: -.02em; margin-left: 3px; }
.rbcard .rbmeta { font-size: 12px; color: var(--rwm-muted); margin-top: 2px; }
.rbcard .rbgo { margin-top: 10px; }
.ti-why { margin: 34px 0 8px; }
.ti-why h2 { font-family: Outfit, sans-serif; font-weight: 800; font-size: 22px; letter-spacing: -.02em; margin: 0 0 16px; }

/* Homepage repairs: the "see all" button, dropped a little clear of the grid. */
.repair-more { margin-top: 26px; display: flex; justify-content: center; }

/* Display-only colour swatches on the product page (enquiry model). */
.cfg-note { color: var(--rwm-muted); font-weight: 400; font-size: 11.5px; }
.p-swatches { display: flex; flex-wrap: wrap; gap: 8px; }
.p-swatch {
  display: inline-flex; align-items: center; gap: 7px;
  border: 1.5px solid var(--rwm-line); border-radius: var(--pill);
  padding: 5px 13px 5px 6px; font-size: 12.5px; color: var(--rwm-ink);
}
.p-swatch .dot { width: 16px; height: 16px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(0,0,0,.18); flex: none; }

/* Image-led "popular trade-ins" grid: photo cards, mister-mobile style. */
.ti-pop-head { font-size: 13px; font-weight: 700; letter-spacing: .01em; color: var(--rwm-muted); margin: 18px 0 12px; }
.ti-popular { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; margin: 0 0 22px; }
@media (max-width: 1000px) { .ti-popular { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 560px) { .ti-popular { grid-template-columns: repeat(2, 1fr); } }
.ti-pop-card {
  display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center;
  background: #fff; border: 1.5px solid var(--rwm-line); border-radius: 16px; padding: 14px 10px 12px;
  cursor: pointer; transition: border-color .15s ease, transform .15s ease, box-shadow .15s ease;
}
.ti-pop-card:hover { border-color: var(--rwm-red); transform: translateY(-3px); box-shadow: 0 12px 26px rgba(20,22,28,.12); }
.ti-pop-shot { height: 92px; display: grid; place-items: center; }
.ti-pop-shot img { max-height: 92px; width: auto; max-width: 100%; object-fit: contain; mix-blend-mode: multiply; }
.ti-pop-name { font-size: 12.5px; font-weight: 700; letter-spacing: -.01em; line-height: 1.25; color: var(--rwm-ink); }
.ti-pop-val { font-size: 13px; font-weight: 700; color: var(--rwm-ink); }
.ti-pop-val em { font-style: normal; color: var(--rwm-red); }
.ti-pop-tag { font-size: 10px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase;
  color: var(--rwm-muted); background: var(--rwm-paper); border-radius: var(--pill); padding: 3px 10px; }

/* The condition badge is an <img> now, so it would otherwise be caught by the
   multiply blend that knocks white boxes out of product photos — which would eat
   the badge's own white/silver. Opt it out and give its shadow back. */
.card .shot img.rosette,
.p-media img.rosette,
.cfg-media img.rosette {
  mix-blend-mode: normal;
  filter: drop-shadow(0 3px 7px rgba(22, 23, 26, .22));
}

/* Terms 6-9 as cards under the how-it-works band; the full nine fold away below. */
.ti-keys { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin: 0 0 30px; }
@media (max-width: 900px) { .ti-keys { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .ti-keys { grid-template-columns: 1fr; } }
.ti-key { border: 1.5px solid var(--rwm-line); border-radius: 14px; padding: 16px 18px; background: #fff; }
.ti-key .ico { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--rwm-red-wash); color: var(--rwm-red); margin-bottom: 10px; }
.ti-key b { display: block; font-size: 14.5px; letter-spacing: -.01em; margin-bottom: 5px; }
.ti-key span { display: block; font-size: 12.5px; line-height: 1.55; color: var(--rwm-muted); }
/* the terms list is a <details> now, styled like the other folded sections */
details.ti-terms > ol { margin: 0; padding: 16px 20px 18px 40px; }
details.ti-terms li { font-size: 14px; line-height: 1.6; margin-bottom: 9px; max-width: 74ch; }

/* ---------------- hero: mobile fit + richer promo slides ----------------
   The price pill was absolutely positioned and ran off the card on a phone, and
   the promo slides hid their artwork under 860px so they read as half-empty. */
.hero-facts { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 20px 0 0; padding: 0; }
.hero-facts li {
  font-size: 12.5px; font-weight: 600; color: rgba(255,255,255,.9);
  background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.18);
  border-radius: var(--pill); padding: 6px 13px;
}
.hero-promo-art .hpa-ring {
  display: grid; place-items: center; width: 190px; height: 190px; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, rgba(255,255,255,.20), rgba(255,255,255,.05) 60%, transparent 70%);
  box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.22), 0 20px 50px rgba(0,0,0,.28);
}

/* Trade-in art: the used phone the customer walks in with, the new one they walk
   out with. Both are real catalogue rows, so the shot is the shelf. */
.hpa-swap { display: flex; align-items: center; gap: 10px; }
.hpa-ph { display: grid; justify-items: center; gap: 10px; }
/* White tile: the catalogue shots are photographed on white, so multiply here
   drops their background and leaves the phone. isolation keeps the blend inside
   the tile instead of multiplying against the dark hero panel. */
/* Square, not phone-shaped. Catalogue shots are not a consistent crop — plenty
   are a front-and-back pair, which is wider than it is tall — so a portrait tile
   letterboxes half the catalogue. A square holds either without cropping. */
.hpa-shot {
  display: grid; place-items: center; isolation: isolate;
  width: 142px; height: 142px; padding: 14px; border-radius: 20px;
  background: #fff; box-shadow: 0 18px 40px rgba(0,0,0,.34);
}
.hpa-shot img { max-width: 100%; max-height: 100%; width: auto; object-fit: contain; mix-blend-mode: multiply; }
.hpa-ph b {
  font-size: 10.5px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase;
  color: rgba(255,255,255,.66);
}
/* The one the customer leaves with earns the emphasis. */
.hpa-ph.new { transform: translateY(-12px); }
.hpa-ph.new .hpa-shot { width: 162px; height: 162px; box-shadow: 0 22px 50px rgba(0,0,0,.45); }
.hpa-ph.new b { color: #fff; }
.hpa-ph.old { transform: translateY(12px); }
.hpa-ph.old .hpa-shot { opacity: .82; transform: rotate(-5deg); }
.hpa-go {
  display: grid; place-items: center; width: 30px; height: 30px; flex: none;
  border-radius: 50%; background: #fff; color: var(--rwm-black);
  box-shadow: 0 8px 22px rgba(0,0,0,.32);
}
.hpa-go svg { width: 18px; height: 18px; }

/* Repairs art: drawn, not a staged photo of someone's broken phone. */
.hpa-crack { display: grid; place-items: center; color: #fff; filter: drop-shadow(0 20px 40px rgba(0,0,0,.35)); }
.hpa-crack svg { width: 150px; height: 250px; }
/* The flagship slide's red glow does not belong on a promo — except on a photo
   slide, where ::before is the text scrim and must survive this. */
.hero-card--promo:not(.hero-card--shot)::before { display: none; }

@media (max-width: 860px) {
  /* keep the promo art, just smaller — an empty half-card looked broken */
  .hero-promo-art { display: grid; justify-items: start; margin-top: 22px; }
  .hero-promo-art .hpa-ring { width: 108px; height: 108px; }
  .hero-promo-art .hpa-ring svg { width: 56px; height: 56px; }
  .hpa-shot { width: 92px; height: 92px; padding: 9px; border-radius: 14px; }
  .hpa-ph.new .hpa-shot { width: 102px; height: 102px; }
  .hpa-crack svg { width: 96px; height: 160px; }
}
@media (max-width: 700px) {
  /* the pill joins the flow instead of hanging off the bottom of the image */
  .price-pill {
    position: static; transform: none; margin: 16px auto 0; width: 100%;
    justify-content: space-between; border-radius: 26px; padding: 16px 20px;
  }
  .hero-visual { display: block; }
  .hero-visual img { display: block; margin: 0 auto; width: min(210px, 62%); }
  .hero-card { padding: 24px 20px 26px; border-radius: 28px; }
  .hero-viewport { border-radius: 28px; }
  .hero-facts li { font-size: 11.5px; padding: 5px 11px; }
}

/* The price pill is white-space:nowrap, so a long model name gave it an intrinsic
   width wider than the phone and pushed the whole hero card past the viewport
   (grid children default to min-width:auto). Let it wrap and truncate instead. */
@media (max-width: 700px) {
  .hero-card > *, .hero-visual, .hero-slide { min-width: 0; }
  .price-pill { white-space: normal; flex-wrap: wrap; gap: 10px; }
  .price-pill > div:first-child { flex: 1 1 auto; min-width: 0; }
  .price-pill .lbl { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
  .price-pill .val { font-size: 22px; }
  .price-pill .inner { flex: 0 0 auto; padding: 7px 12px; font-size: 11.5px; }
}
/* Slides stretch to the tallest (the flagship photo), so centre the promo content
   vertically rather than leaving all the slack pooled under it. */
@media (max-width: 860px) { .hero-card--promo { align-content: center; } }

/* ---------------- WooCommerce classic checkout, themed ---------------- */
.woocommerce-checkout .col2-set { display: grid; grid-template-columns: 1fr; gap: 0; }
.woocommerce-checkout form.checkout { display: grid; grid-template-columns: 1fr 400px; gap: 44px; align-items: start; }
@media (max-width: 900px) { .woocommerce-checkout form.checkout { grid-template-columns: 1fr; gap: 26px; } }
.woocommerce-checkout #customer_details { grid-column: 1; }
.woocommerce-checkout #order_review_heading, .woocommerce-checkout #order_review { grid-column: 2; }
@media (max-width: 900px) { .woocommerce-checkout #order_review_heading, .woocommerce-checkout #order_review { grid-column: 1; } }
.woocommerce-checkout #order_review { background: var(--rwm-paper); border-radius: var(--r-lg); padding: 22px; position: sticky; top: 16px; }
.woocommerce-checkout h3, .woocommerce-checkout #order_review_heading { font-family: Outfit, sans-serif; font-weight: 800; font-size: 19px; letter-spacing: -.01em; }
.woocommerce form .form-row label { font-size: 12.5px; font-weight: 700; color: var(--rwm-muted); }
.woocommerce form .form-row input.input-text, .woocommerce form .form-row select,
.woocommerce form .form-row textarea, .select2-container .select2-selection--single {
  border: 1.5px solid var(--rwm-line) !important; border-radius: 10px !important; padding: 12px 14px !important; font-size: 15px;
}
.woocommerce #payment { background: transparent; }
.woocommerce #payment ul.payment_methods { border-bottom: 1px solid var(--rwm-line); padding: 0 0 14px; }
.woocommerce #payment div.form-row { padding: 14px 0 0; }

/* collection slots */
.rwm-pickup { border: 1.5px solid var(--rwm-line); border-radius: 14px; padding: 18px 20px; margin: 18px 0 6px; background: #fff; }
.rwm-pickup h3 { margin: 0 0 6px; }
.rwm-pickup-note { font-size: 13px; color: var(--rwm-muted); line-height: 1.55; margin: 0 0 14px; }
.rwm-pickup-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 520px) { .rwm-pickup-fields { grid-template-columns: 1fr; } }
.rwm-pickup-fields .form-row { width: 100%; margin: 0; padding: 0; float: none; }
.rwm-slot-confirm { background: var(--rwm-red-wash); border-radius: 12px; padding: 16px 18px; line-height: 1.6; }

/* the reserve-instead path */
.rwm-reserve { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 14px; font-size: 13.5px; color: var(--rwm-muted); }
.rwm-reserve .pill-btn { display: inline-flex; align-items: center; gap: 7px; text-decoration: none; }
.rwm-dreserve { display: block; text-align: center; margin-top: 10px; font-size: 13px; color: var(--rwm-muted); text-decoration: underline; }
.rwm-dreserve:hover { color: var(--rwm-red); }

/* ---------------- accessories: type chips ---------------- */
.acc-types { display: flex; flex-wrap: wrap; gap: 8px; margin: 22px 0 4px; }
.acc-chip {
  display: inline-flex; align-items: center; gap: 7px; text-decoration: none;
  border: 1.5px solid var(--rwm-line); background: #fff; color: var(--rwm-ink);
  border-radius: var(--pill); padding: 9px 16px; font-size: 13.5px; font-weight: 600;
  transition: border-color .16s var(--ease), background .16s var(--ease), color .16s var(--ease);
}
.acc-chip:hover { border-color: var(--rwm-black); }
.acc-chip.on { background: var(--rwm-red); border-color: var(--rwm-red); color: #fff; }
.acc-chip .n { font-size: 11.5px; opacity: .7; font-weight: 700; }
.acc-chip.on .n { opacity: .85; }

/* Brands mega-menu: one wide column of brand marks. */
.megapanel-brands { grid-template-columns: 1fr; }
.megacol-wide { grid-column: 1 / -1; }
.megabrandgrid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 6px 10px; }
@media (max-width: 1100px) { .megabrandgrid { grid-template-columns: repeat(4, 1fr); } }
nav.cats .megabrandgrid .megabrand {
  display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 12px;
  background: none; white-space: nowrap; font-size: 13.5px; font-weight: 600; color: var(--rwm-ink);
}
nav.cats .megabrandgrid .megabrand:hover { background: var(--rwm-paper); color: var(--rwm-red); }
.megabrandgrid .blogo { width: 32px; height: 32px; border-radius: 9px; }
.megabrandgrid .blogo .binitial { font-size: 13px; }
.megabrandgrid .blogo img { padding: 6px; }
.megabrandgrid .mb-name { overflow: hidden; text-overflow: ellipsis; }

/* ---------------- WooCommerce pages: their own clean wrapper ----------------
   Cart/checkout/account are applications, not articles: full width, no prose
   measure, and nothing allowed to overflow sideways. */
.wc-page { padding: 26px 0 48px; }
.wc-page-title { font-family: Outfit, sans-serif; font-weight: 800; font-size: clamp(28px, 3.6vw, 40px); letter-spacing: -.03em; margin: 0 0 22px; }
.wc-page .woocommerce { max-width: none; }
.wc-page, .wc-page * { min-width: 0; }
.woocommerce .col2-set .col-1, .woocommerce .col2-set .col-2 { float: none; width: 100%; }
.woocommerce form .form-row { display: block; }
.woocommerce form .form-row input.input-text, .woocommerce form .form-row select,
.woocommerce form .form-row textarea, .woocommerce .select2-container { width: 100% !important; max-width: 100%; box-sizing: border-box; }
.woocommerce table.shop_table, .woocommerce-cart-form { width: 100%; }
.woocommerce-cart .wc-page .woocommerce { overflow-x: auto; }
.woocommerce-checkout .woocommerce-form-coupon-toggle .woocommerce-info { border-radius: 12px; padding: 12px 16px; font-size: 14px; }
/* Woo's own stylesheet sizes the coupon field for a wider table than ours, so it
   arrived clipped behind its own button. Let the row lay itself out instead. */
.woocommerce-cart-form .actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.woocommerce-cart-form .actions .coupon { display: flex; gap: 8px; flex: 1 1 260px; }
.woocommerce-cart-form .actions .coupon input#coupon_code { width: auto; flex: 1 1 auto; min-width: 0; }
.woocommerce-cart-form .actions > button[name="update_cart"] { margin-left: auto; }
/* Checkout columns, placed explicitly.
   The form is a grid, and its three children were auto-placed: billing filled
   row 1 column 1, "Your order" took row 1 column 2, and the order table fell to
   row 2 — starting level with the BOTTOM of an 867px billing column, a screen
   below its own heading. Billing spans both rows so the summary sits under its
   heading and stays with it. */
/* Checkout columns.
   Floats, not grid. The form is three siblings — billing, "Your order", the
   summary — and the right column is two of them stacked. As a grid that needs
   the billing column to span both rows, and a row-spanning item forces its whole
   height across those rows: row 1 kept absorbing the leftover and dropped the
   summary a hundred-plus pixels below its own heading. Floating the two
   right-hand items with `clear: right` stacks them against each other, which is
   what WooCommerce's own stylesheet does here. */
@media (min-width: 900px) {
  .woocommerce-checkout form.checkout { display: block; }
  .woocommerce-checkout form.checkout::after { content: ""; display: block; clear: both; }
  .woocommerce-checkout form.checkout > #customer_details { float: left; width: 54%; }
  .woocommerce-checkout form.checkout > #order_review_heading,
  .woocommerce-checkout form.checkout > #order_review { float: right; clear: right; width: 42%; }
  .woocommerce-checkout form.checkout > #order_review_heading { margin: 0 0 14px; }
  .woocommerce-checkout form.checkout > #order_review { margin-top: 0; }
}

/* A product with no image was rendering an oversized placeholder frame. */
.woocommerce table.shop_table td.product-thumbnail img,
.woocommerce table.shop_table td.product-thumbnail .woocommerce-placeholder { width: 64px; height: auto; }
/* The nav needs overflow:visible so the dropdowns can escape it, which means it
   can no longer scroll sideways — so let it wrap instead of running off-screen. */
nav.cats .wrap { flex-wrap: wrap; row-gap: 8px; }
/* WooCommerce's country <select> keeps its own width and pushed the page 4px
   past the viewport; box-sizing makes the padding count inside the 100%. */
.woocommerce form .form-row select, .woocommerce form .form-row .country_select,
.woocommerce form .form-row .state_select { box-sizing: border-box; max-width: 100%; }
/* select2 keeps the original <select> in the DOM for a11y and hides it; my
   width:100% was un-hiding it and it alone pushed the page past the viewport. */
.woocommerce form .form-row select.select2-hidden-accessible {
  width: 1px !important; height: 1px; position: absolute !important;
  clip: rect(0 0 0 0); clip-path: inset(50%); overflow: hidden; padding: 0 !important; border: 0 !important;
}
/* Hard guarantee the nav and its dropdowns paint above page content at every
   width. This has to clear .arch-head, which is sticky at z-index 60 — an equal
   z-index loses to it on DOM order, which is exactly how a page heading ended up
   painted over an open dropdown. */
nav.cats { position: relative; z-index: 90; }
.megapanel { z-index: 95; }

/* The hero card stacks to one column at 860px, but the price pill only joined the
   flow at 700px — so between 701 and 860 it was still absolutely positioned over
   a narrow card and hung outside it. Match the pill's breakpoint to the card's. */
@media (max-width: 860px) {
  .hero-card > *, .hero-visual, .hero-slide { min-width: 0; }
  .price-pill {
    position: static; transform: none; margin: 16px auto 0; width: 100%;
    justify-content: space-between; white-space: normal; flex-wrap: wrap; gap: 10px;
    /* A 999px radius on something this wide leaves the text sitting inside the
       curve rather than beside it. Once the pill is a full-width block it should
       be shaped like one: a card radius, and padding that clears the corner. */
    border-radius: 26px; padding: 16px 20px;
  }
  .price-pill > div:first-child { flex: 1 1 auto; min-width: 0; }
  .price-pill .lbl { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
  .price-pill .val { font-size: 22px; }
  .price-pill .inner { flex: 0 0 auto; padding: 7px 12px; font-size: 11.5px; }
  .hero-visual { display: block; }
  .hero-visual img { display: block; margin: 0 auto; width: min(240px, 62%); }
}

/* The New/Used toggle sat straight under the lede with no breathing room, so it
   read as overlapping the copy. Give the picker and its rows a proper step. */
.ti-picker { margin-top: 26px; }
.ti-picker > .ti-toggle { margin-bottom: 20px; }
.ti-selects { margin: 0 0 16px; }
.ti-hint { margin: 6px 0 34px; }
.ti-how + .ti-keys { margin-top: 4px; }

/* ---------------- Apple repair pricing: per-service, per-model ----------------
   The shop's own full price list. It was already on the site but collapsed
   inside a dropdown, so the job here is to make 345 rows readable in the open:
   jump links at the top, each service its own scrollable table. */
/* main.css pads every <section> by 50px; this one sits inside the article. */
.rp { margin-top: 8px; padding: 0; }
.rp-intro {
  border: 1.5px solid var(--rwm-line); border-left: 4px solid var(--rwm-red);
  border-radius: var(--r-lg); padding: 16px 18px; margin: 0 0 22px; background: #fff;
}
.rp-intro p { margin: 0; font-size: 14px; line-height: 1.6; color: var(--rwm-muted); max-width: 74ch; }
.rp-intro ul { display: flex; flex-wrap: wrap; gap: 8px 22px; list-style: none; margin: 12px 0 0; padding: 0; }
.rp-intro li { font-size: 13.5px; font-weight: 600; }
.rp-intro li::before { content: "✓"; color: var(--rwm-red); font-weight: 800; margin-right: 7px; }

/* Each service is a closed dropdown. The summary is the whole clickable row,
   so the hit area is the full width rather than the words alone. */
.rp-section {
  border: 1.5px solid var(--rwm-line); border-radius: var(--r-lg);
  background: #fff; margin-bottom: 10px; scroll-margin-top: 90px;
}
.rp-section[open] { border-color: var(--rwm-ink); }
.rp-head {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  padding: 15px 18px; cursor: pointer; list-style: none; user-select: none;
}
.rp-head::-webkit-details-marker { display: none; }   /* Safari's own triangle */
.rp-head::after {
  content: ""; margin-left: auto; width: 9px; height: 9px; flex: none;
  border-right: 2px solid var(--rwm-muted); border-bottom: 2px solid var(--rwm-muted);
  transform: rotate(45deg) translate(-2px, -2px); transition: transform .15s ease;
}
.rp-section[open] .rp-head::after { transform: rotate(225deg) translate(-2px, -2px); }
.rp-head:hover { background: var(--rwm-paper); border-radius: calc(var(--r-lg) - 2px); }
.rp-section[open] .rp-head:hover { border-radius: calc(var(--r-lg) - 2px) calc(var(--r-lg) - 2px) 0 0; }
.rp-head:focus-visible { outline: 2px solid var(--rwm-red); outline-offset: -2px; }
.rp-title { font-family: Outfit, sans-serif; font-weight: 800; font-size: 17px; }
.rp-count { font-size: 12.5px; color: var(--rwm-muted); }
.rp-chip {
  font-size: 11px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase;
  color: var(--rwm-muted); border: 1px solid var(--rwm-line); border-radius: var(--pill);
  padding: 3px 9px; white-space: nowrap;
}
.rp-section > .rp-blurb, .rp-section > .rp-scroll { margin-left: 18px; margin-right: 18px; }
.rp-section > .rp-scroll { margin-bottom: 18px; }
.rp-blurb { font-size: 14px; color: var(--rwm-muted); margin: 0 0 14px; max-width: 68ch; line-height: 1.55; }

/* The table scrolls inside its own box: four price columns will not fit a phone,
   and the page itself must never scroll sideways. */
.rp-scroll { overflow-x: auto; border: 1.5px solid var(--rwm-line); border-radius: var(--r-lg); }
.rp-table { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 480px; }
.rp-table th, .rp-table td { padding: 11px 14px; text-align: left; border-bottom: 1px solid var(--rwm-line); }
.rp-table thead th { font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--rwm-muted); font-weight: 700; background: var(--rwm-paper); }
.rp-table tbody th { font-weight: 700; white-space: nowrap; }
.rp-table tbody tr:nth-child(even) td, .rp-table tbody tr:nth-child(even) th { background: var(--rwm-paper); }
.rp-table .num { text-align: right; }
.rp-table tbody tr:last-child th, .rp-table tbody tr:last-child td { border-bottom: 0; }
.rp-dash { color: var(--rwm-line); }
.rp-turn { font-size: 12.5px; color: var(--rwm-muted); white-space: nowrap; }

.rp-foot { border-top: 1.5px solid var(--rwm-line); padding-top: 16px; }
.rp-foot p { font-size: 13px; color: var(--rwm-muted); margin: 0 0 8px; line-height: 1.55; max-width: 74ch; }
.rp-foot p:last-child { margin-bottom: 0; }

/* ---------- per-phone trade-in page (inc/tradein-page.php, 2026-10-05) ---------- */
.tic-wrap { padding-block: 18px 56px; }
.tic-crumbs { font-size: 13px; color: var(--rwm-muted); margin-bottom: 18px; display: flex; flex-wrap: wrap; gap: 6px; }
.tic-crumbs a { color: var(--rwm-muted); text-decoration: none; }
.tic-crumbs a:hover { color: var(--rwm-red); }
.tic-crumbs b { color: var(--rwm-black); }
.tic-flash { border-radius: 14px; padding: 14px 18px; margin-bottom: 18px; display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 14px; }
.tic-flash.ok { background: #ecfdf3; border: 1.5px solid #a7e3c4; color: var(--rwm-good); }
.tic-flash.bad { background: var(--rwm-red-wash); border: 1.5px solid #f6b9bf; color: var(--rwm-red-deep); }
.tic-flash a { color: inherit; font-weight: 700; }
.tic { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 22px; align-items: start; }
.tic-card { background: var(--rwm-white); border: 1.5px solid var(--rwm-line); border-radius: 16px; padding: 20px; }
.tic-side { display: grid; gap: 16px; position: sticky; top: 90px; }
.tic-tabs { display: grid; grid-template-columns: 1fr 1fr; border-bottom: 2px solid var(--rwm-line); }
.tic-tab { text-align: center; padding: 12px; font-weight: 700; font-size: 14px; color: var(--rwm-muted); text-decoration: none; border-radius: 12px 12px 0 0; margin-bottom: -2px; border-bottom: 2px solid transparent; }
.tic-tab.on { background: var(--rwm-red); color: #fff; border-bottom-color: var(--rwm-black); }
.tic-tab.off { opacity: .4; cursor: not-allowed; }
a.tic-tab:hover { color: var(--rwm-red); }
.tic-back { font-size: 13px; color: var(--rwm-ink); text-decoration: none; display: inline-block; margin-bottom: 14px; }
.tic-shot { display: flex; justify-content: center; margin-bottom: 14px; }
.tic-shot img { width: 150px; height: 150px; object-fit: contain; mix-blend-mode: multiply; }
.tic-shot .noimg { width: 150px; height: 150px; display: grid; place-items: center; background: var(--rwm-paper); border-radius: 14px; color: var(--rwm-muted); }
.tic-name { font-family: Outfit, sans-serif; font-size: 19px; font-weight: 800; margin: 0 0 4px; letter-spacing: -.01em; }
.tic-picked { color: var(--rwm-muted); font-size: 13px; margin: 0 0 8px; }
.tic-high { font-size: 14px; font-weight: 700; margin: 0 0 6px; }
.tic-high b { background: var(--rwm-red); color: #fff; border-radius: 999px; padding: 2px 10px; margin-left: 4px; }
/* What an answer takes off: a pill on the chosen answer (on a "tick what you have" list, on what is left unticked). */
.tic-less { display: none; align-self: center; margin-top: 4px; padding: 1px 9px; border-radius: 999px; background: var(--rwm-black); color: #fff; font-size: 12px; font-weight: 700; }
input:checked + .tic-opt-in .tic-less:not(.tic-less-missing), input:not(:checked) + .tic-opt-in .tic-less-missing { display: inline-block; }
.tic-cuts { list-style: none; margin: 14px 0 0; padding: 0; font-size: 13px; }
.tic-cuts li { padding: 6px 0; }
.tic-cuts li strong { display: block; font-size: 13px; margin-bottom: 2px; }
.tic-cuts li > span { display: flex; justify-content: space-between; gap: 12px; }
.tic-cuts li b { font-weight: 800; white-space: nowrap; }
.tic-less.tic-wa { background: #25d366; }
.tic-manual { display: flex; flex-direction: column; gap: 4px; margin: 14px 0 0; padding: 12px 14px; border-radius: 12px; background: #fff7e0; border: 1.5px solid #f5c542; font-size: 13px; color: var(--rwm-black); }
.tic-manual[hidden], .tic-wa-btn[hidden], .tic-add[hidden] { display: none; }
.tic-value { border-top: 1.5px solid var(--rwm-line); margin-top: 14px; padding-top: 16px; display: flex; justify-content: space-between; align-items: baseline; font-weight: 800; font-size: 16px; }
.tic-value b { font-size: 22px; color: var(--rwm-black); }
.tic-note { display: flex; gap: 12px; background: var(--rwm-red-wash); border: 1.5px solid #f6c9ce; border-radius: 14px; padding: 14px 16px; color: var(--rwm-red-deep); }
.tic-note svg { flex: none; margin-top: 2px; }
.tic-note p { margin: 0; font-size: 13px; line-height: 1.55; color: var(--rwm-ink); }
.tic-how h3 { font-family: Outfit, sans-serif; font-size: 16px; font-weight: 800; margin: 0 0 12px; }
.tic-how ol { list-style: none; margin: 0; padding: 0; counter-reset: s; display: grid; gap: 12px; }
.tic-how li { counter-increment: s; display: grid; grid-template-columns: 28px 1fr; column-gap: 10px; font-size: 13px; }
.tic-how li::before { content: counter(s); grid-row: span 2; width: 26px; height: 26px; border-radius: 50%; background: var(--rwm-black); color: #fff; display: grid; place-items: center; font-weight: 800; font-size: 12px; }
.tic-how li b { font-size: 13.5px; }
.tic-how li span { color: var(--rwm-muted); line-height: 1.45; }
.tic-main { padding: 26px; }
.tic-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; margin-bottom: 22px; }
.tic-head h1 { font-family: Outfit, sans-serif; font-size: 26px; font-weight: 800; letter-spacing: -.02em; margin: 0; line-height: 1.15; text-wrap: balance; }
.tic-pill { display: inline-flex; border: 1.5px solid var(--rwm-line); border-radius: 999px; padding: 4px; flex: none; }
.tic-pill > * { padding: 6px 18px; border-radius: 999px; font-size: 13px; font-weight: 700; text-decoration: none; color: var(--rwm-muted); }
.tic-pill .on { background: var(--rwm-red); color: #fff; }
.tic-pill .off { opacity: .4; }
.tic-step { border: 0; margin: 0 0 22px; padding: 0; min-width: 0; transition: opacity .2s, filter .2s; }
.tic-step[data-locked] { opacity: .45; filter: blur(2px); pointer-events: none; }
.tic-step legend { font-weight: 700; font-size: 14px; margin-bottom: 10px; padding: 0; }
.tic-step legend small { color: var(--rwm-muted); font-weight: 500; margin-left: 6px; }
.tic-opts { display: grid; gap: 10px; }
.tic-opts-4 { grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); }
.tic-opts-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.tic-opt { position: relative; cursor: pointer; }
.tic-opt input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.tic-opt-in { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 2px; min-height: 58px; padding: 10px 12px; border: 1.5px solid var(--rwm-line); border-radius: 12px; background: var(--rwm-white); transition: border-color .15s, background .15s; }
.tic-opt-in b { font-size: 14px; font-weight: 600; }
.tic-opt-in small { font-size: 12px; color: var(--rwm-muted); }
.tic-opt:hover .tic-opt-in { border-color: var(--rwm-ink); }
.tic-opt input:checked + .tic-opt-in { border: 2px solid var(--rwm-red); background: var(--rwm-red-wash); }
.tic-opt input:checked + .tic-opt-in small { color: var(--rwm-red-deep); }
.tic-opt input:checked + .tic-opt-in small.tic-less, .tic-opt input + .tic-opt-in small.tic-less { color: #fff; }  /* the deduction pill stays white on black, not the selected red */
.tic-opt input:focus-visible + .tic-opt-in { outline: 2px solid var(--rwm-black); outline-offset: 2px; }
.tic-chk .tic-opt-in b::before { content: ""; display: inline-block; width: 14px; height: 14px; border: 1.5px solid var(--rwm-muted); border-radius: 4px; margin-right: 8px; vertical-align: -2px; }
.tic-chk input:checked + .tic-opt-in b::before { background: var(--rwm-red); border-color: var(--rwm-red); box-shadow: inset 0 0 0 2px #fff; }
.tic-actions { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; border-top: 1.5px solid var(--rwm-line); padding-top: 20px; }
.tic-add { display: inline-flex; align-items: center; gap: 8px; }
.tic-add[disabled] { opacity: .45; cursor: not-allowed; }
.tic-more { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 16px; font-size: 14px; color: var(--rwm-muted); }
.tic-switch { margin: 18px 0 0; font-size: 14px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; }
.tic-switch a { color: var(--rwm-red); font-weight: 700; }
.tic-terms { max-width: none; margin-top: 34px; background: var(--rwm-white); border: 1.5px solid var(--rwm-line); border-radius: 16px; padding: 26px; }
.tic-terms h2 { font-family: Outfit, sans-serif; font-size: 22px; font-weight: 800; margin: 0 0 12px; }
.tic-terms h3 { font-family: Outfit, sans-serif; font-size: 17px; font-weight: 800; margin: 22px 0 8px; }
.tic-terms p, .tic-terms li { font-size: 14px; line-height: 1.65; color: var(--rwm-ink); }
.tic .ti-modal[hidden] { display: none; }
.rwm-dtrade .rwm-dthumb { display: grid; place-items: center; color: var(--rwm-good); }
.rwm-dtrade-tot span, .rwm-dtrade-tot b { color: var(--rwm-good); font-size: 13px; }
@media (max-width: 900px) {
  .tic { grid-template-columns: 1fr; }
  .tic-side { position: static; }
  .tic-how { display: none; }
}
@media (max-width: 520px) {
  .tic-main { padding: 18px; }
  .tic-head { flex-direction: column; }
  .tic-head h1 { font-size: 22px; }
  .tic-opts-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tic-actions .pill-btn { flex: 1; justify-content: center; }
}

/* ================================================================
   Product cards: white ground, product fills the shot (shop request 2026-10-20).
   The grey panel plus two layers of 20px padding plus a 132px height cap left the
   phone as a thumbnail on an iPhone 15 Pro Max. Now the shot is a square white
   panel and the image fills it (contain, so nothing is cropped). multiply blending
   above still knocks out the white boxes in the source photos.
   ================================================================ */
.card .shot {
  background: var(--rwm-white);
  border: 1px solid var(--rwm-line);
  padding: 6px;
  min-height: 0;
  aspect-ratio: 1 / 1;
}
.card .shot img {
  width: 100%; height: 100%;
  max-width: none; max-height: none;
  object-fit: contain;
}
.card .stock { border: 1px solid var(--rwm-line); }
@media (max-width: 640px) {
  .card { padding: 12px; gap: 10px; }
  .card .shot { padding: 4px; border-radius: var(--r-md); }
}

/* ---------------- product FAQ (shop request 2026-10-20) ---------------- */
.p-faq { margin-top: 52px; display: grid; gap: 10px; }
.p-faq h2 { margin: 0 0 6px; }
.p-faq details {
  border: 1.5px solid var(--rwm-line); border-radius: var(--r-md);
  background: var(--rwm-white); padding: 0 18px;
}
.p-faq summary {
  list-style: none; cursor: pointer; padding: 16px 28px 16px 0; position: relative;
  font-weight: 700; color: var(--rwm-ink);
}
.p-faq summary::-webkit-details-marker { display: none; }
.p-faq summary::after {
  content: "+"; position: absolute; right: 0; top: 50%; transform: translateY(-50%);
  font-size: 20px; font-weight: 600; color: var(--rwm-muted);
}
.p-faq details[open] summary::after { content: "\2212"; }
.p-faq summary:focus-visible { outline: 3px solid var(--rwm-red); outline-offset: 4px; border-radius: 8px; }
.p-faq details p { margin: 0 0 16px; color: var(--rwm-muted); line-height: 1.6; }
.p-faq details a { color: var(--rwm-red); font-weight: 600; }

/* ================================================================
   Trade-in hub: brand -> model -> quote (inc/tradein-steps.php, 2026-10-20)
   ================================================================ */
.tis { display: grid; gap: 18px; margin: 8px 0 48px; scroll-margin-top: 140px; }
.tis-steps { list-style: none; margin: 0 0 6px; padding: 0; display: flex; gap: 8px; flex-wrap: wrap; }
.tis-steps li {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 14px 6px 6px; border-radius: var(--pill);
  border: 1.5px solid var(--rwm-line); color: var(--rwm-muted); font-size: 13px; font-weight: 600;
}
.tis-steps .n {
  width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center;
  background: var(--rwm-paper); color: var(--rwm-muted); font-size: 12px; font-weight: 700;
}
.tis-steps li.on { border-color: var(--rwm-black); color: var(--rwm-black); }
.tis-steps li.on .n { background: var(--rwm-black); color: #fff; }
.tis-steps li.done { color: var(--rwm-good); }
.tis-steps li.done .n { background: var(--rwm-good); color: #fff; }
.tis-h { margin: 0; font-size: clamp(22px, 3vw, 28px); }
.tis-lede { margin: -8px 0 0; color: var(--rwm-muted); }
.tis-back { color: var(--rwm-ink); font-weight: 600; text-decoration: none; justify-self: start; }
.tis-back:hover { color: var(--rwm-red); }

.tis-search {
  display: flex; align-items: center; gap: 10px;
  border: 1.5px solid var(--rwm-line); border-radius: var(--pill);
  padding: 0 16px; background: var(--rwm-white); max-width: 560px;
}
.tis-search:focus-within { border-color: var(--rwm-black); }
.tis-search input { border: 0; outline: 0; background: none; flex: 1; min-width: 0; padding: 13px 0; font-size: 16px; }
.tis-results {
  list-style: none; margin: -8px 0 0; padding: 6px; max-width: 560px;
  border: 1.5px solid var(--rwm-line); border-radius: var(--r-md); background: var(--rwm-white);
  box-shadow: var(--sh-2);
}
.tis-results a {
  display: flex; justify-content: space-between; gap: 12px; padding: 10px 12px;
  border-radius: var(--r-sm); text-decoration: none; color: var(--rwm-ink);
}
.tis-results a:hover, .tis-results a:focus-visible { background: var(--rwm-paper); }
.tis-results span { color: var(--rwm-good); font-weight: 700; white-space: nowrap; }
.tis-results .none { padding: 10px 12px; color: var(--rwm-muted); }

.tis-brands { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.tis-brand {
  display: grid; justify-items: center; gap: 6px; text-align: center;
  padding: 22px 12px 18px; border: 1.5px solid var(--rwm-line); border-radius: var(--r-lg);
  background: var(--rwm-white); text-decoration: none; color: var(--rwm-ink);
  transition: border-color .18s var(--ease), box-shadow .18s var(--ease), transform .18s var(--ease);
}
.tis-brand:hover { border-color: transparent; box-shadow: var(--sh-2); transform: translateY(-2px); }
.tis-logo { width: 56px; height: 56px; display: grid; place-items: center; }
.tis-logo img { max-width: 56px; max-height: 56px; }
.tis-brand b { font-size: 16px; }
.tis-count { font-size: 12.5px; color: var(--rwm-muted); }

.tis-models { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 14px; }
.tis-model {
  display: grid; gap: 10px; align-content: start;
  padding: 14px; border: 1.5px solid var(--rwm-line); border-radius: var(--r-lg); background: var(--rwm-white);
}
.tis-model[hidden] { display: none; }
.tis-main { display: grid; gap: 6px; text-decoration: none; color: var(--rwm-ink); justify-items: center; text-align: center; }
.tis-shot { width: 100%; aspect-ratio: 1 / 1; display: grid; place-items: center; isolation: isolate; }
.tis-shot img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; }
.tis-shot .noimg { width: 70%; height: 70%; border-radius: var(--r-md); background: repeating-linear-gradient(45deg, var(--rwm-paper) 0 10px, #eceef1 10px 20px); }
.tis-name { font-size: 15px; }
.tis-upto { font-size: 12.5px; color: var(--rwm-muted); }
.tis-upto em { font-style: normal; color: var(--rwm-good); font-weight: 700; }
.tis-conds { display: flex; gap: 8px; justify-content: center; }
.tis-cond {
  flex: 1; text-align: center; padding: 8px 0; border-radius: var(--pill);
  font-size: 13px; font-weight: 700; text-decoration: none; border: 1.5px solid;
}
.tis-cond.new { color: #1d4ed8; border-color: #bfd0fb; background: #f2f6ff; }
.tis-cond.used { color: var(--rwm-warn); border-color: #f5d3a8; background: #fff8ef; }
.tis-cond:hover { filter: brightness(.96); }
.tis-none, .tis-help { margin: 0; color: var(--rwm-muted); }
.tis-none a, .tis-help a { color: var(--rwm-red); font-weight: 600; }
@media (max-width: 640px) {
  .tis-brands { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .tis-models { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .tis-model { padding: 10px; }
}

/* Checkout: WooCommerce floats #place_order right, which leaves it beside the reserve line. Stack them instead. */
.woocommerce-checkout #payment #place_order { float: none; display: block; width: 100%; margin: 6px 0 0; }
.woocommerce-checkout .rwm-reserve { justify-content: center; }

/* Checkout: collection methods as cards, the card-fee badge and its tooltip, Pay In Store. */
/* Cards sit in the left column (not the order table); beat woocommerce.css's #shipping_method li rules. */
.rwm-collect { margin-bottom: 24px; }
.woocommerce-checkout #shipping_method.rwm-ship-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin: 0; padding: 0; }
@media (max-width: 640px) { .woocommerce-checkout #shipping_method.rwm-ship-cards { grid-template-columns: 1fr; } }
.woocommerce-checkout #shipping_method .rwm-ship-card label, .woocommerce-checkout #shipping_method .rwm-ship-card > a { display: block; height: 100%; }
.woocommerce-checkout #shipping_method .rwm-ship-card input { position: absolute; top: 16px; left: 14px; margin: 0; }
.woocommerce-checkout #shipping_method .rwm-ship-card { position: relative; margin: 0; }
.rwm-ship-card input { position: absolute; top: 16px; left: 14px; margin: 0; }
.rwm-ship-card label, .rwm-ship-card > a { display: block; border: 1.5px solid var(--rwm-line); border-radius: 12px; padding: 12px 14px 12px 38px; background: #fff; cursor: pointer; text-align: left; color: var(--rwm-ink); text-decoration: none; }
.rwm-ship-card > a { padding-left: 14px; }
.rwm-ship-card label > span, .rwm-ship-card > a > span { display: block; font-size: 12.5px; color: var(--rwm-muted); margin-top: 2px; }
.rwm-ship-card input:checked + label { border-color: var(--rwm-red); background: var(--rwm-red-wash); }
.rwm-ship-card input:focus-visible + label, .rwm-ship-card > a:focus-visible { outline: 2px solid var(--rwm-red); outline-offset: 2px; }
.rwm-pay { border: 0; padding: 0; margin: 0; }
.rwm-pay legend { font-weight: 700; margin-bottom: 8px; }
.rwm-badge { font-size: 11px; font-weight: 700; color: var(--rwm-red-deep); background: var(--rwm-red-wash); border-radius: 6px; padding: 2px 6px; margin-left: 4px; }
.rwm-tip { position: relative; display: inline-block; }
.rwm-tip-btn { border: 0; background: none; padding: 0 4px; font-size: 15px; line-height: 1; color: var(--rwm-muted); cursor: help; }
.rwm-tip [role=tooltip] { display: none; position: absolute; z-index: 5; left: 50%; bottom: 140%; transform: translateX(-50%); width: 220px; padding: 8px 10px; border-radius: 8px; background: var(--rwm-black); color: #fff; font-size: 12px; line-height: 1.4; }
.rwm-tip:hover [role=tooltip], .rwm-tip-btn:focus + [role=tooltip] { display: block; }
.rwm-pay-total, .rwm-pay-note { display: block; font-size: 13px; color: var(--rwm-muted); margin: 4px 0 0 24px; }
.rwm-pay input:disabled + label { opacity: .5; }

/* Checkout on phones: a side gutter so cards and inputs do not touch the screen edge. */
@media (max-width: 640px) { .woocommerce-checkout .wrap { padding-left: 16px; padding-right: 16px; } }
/* Same-day is a WhatsApp link, not an option: no radio gap, a dashed link card instead. */
.rwm-ship-card.rwm-ship-wa > a { border-style: dashed; background: var(--rwm-paper); }
.rwm-ship-card.rwm-ship-wa > a strong { color: var(--rwm-red-deep); }
/* Add to cart: busy while the cart call runs (about 2s), so the tap visibly took. */
[name="add-to-cart"].is-loading { cursor: progress; opacity: .75; }
[name="add-to-cart"].is-loading::after { content: ""; display: inline-block; width: 14px; height: 14px; margin-left: 8px; vertical-align: -2px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: rwm-spin .7s linear infinite; }
@keyframes rwm-spin { to { transform: rotate(360deg); } }
/* Trade-in: the active brand tab's count on red; the empty-value prompt in body size. */
.pill-btn.solid .tis-count { color: rgba(255, 255, 255, .85); }
.tic-value b small { font-size: 13px; font-weight: 600; color: var(--rwm-muted); }

/* Add-to-cart timeout notice (shop.js) */
.p-add-error { margin: 8px 0 0; font-size: 14px; color: var(--rwm-red, #c8102e); }
.p-add-error .link { background: none; border: 0; padding: 0; color: inherit; font: inherit; text-decoration: underline; cursor: pointer; }
