/* ── Payless Refacing Visualizer — the client's page ─────────────────────────
   Opened from a link on a phone, a tablet or a computer. Payless's blue, on a page of
   its own like the work-style questionnaire: no Hub stylesheet is loaded here, so every
   colour is an --rv- token below. Built for a phone first; wider screens centre it. */

:root {
  --rv-blue: #3b5bab;
  --rv-blue-dark: #263f80;
  --rv-blue-soft: #e8eefa;
  --rv-blue-line: #c9d6f2;
  --rv-ink: #1f2a3d;
  --rv-ink-soft: #5d6878;
  --rv-card: #fff;   /* solid: over the dark kitchen photo a see-through card turns grey */
  --rv-ok: #15803d;
  --rv-ok-soft: #e7f6ec;
  --rv-warn: #9a5b00;
  --rv-warn-soft: #fff4e0;
  --rv-bad: #b42318;
  --rv-radius: 18px;
  --rv-shadow: 0 12px 32px rgba(35, 60, 120, 0.12), 0 2px 6px rgba(35, 60, 120, 0.08);
  --rv-font: Montserrat, "Segoe UI", -apple-system, BlinkMacSystemFont, Roboto, Arial, sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; color: var(--rv-ink); font-family: var(--rv-font); font-size: 16px; line-height: 1.45;
  background: #0b1f3a;   /* Payless navy; the kitchen photo over it is rv_backdrop.css */
  min-height: 100vh;
}
[hidden] { display: none !important; }
button, input, textarea { font: inherit; color: inherit; }
img { max-width: 100%; }

/* Notes about what the page can't do yet (a photo it can't open, the drawing instead of the AI) */
.rv-demo { color: var(--rv-warn) !important; }
/* The honeypot: a field people never see; a bot that fills every field fills it (rv_store.js). */
.rv-hp { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.rv-turnstile { margin: 6px 0 2px; min-height: 0; }
.rv-turnstile:not(:empty) { min-height: 65px; }
p.rv-demo, .rv-yours.rv-demo { background: var(--rv-warn-soft); border: 1px dashed #e9c98f; border-radius: 10px; padding: 8px 12px; }

/* ── Top bar and progress ────────────────────────────────────────────────── */
.rv-top { position: sticky; top: 0; z-index: 20; background: #fff;   /* solid, so the logo's white sits on white */
  box-shadow: 0 2px 14px rgba(5, 15, 35, 0.35); padding: calc(8px + env(safe-area-inset-top)) 16px 8px; }
.rv-top-row { max-width: 760px; margin: 0 auto; display: flex; align-items: center; gap: 12px; }
.rv-logo { display: block; height: 54px; width: auto; flex: none; }
.rv-home { display: flex; align-items: center; gap: 12px; flex: 1; min-width: 0; text-decoration: none; border-radius: 10px; }
.rv-home:focus-visible { outline: 3px solid #9db4ea; outline-offset: 3px; }
.rv-brand { font-weight: 800; color: var(--rv-blue-dark); font-size: 15px; letter-spacing: 0.2px; flex: 1; min-width: 0; }
.rv-brand span { font-weight: 500; color: var(--rv-ink-soft); }
.rv-call { flex: none; text-decoration: none; color: var(--rv-blue-dark); font-weight: 700; font-size: 14px; padding: 0 14px; min-height: 44px; min-width: 44px;
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  border-radius: 999px; border: 1px solid var(--rv-blue-line); background: #fff; white-space: nowrap; }
.rv-call:hover { background: var(--rv-blue-soft); }
@media (max-width: 520px) { .rv-logo { height: 46px; } .rv-brand span { display: block; font-size: 12px; } .rv-call span { display: none; } }

/* The website's own top bar (rating, Call Us Today, social links), read from the website by the
   Hub. It scrolls away; the header under it stays. On a computer the bar carries the phone, so
   the header's call button steps aside; on a phone the bar shows the rating and the round call
   button stays. */
.rv-site-bar { background: #2e65ab; color: #fff; min-height: 40px; }
.rv-site-bar[hidden] { display: none; }
.rv-site-in { max-width: 1100px; margin: 0 auto; padding: 6px 16px; min-height: 40px; display: flex; align-items: center;
  justify-content: space-between; gap: 16px; }
.rv-site-bar a { color: #fff; text-decoration: none; }
.rv-site-bar a:hover { text-decoration: underline; text-underline-offset: 3px; }
.rv-site-bar a:focus-visible { outline: 2px solid #fff; outline-offset: 2px; border-radius: 6px; }
.rv-site-rating { display: inline-flex; align-items: center; gap: 12px; font-weight: 600; font-size: 15px; min-height: 32px; min-width: 0; }
.rv-site-rating span:last-child { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.rv-stars { color: #ffd700; letter-spacing: 3px; font-size: 14px; flex: none; }
.rv-site-end { display: inline-flex; align-items: center; gap: 16px; flex: none; }
.rv-site-call { display: inline-flex; align-items: center; gap: 12px; font-size: 15.5px; font-weight: 600; min-height: 32px; white-space: nowrap; }
.rv-site-call b { font-weight: 600; letter-spacing: 0.3px; }
.rv-socs { display: inline-flex; gap: 8px; }
.rv-soc { width: 30px; height: 30px; border-radius: 50%; background: #f13857; display: grid; place-items: center; flex: none;
  transition: transform 0.15s ease, background 0.15s ease; }
.rv-site-bar .rv-soc:hover { transform: translateY(-1px); background: #d92a48; text-decoration: none; }
.rv-soc svg { width: 17px; height: 17px; display: block; }
.rv-soc b { font-size: 14px; }
@media (min-width: 640px) { .rv-top.has-site-bar .rv-call { display: none; } }
@media (max-width: 880px) { .rv-socs { display: none; } }
@media (max-width: 760px) { .rv-site-call span { display: none; } }
@media (max-width: 639px) {
  .rv-site-call { display: none; }
  .rv-site-in { justify-content: center; padding: 6px 12px; }
  .rv-site-rating { font-size: 13px; gap: 8px; text-align: center; }
  .rv-stars { font-size: 12px; letter-spacing: 2px; }
}
.rv-progress { max-width: 760px; margin: 8px auto 0; display: flex; align-items: center; gap: 10px; }
.rv-back { flex: none; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--rv-blue-line); background: #fff;
  color: var(--rv-blue-dark); font-size: 22px; line-height: 1; cursor: pointer; display: grid; place-items: center; padding: 0 0 3px; }
.rv-back:hover { background: var(--rv-blue-soft); }
.rv-progress-bar { flex: 1; height: 8px; border-radius: 99px; background: var(--rv-blue-soft); overflow: hidden; }
.rv-progress-bar span { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--rv-blue), #5b7ad1);
  border-radius: 99px; transition: width .3s ease; }
.rv-progress-text { flex: none; font-size: 12.5px; font-weight: 600; color: var(--rv-ink-soft); }
@media (max-width: 520px) { .rv-progress { flex-wrap: wrap; } .rv-progress-text { width: 100%; order: 3; padding-left: 54px; margin-top: -4px; } }

/* ── Page and cards ──────────────────────────────────────────────────────── */
/* Header row 760 = card 760 (792 less the 16px gutters), so every edge on the page lines up. */
.rv-main { max-width: 792px; margin: 0 auto; padding: 18px 16px 24px; }
.rv-loading { text-align: center; padding: 60px 16px; color: var(--rv-ink-soft); }
.rv-card, .rv-hero { background: var(--rv-card); border-radius: var(--rv-radius); box-shadow: var(--rv-shadow); padding: 22px 20px;
  display: flex; flex-direction: column; gap: 16px; border: 1px solid rgba(255, 255, 255, 0.7); }
@media (min-width: 640px) { .rv-card, .rv-hero { padding: 28px 30px; } }
.rv-h1 { font-size: 26px; line-height: 1.2; margin: 0; color: var(--rv-blue-dark); letter-spacing: -0.3px; }
.rv-h { font-size: 22px; line-height: 1.25; margin: 0; color: var(--rv-blue-dark); }
h1:focus { outline: none; }
.rv-lead { margin: -8px 0 0; color: var(--rv-ink-soft); }
.rv-small { margin: 0; font-size: 13px; color: var(--rv-ink-soft); }
.rv-links { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 0 18px; margin: 0; }
.rv-links .rv-small { text-align: center; }
.rv-note { margin: 0; padding: 10px 14px; border-radius: 12px; background: var(--rv-blue-soft); color: var(--rv-blue-dark); font-size: 14px; }
.rv-empty { text-align: center; color: var(--rv-ink-soft); padding: 24px 0; margin: 0; }
/* The Backsplash tab after a new countertop: a tile is needed, so say why there is no "Keep" card. */
.rv-need { margin: 0 0 12px; padding: 10px 14px; border-radius: 12px; background: var(--rv-blue-soft); border: 1px solid var(--rv-blue-line);
  color: var(--rv-blue-dark); font-size: 14px; font-weight: 600; }
.rv-ai-count { display: flex; gap: 8px; align-items: flex-start; margin: 4px 0 12px; padding: 10px 14px; border-radius: 12px;
  background: var(--rv-blue-soft); border: 1px solid var(--rv-blue-line); color: var(--rv-blue-dark); font-size: 14px; line-height: 1.45; }
.rv-err { margin: 0; color: var(--rv-bad); font-weight: 600; font-size: 14px; }
.rv-err:empty { display: none; }

/* ── Buttons ─────────────────────────────────────────────────────────────── */
.rv-btn { border: 0; border-radius: 12px; padding: 13px 22px; font-weight: 700; font-size: 16px; cursor: pointer; color: #fff;
  background: linear-gradient(180deg, #4766b8, var(--rv-blue)); box-shadow: 0 6px 16px rgba(59, 91, 171, 0.3);
  transition: transform .15s, box-shadow .15s, opacity .15s; min-height: 48px; }
.rv-btn:hover:not(:disabled) { transform: translateY(-1px); box-shadow: 0 10px 22px rgba(59, 91, 171, 0.35); }
.rv-btn:disabled { opacity: 0.45; cursor: not-allowed; box-shadow: none; }
.rv-btn.ghost { background: #fff; color: var(--rv-blue-dark); border: 1px solid var(--rv-blue-line); box-shadow: none; padding: 12px 21px; }
.rv-btn.ghost:hover:not(:disabled) { background: var(--rv-blue-soft); }
.rv-link { background: none; border: 0; padding: 10px 8px; min-height: 44px; color: var(--rv-blue); font-weight: 600; cursor: pointer;
  text-decoration: underline; text-underline-offset: 3px; font-size: 15px; align-self: center; }
.rv-link.sm { font-size: 13.5px; color: var(--rv-ink-soft); }
.rv-btn:focus-visible, .rv-link:focus-visible, .rv-back:focus-visible, .rv-call:focus-visible { outline: 3px solid #9db4ea; outline-offset: 2px; }

/* The button row: inline on a computer; on a phone the long steps pin it to the bottom. */
.rv-bar { display: flex; gap: 10px; align-items: center; justify-content: flex-end; flex-wrap: wrap; }
.rv-bar:empty { display: none; }
.rv-bar-note { flex: 1; min-width: 0; font-size: 14px; color: var(--rv-ink-soft); }
.rv-bar.sticky { position: sticky; bottom: 0; z-index: 5; margin: 0 -21px -23px; padding: 12px 21px calc(12px + env(safe-area-inset-bottom));
  background: rgba(255, 255, 255, 0.94); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  border-top: 1px solid var(--rv-blue-line); border-radius: 0 0 var(--rv-radius) var(--rv-radius); }
@media (min-width: 640px) { .rv-bar.sticky { margin: 0 -31px -29px; padding: 14px 31px; } }
/* R9: "See the price with" — everything, no countertop, or no countertop or backsplash. */
.rv-without { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin: 14px 0 4px; }
.rv-without .rv-lbl { margin: 0; font-size: 14px; font-weight: 700; }
/* The consent line (R11, 2026-11-18): small, right under the details button. */
.rv-consent { margin: 8px 0 0; font-size: 12.5px; line-height: 1.4; color: var(--rv-ink-soft); text-align: right; }
@media (max-width: 560px) {
  .rv-consent { text-align: center; }
  .rv-bar { flex-direction: column-reverse; align-items: stretch; }
  .rv-bar .rv-btn { width: 100%; }
  .rv-bar.sticky .rv-bar-note { text-align: center; font-size: 13px; }
}

/* ── Welcome ─────────────────────────────────────────────────────────────── */
.rv-hero-pic { border-radius: 14px; }
.rv-how { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.rv-how li { background: var(--rv-blue-soft); border-radius: 14px; padding: 12px; display: flex; flex-direction: column; gap: 2px; }
.rv-how li span { font-size: 22px; }
.rv-how li b { font-size: 14px; color: var(--rv-blue-dark); }
.rv-how li small { font-size: 12.5px; color: var(--rv-ink-soft); }
@media (max-width: 520px) { .rv-how { gap: 8px; } .rv-how li { padding: 10px 8px; text-align: center; align-items: center; }
  .rv-how li b { font-size: 13px; } .rv-how li small { font-size: 11.5px; line-height: 1.3; } }

/* The welcome page's one big button: full width, the website's blue, a slow sheen and a soft
   pulse to draw the eye (none of that for people who turn motion off). On a phone it stays
   pinned to the bottom of the screen until the visitor scrolls down to it. */
.rv-cta { position: relative; overflow: hidden; display: flex; align-items: center; justify-content: center; gap: 12px; width: 100%;
  min-height: 64px; padding: 16px 24px; border: 0; border-radius: 16px; cursor: pointer; color: #fff; font: inherit; font-size: 20px;
  font-weight: 800; letter-spacing: 0.2px; background: linear-gradient(135deg, #2e65ab 0%, var(--rv-blue) 50%, #5b7ad1 100%);
  box-shadow: 0 12px 28px rgba(46, 101, 171, 0.38), inset 0 1px 0 rgba(255, 255, 255, 0.25);
  transition: transform 0.15s ease; animation: rv-pulse 2.6s ease-out infinite; }
.rv-cta:hover { transform: translateY(-2px); }
.rv-cta:active { transform: translateY(0); }
.rv-cta:focus-visible { outline: 3px solid #9db4ea; outline-offset: 3px; }
.rv-cta-ico { font-size: 22px; }
.rv-cta-arrow { font-size: 22px; transition: transform 0.2s ease; }
.rv-cta:hover .rv-cta-arrow { transform: translateX(5px); }
.rv-cta::after { content: ''; position: absolute; inset: 0; pointer-events: none; transform: translateX(-100%);
  background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, 0.3) 50%, transparent 70%); animation: rv-sheen 3.6s ease-in-out 1s infinite; }
@keyframes rv-sheen { 0%, 55% { transform: translateX(-100%); } 100% { transform: translateX(100%); } }
@keyframes rv-pulse { 0%, 100% { box-shadow: 0 12px 28px rgba(46, 101, 171, 0.38), 0 0 0 0 rgba(91, 122, 209, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.25); }
  60% { box-shadow: 0 12px 28px rgba(46, 101, 171, 0.38), 0 0 0 12px rgba(91, 122, 209, 0), inset 0 1px 0 rgba(255, 255, 255, 0.25); } }
@media (prefers-reduced-motion: reduce) { .rv-cta { animation: none; } .rv-cta::after { display: none; } .rv-cta:hover, .rv-cta:hover .rv-cta-arrow { transform: none; } }
@media (max-width: 639px) {
  .rv-cta-wrap { position: sticky; bottom: 0; z-index: 6; margin: 0 -20px; padding: 12px 20px calc(14px + env(safe-area-inset-bottom));
    background: linear-gradient(to top, rgba(255, 255, 255, 0.98) 72%, rgba(255, 255, 255, 0)); }
  .rv-cta { font-size: 19px; min-height: 60px; }
}

/* ── Photo ───────────────────────────────────────────────────────────────── */
.rv-choices { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; }
.rv-choice { position: relative; display: flex; flex-direction: column; align-items: center; gap: 4px; text-align: center; padding: 26px 14px;
  border: 2px dashed var(--rv-blue-line); border-radius: 16px; background: var(--rv-blue-soft); cursor: pointer; transition: .15s; }
.rv-choice:hover, .rv-choice:focus-within { border-style: solid; border-color: var(--rv-blue); box-shadow: 0 8px 20px rgba(59, 91, 171, 0.15); }
.rv-choice .bi { font-size: 30px; }
.rv-choice b { font-size: 16px; color: var(--rv-blue-dark); }
.rv-choice small { font-size: 13px; color: var(--rv-ink-soft); }
.rv-choice input { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; }
/* The photo guide: loud on purpose, before the buttons (a one-corner photo makes a one-corner design). */
.rv-guide { border: 2px solid var(--rv-blue); border-radius: 18px; background: linear-gradient(180deg, #f3f6fd 0%, #fff 100%); padding: 16px 16px 14px; }
.rv-guide-h { margin: 0 0 4px; font-size: 19px; color: var(--rv-blue-dark); display: flex; align-items: center; gap: 8px; }
.rv-guide-lead { margin: 0 0 12px; font-size: 15px; }
.rv-guide-pics { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 0 0 12px; }
.rv-guide-pics figure { margin: 0; }
.rv-guide-pic { aspect-ratio: 5 / 3; overflow: hidden; border-radius: 10px; border: 3px solid var(--rv-ok); background: var(--rv-blue-soft); }
.rv-guide-pic svg { width: 100%; height: 100%; display: block; }
.rv-guide-pic.zoom { border-color: var(--rv-bad); }
.rv-guide-pic.zoom svg { transform: scale(2.6); transform-origin: 18% 72%; }
.rv-guide-pics figcaption { margin-top: 5px; font-size: 13.5px; font-weight: 700; text-align: center; }
.rv-guide-pics .good figcaption { color: var(--rv-ok); }
.rv-guide-pics .bad figcaption { color: var(--rv-bad); }
.rv-guide-tips { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.rv-guide-tips li { display: flex; gap: 8px; align-items: center; background: #fff; border: 1px solid var(--rv-blue-line); border-radius: 12px; padding: 8px 10px; }
.rv-guide-tips span { font-size: 22px; flex: none; }
.rv-guide-tips p { margin: 0; font-size: 13.5px; line-height: 1.3; }
@media (max-width: 360px) { .rv-guide-tips { grid-template-columns: 1fr; } }
.rv-photo img, .rv-photo .rv-pic { width: 100%; border-radius: 14px; display: block; max-height: 420px; object-fit: cover; }
.rv-pic { aspect-ratio: 5 / 3; overflow: hidden; background: var(--rv-blue-soft); border-radius: 12px; display: block; }
.rv-pic svg { width: 100%; height: 100%; display: block; }
/* A real photo in a picture box or the slider: fills it, cabinets kept in view (the localhost demo pair). */
.rv-pic img, .rfv-cmp-layer img { width: 100%; height: 100%; max-height: none; display: block; object-fit: cover; object-position: 50% 45%; border-radius: 0; user-select: none; }
.rv-pic-empty, .rv-photo .rv-pic-empty { display: flex; align-items: center; justify-content: center; color: var(--rv-ink-soft); font-weight: 600; }
.rv-checks { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; font-size: 14px; }
.rv-checks li { display: flex; gap: 8px; align-items: flex-start; }
.rv-checks span { width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; font-weight: 800; flex: none; color: #fff; }
.rv-checks .ok span { background: var(--rv-ok); }
.rv-checks .warn span { background: #d98a00; }
.rv-checks .info span { background: var(--rv-blue); font-style: italic; font-family: Georgia, serif; }

/* ── Look ────────────────────────────────────────────────────────────────── */
.rv-seg { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; background: var(--rv-blue-soft); padding: 5px; border-radius: 14px;
  position: sticky; top: calc(var(--rv-top, 96px)); z-index: 4; scroll-margin-top: 110px; }
/* A short phone screen needs its height for the swatches: the tabs scroll away instead. */
@media (max-height: 720px) { .rv-seg { position: static; } .rv-bar.sticky .rv-bar-note { display: none; } }
.rv-seg-btn { border: 0; background: transparent; border-radius: 10px; padding: 9px 8px; cursor: pointer; text-align: center; min-width: 0;
  display: flex; flex-direction: column; gap: 1px; min-height: 48px; justify-content: center; }
.rv-seg-btn b { font-size: 14px; color: var(--rv-blue-dark); }
.rv-seg-btn small { font-size: 12px; color: var(--rv-ink-soft); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rv-seg-btn.on { background: #fff; box-shadow: 0 2px 8px rgba(35, 60, 120, 0.15); }
.rv-seg-btn:focus-visible { outline: 3px solid #9db4ea; }
/* Four tabs on a phone: tighter, so "Countertop" and "Backsplash" fit whole; two rows of two on most phones. */
@media (max-width: 440px) { .rv-seg { gap: 3px; padding: 4px; } .rv-seg-btn { padding: 7px 2px; min-height: 44px; } .rv-seg-btn b { font-size: 12.5px; } .rv-seg-btn small { font-size: 11px; } }
@media (max-width: 400px) { .rv-seg { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.rv-seg.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }   /* every tile hidden: the Backsplash tab is off */
/* Five tabs (hardware, 2026-11-12): one row on a computer; three to a row on a phone, down to the
   narrowest (checked at 360px: labels whole, two rows, as tall as the four-tab bar's). */
.rv-seg.five { grid-template-columns: repeat(5, minmax(0, 1fr)); }
@media (max-width: 560px) { .rv-seg.five { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.rv-tools { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.rv-chips { display: flex; flex-wrap: wrap; gap: 6px; flex: 1; }
.rv-chip { border: 1px solid var(--rv-blue-line); background: #fff; border-radius: 99px; padding: 7px 13px; font-size: 13.5px; font-weight: 600;
  color: var(--rv-ink-soft); cursor: pointer; min-height: 44px; }
.rv-chip.on { background: var(--rv-blue-dark); color: #fff; border-color: var(--rv-blue-dark); }
.rv-tools .rv-search { width: 220px; max-width: 100%; }
@media (max-width: 560px) { .rv-tools .rv-search { width: 100%; } }
.rv-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 10px; }
.rv-grid.doors { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
@media (max-width: 420px) { .rv-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; } .rv-grid.doors { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.rv-sw { position: relative; display: flex; flex-direction: column; gap: 5px; padding: 7px 7px 9px; border-radius: 14px; border: 1px solid var(--rv-blue-line);
  background: #fff; cursor: pointer; text-align: left; min-width: 0; overflow: hidden; transition: .15s; }
.rv-sw:hover { box-shadow: 0 8px 18px rgba(35, 60, 120, 0.12); transform: translateY(-1px); }
.rv-sw.on { border-color: var(--rv-blue-dark); box-shadow: inset 0 0 0 1px var(--rv-blue-dark); background: #f7f9fe; }
.rv-sw.on::after { content: '✓'; position: absolute; top: 11px; right: 11px; width: 24px; height: 24px; border-radius: 50%; background: var(--rv-blue-dark);
  color: #fff; font-size: 13px; font-weight: 800; display: grid; place-items: center; box-shadow: 0 2px 6px rgba(0, 0, 0, .2); }
.rv-sw:focus-visible { outline: 3px solid #9db4ea; outline-offset: 2px; }
.rv-thumb { aspect-ratio: 1; border-radius: 10px; overflow: hidden; background: var(--rv-blue-soft); display: block; }
.rv-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.rv-grid.doors .rv-thumb { aspect-ratio: 3 / 4; background: #fff; border: 1px solid var(--rv-blue-soft); padding: 8px; }
.rv-grid.doors .rv-thumb img { object-fit: contain; }
/* The Hardware tab: knobs, then pulls. Product photos on white, shown whole. */
.rv-hw-h { margin: 18px 0 2px; font-size: 17px; color: var(--rv-blue-dark); scroll-margin-top: calc(var(--rv-top, 96px) + 140px); }
.rv-hw-sub { margin: 0 0 10px; }
.rv-grid.hw .rv-thumb { background: #fff; border: 1px solid var(--rv-blue-soft); padding: 6px; }
.rv-grid.hw .rv-thumb img { object-fit: contain; }
.rv-keep { display: grid; place-items: center; height: 100%; font-size: 12.5px; color: var(--rv-ink-soft); text-align: center; padding: 8px;
  border: 2px dashed var(--rv-blue-line); border-radius: 10px; background: #fff; }
.rv-sw .rv-keep { padding: 34px 8px 8px; }
.rv-keep.sm { width: 44px; height: 44px; padding: 0; flex: none; }
.rv-sw b { font-size: 13px; line-height: 1.25; min-height: 2.5em; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: break-word; }
/* Names keep a two-line slot, so every caption in a row starts at the same height; captions wrap rather than lose words */
.rv-sw small { font-size: 11.5px; color: var(--rv-ink-soft); line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
@media (max-width: 420px) { .rv-sw b, .rv-sw small { -webkit-line-clamp: 3; } }

/* ── Waiting, design, before/after ───────────────────────────────────────── */
.rv-wait { align-items: center; text-align: center; padding-top: 40px; padding-bottom: 40px; }
.rv-spin { width: 52px; height: 52px; border-radius: 50%; border: 5px solid var(--rv-blue-soft); border-top-color: var(--rv-blue); animation: rvSpin .9s linear infinite; }
@keyframes rvSpin { to { transform: rotate(360deg); } }
.rv-wait .rv-lead { margin: -6px 0 0; }
.rv-wait-steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; text-align: left; color: var(--rv-ink-soft); }
.rv-wait-steps li::before { content: '○ '; }
.rv-wait-steps li.on { color: var(--rv-ink); font-weight: 700; }
.rv-wait-steps li.on::before { content: '● '; color: var(--rv-blue); }
.rv-wait-steps li.ok { color: var(--rv-ok); }
.rv-wait-steps li.ok::before { content: '✓ '; }
.rv-yours { display: flex; gap: 10px; align-items: center; font-size: 13px; }
.rv-yours img { width: 72px; height: 48px; object-fit: cover; border-radius: 8px; flex: none; }
.rv-picked { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.rv-picked li { display: flex; gap: 8px; align-items: center; min-width: 0; background: var(--rv-blue-soft); border-radius: 12px; padding: 8px; }
.rv-picked img { width: 44px; height: 44px; border-radius: 8px; object-fit: cover; flex: none; background: #fff; }
.rv-picked img.door, .rv-picked img.hw { object-fit: contain; padding: 3px; }
.rv-picked span { min-width: 0; display: flex; flex-direction: column; }
.rv-picked small { font-size: 11.5px; color: var(--rv-ink-soft); }
.rv-picked b { font-size: 13.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rv-picked.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }   /* every tile hidden: as before */
@media (max-width: 560px) { .rv-picked, .rv-picked.three { grid-template-columns: minmax(0, 1fr); } }
.rv-strip { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 8px; }
.rv-dthumb { display: flex; flex-direction: column; gap: 4px; padding: 5px 5px 7px; border-radius: 12px; border: 1px solid var(--rv-blue-line);
  background: #fff; cursor: pointer; text-align: left; }
.rv-dthumb.on { border-color: var(--rv-blue-dark); box-shadow: inset 0 0 0 1px var(--rv-blue-dark); background: #f7f9fe; }
.rv-dthumb .rv-pic { border-radius: 8px; }
.rv-dthumb small { font-size: 12px; color: var(--rv-ink-soft); }

/* The before/after slider (drawn by ../refacing_visualizer_kitchen.js) */
.rfv-cmp { position: relative; --p: 50%; border-radius: 14px; overflow: hidden; aspect-ratio: 5 / 3; background: var(--rv-blue-soft);
  touch-action: pan-y; cursor: ew-resize; user-select: none; -webkit-user-select: none; box-shadow: 0 8px 24px rgba(35, 60, 120, 0.16); }
.rfv-cmp-layer { position: absolute; inset: 0; }
.rfv-cmp-layer svg { width: 100%; height: 100%; display: block; }
.rfv-cmp-after { clip-path: inset(0 0 0 var(--p)); }
.rfv-cmp-line { position: absolute; top: 0; bottom: 0; left: var(--p); width: 3px; margin-left: -1.5px; background: #fff;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, .12), 0 0 12px rgba(0, 0, 0, .25); pointer-events: none; }
.rfv-cmp-knob { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 44px; height: 44px; border-radius: 50%; background: #fff;
  color: var(--rv-blue); font-weight: 800; display: grid; place-items: center; box-shadow: 0 4px 14px rgba(0, 0, 0, .3); font-size: 16px; letter-spacing: -2px; }
.rfv-cmp:focus-within .rfv-cmp-knob { box-shadow: 0 0 0 4px rgba(91, 122, 209, .6), 0 4px 14px rgba(0, 0, 0, .3); }
.rfv-tag { position: absolute; font-size: 12px; font-weight: 700; color: #fff; background: rgba(20, 32, 60, .62); padding: 4px 10px; border-radius: 99px;
  pointer-events: none; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.rfv-tag.l { top: 10px; left: 10px; } .rfv-tag.r { top: 10px; right: 10px; } .rfv-tag.b { left: 10px; bottom: 10px; font-weight: 600; }
.rfv-cmp-range { position: absolute; width: 1px; height: 1px; opacity: 0; overflow: hidden; clip: rect(0 0 0 0); }

/* ── Forms ───────────────────────────────────────────────────────────────── */
.rv-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 14px; }
.rv-form .rv-field:nth-child(5) { grid-column: 1 / -1; }
@media (max-width: 520px) { .rv-form { grid-template-columns: minmax(0, 1fr); } }
form { display: flex; flex-direction: column; gap: 16px; }
.rv-field { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.rv-field label, .rv-lbl { font-size: 14px; font-weight: 600; color: var(--rv-ink); }
.rv-opt-tag { font-weight: 500; color: var(--rv-ink-soft); font-size: 12.5px; }
.rv-input { width: 100%; border: 1px solid var(--rv-blue-line); border-radius: 12px; padding: 12px 13px; font-size: 16px; background: #fff; min-height: 48px;
  transition: border-color .15s, box-shadow .15s; }
.rv-input:focus { outline: none; border-color: var(--rv-blue); box-shadow: 0 0 0 3px #d3defa; }
.rv-input.bad { border-color: var(--rv-bad); box-shadow: 0 0 0 3px #fbe0dd; }
textarea.rv-input { resize: vertical; min-height: 84px; }
.rv-group { border: 1px solid var(--rv-blue-line); background: var(--rv-blue-soft); border-radius: 14px; padding: 14px; margin: 0;
  display: flex; flex-direction: column; min-width: 0; }
.rv-group-title { margin: 0 0 4px; font-size: 13px; font-weight: 700; color: var(--rv-blue-dark); }
/* Fixed-width chips, so ticking one never reflows the row */
.rv-times-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 1fr; gap: 8px; margin-top: 6px; }
.rv-chip-check { position: relative; cursor: pointer; display: flex; }
.rv-chip-check input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.rv-chip-check span { position: relative; flex: 1; display: flex; align-items: center; justify-content: center; min-height: 44px; border: 1px solid var(--rv-blue-line);
  background: #fff; border-radius: 12px; padding: 8px 28px; font-size: 14px; line-height: 1.25; font-weight: 600; color: var(--rv-ink-soft); text-align: center; }
.rv-chip-check input:checked + span { background: var(--rv-blue-dark); color: #fff; border-color: var(--rv-blue-dark); }
/* The tick sits in the chip's own padding, so it never pushes the words onto a second line */
.rv-chip-check input:checked + span::before { content: '✓'; position: absolute; left: 11px; top: 50%; transform: translateY(-50%); }
.rv-chip-check input:focus-visible + span { outline: 3px solid #9db4ea; outline-offset: 2px; }
.rv-opts { display: grid; gap: 10px; }
.rv-opt { display: flex; gap: 12px; align-items: center; padding: 14px; border-radius: 14px; border: 1px solid var(--rv-blue-line); background: #fff; cursor: pointer; }
.rv-opt:has(input:checked) { border-color: var(--rv-blue-dark); box-shadow: inset 0 0 0 1px var(--rv-blue-dark); background: #f7f9fe; }
.rv-opt input { width: 22px; height: 22px; accent-color: var(--rv-blue); flex: none; margin: 0; }
.rv-opt .ico { font-size: 24px; flex: none; }
.rv-opt b { display: block; font-size: 15.5px; }
.rv-opt small { display: block; font-size: 13px; color: var(--rv-ink-soft); }

/* ── Price ───────────────────────────────────────────────────────────────── */
.rv-sizes { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
@media (max-width: 640px) { .rv-sizes { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.rv-size { border: 1px solid var(--rv-blue-line); background: #fff; border-radius: 14px; padding: 12px; text-align: left; cursor: pointer;
  display: flex; flex-direction: column; gap: 3px; min-height: 82px; }
.rv-size b { font-size: 15.5px; color: var(--rv-blue-dark); }
.rv-size small { font-size: 12.5px; color: var(--rv-ink-soft); line-height: 1.35; }
.rv-size.on { border-color: var(--rv-blue-dark); box-shadow: inset 0 0 0 1px var(--rv-blue-dark); background: #f7f9fe; }
.rv-size:focus-visible { outline: 3px solid #9db4ea; outline-offset: 2px; }
.rv-counts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
@media (max-width: 420px) { .rv-counts { grid-template-columns: minmax(0, 1fr); } }
.rv-stepper { display: inline-flex; align-items: center; border: 1px solid var(--rv-blue-line); border-radius: 12px; background: #fff; overflow: hidden; width: max-content; }
.rv-stepper button, .rv-step-btn { border: 0; background: var(--rv-blue-soft); width: 48px; height: 48px; font-size: 20px; cursor: pointer; color: var(--rv-blue-dark); }
.rv-stepper input { width: 64px; border: 0; text-align: center; font-weight: 700; font-size: 18px; height: 48px; background: transparent; }
/* The estimate: a dashed edge and an "Estimate · Not a final price" label say it's not a quote,
   and three steps show the final price comes after the measure. */
.rv-price { border-radius: 16px; padding: 18px; background: linear-gradient(135deg, #f4f7fe, #e6edfb); border: 1.5px dashed #9db4ea;
  display: flex; flex-direction: column; gap: 8px; }
.rv-est-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.rv-est-badge { font-size: 11.5px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: #8a5a00; background: #fff1d6;
  border: 1px solid #f1d08a; border-radius: 99px; padding: 3px 10px; }
.rv-est-not { font-size: 13.5px; font-weight: 700; color: var(--rv-ink-soft); }
.rv-est-steps { list-style: none; margin: 6px 0 0; padding: 14px 0 0; border-top: 1px solid var(--rv-blue-line); display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.rv-est-steps li { display: flex; gap: 8px; align-items: flex-start; font-size: 13.5px; font-weight: 700; color: var(--rv-blue-dark); line-height: 1.3; min-width: 0; }
.rv-est-steps li b { flex: none; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-size: 12.5px;
  background: #fff; border: 1px solid var(--rv-blue-line); color: var(--rv-blue-dark); }
.rv-est-steps li.on b { background: var(--rv-blue); border-color: var(--rv-blue); color: #fff; }
.rv-est-steps li.final b { background: #e7f6ec; border-color: #9fd8b1; color: #1b7a3d; }
.rv-est-steps small { display: block; font-weight: 500; font-size: 12px; color: var(--rv-ink-soft); margin-top: 1px; }
@media (max-width: 420px) { .rv-est-steps { gap: 6px; } .rv-est-steps li { flex-direction: column; align-items: center; text-align: center; font-size: 12.5px; } }
.rv-price-big { font-size: 32px; font-weight: 800; color: var(--rv-blue-dark); letter-spacing: -0.5px; line-height: 1.15; font-variant-numeric: tabular-nums; }
.rv-price-big.sm { font-size: 21px; letter-spacing: 0; }
.rv-price-what { margin: 0; font-size: 14px; color: var(--rv-ink); }

/* ── Thank-you, contact, footer ──────────────────────────────────────────── */
.rv-thanks { align-items: stretch; }
.rv-done { width: 64px; height: 64px; border-radius: 50%; background: var(--rv-ok-soft); color: var(--rv-ok); font-size: 32px; font-weight: 800;
  display: grid; place-items: center; align-self: center; }
.rv-thanks .rv-h { text-align: center; }
.rv-thanks > p { text-align: center; margin: 0; }
.rv-thanks .rv-lead { margin: -8px 0 0; }
.rv-thanks .rv-bar { justify-content: center; }
.rv-sum { display: flex; gap: 14px; align-items: center; background: var(--rv-blue-soft); border-radius: 14px; padding: 10px; }
.rv-sum .rv-pic { width: 130px; flex: none; }
.rv-sum span:last-child { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.rv-sum small { color: var(--rv-ink-soft); font-size: 14px; }
.rv-contact { display: flex; flex-wrap: wrap; gap: 8px 18px; align-items: center; font-size: 14px; padding-top: 14px; border-top: 1px solid var(--rv-blue-soft); }
.rv-contact b { width: 100%; font-size: 13px; color: var(--rv-ink-soft); }
.rv-contact a { color: var(--rv-blue-dark); font-weight: 600; text-decoration: none; overflow-wrap: anywhere; min-height: 44px;
  display: inline-flex; align-items: center; }
.rv-contact a:hover { text-decoration: underline; }
.rv-contact span { color: var(--rv-ink-soft); min-height: 44px; display: inline-flex; align-items: center; }
/* R14: the license, on its own line right under the showroom address. */
.rv-contact .rv-addr { display: block; min-height: 0; }
.rv-contact .rv-license { display: block; font-size: 12.5px; color: var(--rv-ink-soft); }
/* Empty: room under the last card, clear of the phone's home bar. */
.rv-foot { max-width: 792px; margin: 0 auto; padding: 4px 16px calc(28px + env(safe-area-inset-bottom)); }

/* ── Toast ───────────────────────────────────────────────────────────────── */
/* Just under the header, so it never sits on the main button at the bottom. */
.rv-toast { position: fixed; left: 50%; top: calc(var(--rv-top, 96px) + 10px); transform: translateX(-50%); z-index: 50; background: var(--rv-blue-dark);
  color: #fff; padding: 11px 18px; border-radius: 12px; font-size: 14px; font-weight: 600; box-shadow: 0 10px 30px rgba(10, 22, 40, .3);
  max-width: calc(100vw - 32px); text-align: center; }

/* ── The customer fixes their own design (rv_fix.js, demo 2026-11-19) ─────── */
.rv-fix-link { margin: 2px 0 0; font-size: 14px; color: var(--rv-ink-soft); text-align: center; }
.rv-fix-link .rv-link { padding: 6px 4px; min-height: 40px; }
.rv-fix-done { margin: 2px 0 0; font-size: 14px; color: var(--rv-ok); font-weight: 600; text-align: center; }
.rv-fix-step { display: flex; align-items: center; gap: 9px; margin: 6px 0 0; font-weight: 700; color: var(--rv-blue-dark); }
.rv-fix-step span { width: 24px; height: 24px; border-radius: 50%; background: var(--rv-blue); color: #fff; font-size: 13px;
  display: grid; place-items: center; flex: none; }
.rv-fix-choices { display: grid; gap: 8px; }
.rv-fix-choice { display: flex; gap: 10px; align-items: flex-start; padding: 11px 13px; border-radius: 12px; border: 1px solid var(--rv-blue-line);
  background: #fff; cursor: pointer; transition: border-color .15s, background .15s; }
.rv-fix-choice.on { border-color: var(--rv-blue); background: var(--rv-blue-soft); box-shadow: 0 0 0 1px var(--rv-blue) inset; }
.rv-fix-choice input { margin-top: 3px; width: 18px; height: 18px; accent-color: var(--rv-blue); flex: none; }
.rv-fix-choice b { display: block; font-size: 15px; }
.rv-fix-choice small { display: block; color: var(--rv-ink-soft); font-size: 13px; line-height: 1.35; margin-top: 2px; }
.rv-fix-pic { position: relative; border-radius: 14px; overflow: hidden; cursor: crosshair; border: 1px solid var(--rv-blue-line); line-height: 0; }
.rv-fix-pic img { width: 100%; height: auto; display: block; user-select: none; -webkit-user-select: none; }
.rv-fix-ring { position: absolute; width: 18%; aspect-ratio: 1; transform: translate(-50%, -50%); border-radius: 50%;
  border: 4px solid #e61414; box-shadow: 0 0 0 2px rgba(255, 255, 255, .85), 0 0 0 2px rgba(255, 255, 255, .85) inset; pointer-events: none; }
.rv-fix-pic.busy { cursor: progress; }
.rv-fix-wait { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px;
  background: rgba(255, 255, 255, .72); color: var(--rv-blue-dark); font-weight: 700; font-size: 15px; line-height: 1.3; }
.rv-fix-err { margin: 0; padding: 10px 14px; border-radius: 12px; background: #fdecec; color: var(--rv-bad); font-size: 14px; }
