:root {
  --ink: #2f2725;
  --dark: #241c1b;
  --ruby: #e21b23;
  --paper: #fffdf9;
  --cream: #f4f1ec;
  --muted: #756b67;
  --line: rgba(47, 39, 37, 0.14);
  --line-strong: rgba(47, 39, 37, 0.28);
  --shadow: 0 24px 80px rgba(36, 28, 27, 0.14);
  --display: "Arial Narrow", "Roboto Condensed", Arial, sans-serif;
  --sans: Montserrat, Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  background: var(--dark);
  scroll-behavior: auto;
}

body {
  min-width: 320px;
  min-height: 100svh;
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 8% 0%, rgba(226, 27, 35, 0.08), transparent 34rem),
    var(--cream);
  font-family: var(--sans);
  line-height: 1.55;
  overflow-x: hidden;
}

button,
a {
  font: inherit;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  color: inherit;
}

.skip-link {
  position: fixed;
  top: -100px;
  left: 16px;
  z-index: 100;
  padding: 11px 15px;
  color: var(--dark);
  background: #fff;
  border-radius: 10px;
  box-shadow: var(--shadow);
}

.skip-link:focus {
  top: 16px;
}

.smart-header {
  display: flex;
  min-height: 82px;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: max(12px, env(safe-area-inset-top)) max(18px, env(safe-area-inset-right)) 12px max(18px, env(safe-area-inset-left));
  color: #fff;
  background: var(--dark);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.brand {
  display: inline-flex;
  width: max-content;
  align-items: center;
  padding: 8px 10px;
  color: #111;
  background: #fff;
  border-radius: 13px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.14);
}

.brand-copy {
  position: relative;
  display: flex;
  width: 142px;
  flex-direction: column;
  align-items: center;
  line-height: 1;
}

.brand-copy strong {
  position: relative;
  display: block;
  width: 30px;
  height: 30px;
  margin: 0 auto;
  border: 7px solid var(--ruby);
  border-radius: 50%;
  font-size: 0;
}

.brand-copy strong::before,
.brand-copy strong::after {
  position: absolute;
  top: 50%;
  color: #111;
  font: 700 1.85rem/1 var(--display);
  white-space: nowrap;
  transform: translateY(-51%);
}

.brand-copy strong::before {
  right: calc(100% + 4px);
  content: "R";
}

.brand-copy strong::after {
  left: calc(100% + 4px);
  content: "BY'S";
}

.brand-copy small {
  width: 100%;
  margin-top: 6px;
  font-size: 0.5rem;
  font-weight: 700;
  letter-spacing: 0.25em;
  text-align: center;
}

.smart-header-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
}

.language-switcher {
  display: flex;
  padding: 3px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
}

.lang-button {
  min-width: 38px;
  min-height: 34px;
  padding: 0 8px;
  color: #fff;
  border: 0;
  border-radius: 999px;
  background: transparent;
  cursor: pointer;
  font-size: 0.68rem;
  font-weight: 800;
}

.lang-button.active {
  background: var(--ruby);
}

.menu-link {
  padding: 8px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.55);
  font-size: 0.78rem;
  font-weight: 700;
}

.smart-main {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  min-height: calc(100svh - 150px);
  place-items: start center;
  padding: clamp(24px, 6vw, 70px) max(16px, env(safe-area-inset-right)) 48px max(16px, env(safe-area-inset-left));
}

.smart-shell {
  width: min(100%, 920px);
  min-width: 0;
  max-width: 100%;
}

.smart-app {
  width: 100%;
  min-width: 0;
  max-width: 100%;
}

.loading-card,
.smart-card,
.result-card,
.selected-card,
.no-match-card {
  width: 100%;
  padding: clamp(24px, 5vw, 52px);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: clamp(22px, 4vw, 34px);
  box-shadow: var(--shadow);
}

.loading-card {
  display: grid;
  min-height: 330px;
  place-items: center;
  align-content: center;
  gap: 14px;
  text-align: center;
}

.loading-mark,
.smart-mark {
  display: grid;
  width: 52px;
  height: 52px;
  place-items: center;
  color: #fff;
  background: var(--ruby);
  border-radius: 50%;
  font: 700 1.4rem/1 var(--display);
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--ruby);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.smart-title,
.question-title,
.result-title {
  margin: 0 0 18px;
  font-family: var(--display);
  font-weight: 700;
  line-height: 0.98;
  letter-spacing: -0.03em;
}

.smart-title {
  max-width: 720px;
  font-size: clamp(3rem, 9vw, 6.2rem);
}

.question-title,
.result-title {
  font-size: clamp(2.5rem, 7vw, 4.8rem);
}

.smart-lead,
.question-help,
.result-lead,
.selected-note,
.no-match-copy {
  max-width: 680px;
  margin: 0;
  color: var(--muted);
  font-size: clamp(0.98rem, 2vw, 1.08rem);
}

.smart-trust {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 28px 0;
}

.smart-trust span {
  padding: 12px 13px;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 14px;
  font-size: 0.76rem;
  font-weight: 700;
  text-align: center;
}

.primary-button,
.secondary-button,
.option-button,
.icon-button {
  border: 0;
  cursor: pointer;
}

.primary-button,
.secondary-button {
  display: inline-flex;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  padding: 14px 22px;
  border-radius: 999px;
  font-weight: 800;
}

.primary-button {
  color: #fff;
  background: var(--ruby);
  box-shadow: 0 12px 32px rgba(226, 27, 35, 0.24);
}

.secondary-button {
  color: var(--ink);
  background: transparent;
  border: 1px solid var(--line-strong);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 30px;
}

.flow-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 28px;
}

.progress-wrap {
  flex: 1;
}

.progress-label {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 800;
}

.progress-track {
  height: 7px;
  overflow: hidden;
  background: rgba(47, 39, 37, 0.09);
  border-radius: 999px;
}

.progress-value {
  display: block;
  width: 0;
  height: 100%;
  background: var(--ruby);
  border-radius: inherit;
  transition: width 220ms ease;
}

.progress-value--1 { width: 20%; }
.progress-value--2 { width: 40%; }
.progress-value--3 { width: 60%; }
.progress-value--4 { width: 80%; }
.progress-value--5 { width: 100%; }

.icon-button {
  min-width: 44px;
  min-height: 44px;
  padding: 8px 12px;
  color: var(--ink);
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 800;
}

.question-help {
  margin-bottom: 26px;
}

.option-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.option-button {
  display: flex;
  min-height: 82px;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  text-align: left;
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.option-button:hover {
  border-color: rgba(226, 27, 35, 0.44);
  transform: translateY(-2px);
}

.option-button[aria-pressed="true"] {
  border-color: var(--ruby);
  box-shadow: 0 0 0 3px rgba(226, 27, 35, 0.1);
}

.option-label {
  font-weight: 800;
}

.option-note {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 600;
}

.option-arrow {
  color: var(--ruby);
  font-size: 1.1rem;
}

.result-list {
  display: grid;
  gap: 14px;
  margin-top: 26px;
}

.guest-count-options { display: flex; gap: 10px; flex-wrap: wrap; }
.guest-count-button { min-height: 48px; min-width: 52px; justify-content: center; padding: 12px; }
.family-guidance { margin-top: 20px; }
.helpful-budget { font-weight: 700; line-height: 1.5; }
.helpful-option { min-width: 0; padding: 22px; background: #fff; border: 1px solid var(--line); border-radius: 22px; }
.helpful-option-heading { display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 18px; align-items: center; margin-bottom: 18px; }
.helpful-option-photo { width: 112px; height: 112px; object-fit: contain; background: var(--cream); border-radius: 14px; }
.helpful-option h2 { margin: 0 0 8px; font-size: 1.2rem; line-height: 1.3; overflow-wrap: anywhere; }
.helpful-option .result-badge { margin-bottom: 8px; font-size: .63rem; letter-spacing: .04em; }
.helpful-unit-price { margin: 0; color: var(--muted); font-size: .85rem; }
.helpful-differences { display: grid; gap: 8px; padding: 0; margin: 0 0 20px; list-style: none; font-size: .9rem; line-height: 1.4; }
.helpful-within-budget { color: #256147; font-weight: 700; }
.helpful-over-budget { color: #982e18; font-weight: 800; }
@media (max-width: 480px) {
  .helpful-option { padding: 16px; }
  .helpful-option-heading { grid-template-columns: 80px minmax(0, 1fr); gap: 12px; }
  .helpful-option-photo { width: 80px; height: 80px; }
  .helpful-option h2 { font-size: 1.05rem; }
  .helpful-option .primary-button { width: 100%; padding-inline: 12px; }
}

.result-card {
  position: relative;
  padding: 24px;
  box-shadow: none;
}

.result-card--top {
  border-color: rgba(226, 27, 35, 0.38);
  box-shadow: 0 16px 42px rgba(36, 28, 27, 0.09);
}

.result-badge {
  display: inline-flex;
  margin-bottom: 14px;
  padding: 7px 10px;
  color: var(--ruby);
  background: rgba(226, 27, 35, 0.08);
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.result-card h2 {
  margin: 0 0 8px;
  font: 700 clamp(1.8rem, 5vw, 2.8rem)/1 var(--display);
}

.result-price {
  margin: 0 0 16px;
  color: var(--ruby);
  font-size: 1.1rem;
  font-weight: 900;
}

.component-list,
.reason-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.component-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

.component-list li {
  padding: 8px 10px;
  background: var(--cream);
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
}

.reason-list {
  display: grid;
  gap: 7px;
  margin-bottom: 20px;
  color: var(--muted);
  font-size: 0.82rem;
}

.reason-list li::before {
  margin-right: 8px;
  color: var(--ruby);
  content: "✓";
  font-weight: 900;
}

.premium-warning,
.safe-note {
  margin: 14px 0 0;
  padding: 12px 14px;
  color: var(--muted);
  background: var(--cream);
  border-radius: 13px;
  font-size: 0.76rem;
  font-weight: 700;
}

.selected-summary {
  display: grid;
  gap: 12px;
  margin: 24px 0 0;
  padding: 20px;
  background: var(--cream);
  border-radius: 18px;
}

.selected-summary strong {
  font-family: var(--display);
  font-size: 1.8rem;
  line-height: 1;
}

.smart-footer {
  padding: 20px max(18px, env(safe-area-inset-right)) max(26px, env(safe-area-inset-bottom)) max(18px, env(safe-area-inset-left));
  color: rgba(255, 255, 255, 0.62);
  background: var(--dark);
  text-align: center;
}

.smart-footer p {
  max-width: 700px;
  margin: 0 auto;
  font-size: 0.72rem;
}

.noscript-card {
  margin: 20px;
  padding: 20px;
  background: #fff;
  border-radius: 16px;
  text-align: center;
}

.noscript-card a {
  color: var(--ruby);
  font-weight: 800;
}

:focus-visible {
  outline: 3px solid rgba(226, 27, 35, 0.48);
  outline-offset: 3px;
}

@media (max-width: 700px) {
  .smart-header {
    align-items: flex-start;
  }

  .brand-copy {
    width: 118px;
  }

  .brand-copy strong {
    width: 26px;
    height: 26px;
    border-width: 6px;
  }

  .brand-copy strong::before,
  .brand-copy strong::after {
    font-size: 1.55rem;
  }

  .menu-link {
    display: inline-flex;
    min-height: 44px;
    align-items: center;
    justify-content: center;
    padding: 8px 12px;
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 999px;
    text-align: center;
    white-space: nowrap;
  }

  .smart-header-actions {
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
  }

  .smart-main {
    padding-top: 22px;
  }

  .smart-trust,
  .option-grid {
    grid-template-columns: 1fr;
  }

  .smart-trust {
    gap: 7px;
  }

  .smart-trust span {
    text-align: left;
  }

  .actions > * {
    width: 100%;
  }

  .flow-topline {
    align-items: flex-start;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.001ms !important;
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
  }
}

/* PREMIUM-INTERACTION-003: selected answers and press feedback share the menu language. */
:root{--smart-ease:cubic-bezier(.2,.8,.2,1)}
:root :is(.option-button,.primary-button,.secondary-button,.icon-button,.lang-button){touch-action:manipulation;transition:transform .16s var(--smart-ease),background-color .18s var(--smart-ease),border-color .18s var(--smart-ease),box-shadow .18s var(--smart-ease)}
:root :is(button,a):focus-visible{outline:3px solid #a35b27;outline-offset:3px}
:root button:not(:disabled):active{transform:scale(.98)}
:root button[aria-pressed="true"]{box-shadow:inset 0 -3px 0 rgba(163,91,39,.45)}
@media(prefers-reduced-motion:reduce){:root :is(.option-button,.primary-button,.secondary-button,.icon-button,.lang-button){transition:none}:root button:not(:disabled):active{transform:none}}

/* One-page order assembly: product photos keep their complete square framing. */
.has-quick-builder .smart-shell{width:min(100%,1240px)}
.has-quick-builder .smart-main{padding-top:30px;padding-bottom:calc(144px + env(safe-area-inset-bottom))}
.quick-builder{width:100%;min-width:0;max-width:100%}
.quick-builder :is(button,input,select){scroll-margin-block:96px calc(144px + env(safe-area-inset-bottom))}
.qb-hero{display:flex;align-items:center;justify-content:space-between;gap:24px;margin-bottom:24px}
.qb-title{max-width:780px;margin:0 0 12px;font:700 clamp(2.1rem,5.2vw,4.5rem)/1.04 var(--display);letter-spacing:-.035em;overflow-wrap:anywhere}
.qb-lead{max-width:650px;margin:0;color:#655b57;font-size:1rem}
.qb-help{flex-shrink:0;background:var(--paper);font-size:.85rem}
.qb-inspiration{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;margin:0 0 26px}
.qb-inspiration-card{position:relative;display:grid;grid-template-columns:112px minmax(0,1fr);align-items:center;gap:0;min-width:0;padding:0;overflow:hidden;text-align:left;color:var(--dark);background:var(--paper);border:1px solid var(--line);border-radius:20px;cursor:pointer}
.qb-inspiration-card>.qb-photo{width:112px;height:112px}
.qb-inspiration-card>span:not(.qb-photo){padding:14px;font-size:.95rem;font-weight:800;line-height:1.3;overflow-wrap:anywhere}
.qb-photo{position:relative;display:block;flex-shrink:0;min-width:0;aspect-ratio:1;overflow:hidden;background:#f4eee5}
.qb-photo>img{display:block;width:100%;height:100%;object-fit:contain;object-position:center}
.qb-photo>img:not(.qb-photo-preview){position:relative;z-index:1}
.qb-photo>.qb-photo-preview{position:absolute;inset:0;z-index:0;pointer-events:none}
.qb-photo[data-photo-state=loading]>img:not(.qb-photo-preview),.qb-photo>img[hidden]{visibility:hidden}
.qb-photo>.qb-photo-status{position:absolute;inset:0;z-index:2;display:flex;align-items:center;justify-content:center;padding:6px;color:#786a61;text-align:center;font-size:.68rem;font-weight:600;line-height:1.35;overflow-wrap:anywhere}
.qb-photo[data-photo-preview=true]>.qb-photo-status{inset:auto 0 0;padding:2px;background:#f4eee5ed;font-size:.55rem;line-height:1.2}
.qb-photo>.qb-photo-status[hidden]{display:none}
.qb-photo[data-photo-state=loading]{background:linear-gradient(135deg,#f4eee5,#ece2d5)}
.qb-layout{display:grid;width:100%;min-width:0;max-width:100%;grid-template-columns:minmax(0,1fr) minmax(300px,360px);align-items:start;gap:26px}
.qb-catalog,.qb-side,.qb-composer,.qb-cart{min-width:0;max-width:100%}
.qb-section-title{margin:0 0 16px;font:700 1.55rem/1.12 var(--display);overflow-wrap:anywhere}
.qb-search{display:flex;align-items:center;margin-bottom:14px;padding:0 10px 0 16px;background:#fff;border:1px solid var(--line-strong);border-radius:16px}
.qb-search input{width:100%;min-width:0;min-height:52px;padding:8px 0;color:var(--dark);background:transparent;border:0;font:inherit;font-size:1rem}
.qb-search input:focus-visible{outline-offset:6px}
.qb-search-clear{flex:0 0 44px;min-height:44px;border:0;background:transparent;cursor:pointer;font-size:1.6rem}
.qb-chips{display:flex;gap:8px;overflow:auto;padding:4px 4px 12px;overscroll-behavior-x:contain;scroll-padding:4px}
.qb-chip{flex:0 0 auto;min-height:44px;padding:9px 14px;border:1px solid var(--line-strong);border-radius:999px;background:var(--paper);font-size:.8rem;font-weight:800;cursor:pointer}
.qb-chip[aria-pressed=true]{background:var(--dark);color:#fff;border-color:var(--dark)}
.qb-count{min-height:22px;margin:6px 0 12px;color:var(--muted);font-size:.8rem}
.qb-products{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;align-items:stretch}
.qb-product{display:flex;min-width:0;flex-direction:column;align-items:stretch;gap:8px;padding:9px 9px 13px;text-align:left;background:var(--paper);border:1px solid var(--line);border-radius:18px;cursor:pointer}
.qb-product[aria-pressed=true]{border-color:var(--ruby);box-shadow:0 0 0 2px rgba(226,27,35,.15)}
.qb-product>.qb-photo{width:100%;height:auto;border-radius:12px}
.qb-product-name{font-size:.83rem;font-weight:800;line-height:1.35;overflow-wrap:anywhere}
.qb-product-price{margin-top:auto;font-size:.95rem;font-weight:800;color:var(--ruby)}
.qb-product-action{font-size:.76rem;font-weight:800;color:var(--muted)}
.qb-in-cart{display:block;padding:5px 8px;color:#28533c;background:#e8f3e8;border:1px solid #b8d3bd;border-radius:8px;font-size:.76rem;font-weight:800;line-height:1.35;overflow-wrap:anywhere}
.qb-in-cart[hidden]{display:none}
.qb-no-results{grid-column:1/-1;padding:24px;background:var(--paper);border-radius:16px}
.qb-composer,.qb-cart{padding:22px;border:1px solid var(--line);border-radius:22px;background:var(--paper);box-shadow:0 12px 40px rgba(36,28,27,.06);scroll-margin:18px}
.qb-side{display:grid;gap:16px}
.qb-selection-photos{display:grid;grid-template-columns:repeat(auto-fit,minmax(100px,1fr));gap:10px}
.qb-selection-photos figure{min-width:0;margin:0}
.qb-selection-photos .qb-photo{width:100%;max-height:240px;border-radius:12px}
.qb-selection-photos figcaption{margin:9px 0 4px;font-size:.85rem;font-weight:800;line-height:1.35;overflow-wrap:anywhere}
.qb-selection-photos strong{font-size:.85rem;color:var(--ruby)}
.qb-product-description,.qb-muted{margin:12px 0;color:#6b625e;font-size:.86rem;line-height:1.5}
.qb-field{display:grid;gap:6px;margin:16px 0;font-size:.87rem;font-weight:800}
.qb-field :is(select,input){width:100%;min-width:0;min-height:48px;padding:10px 8px;border:1px solid var(--line-strong);border-radius:10px;background:#fff;color:var(--dark);font:inherit;font-size:.88rem}
.qb-quantity-row{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:10px;margin:18px 0;font-size:.85rem;font-weight:800}
.qb-stepper{display:inline-grid;grid-template-columns:44px 40px 44px;align-items:center;border:1px solid var(--line-strong);border-radius:999px;overflow:hidden;background:#fff}
.qb-stepper button{min-height:44px;padding:0;border:0;background:transparent;cursor:pointer;font-size:1.4rem}
.qb-stepper output{text-align:center;font-size:.85rem;font-weight:800}
.qb-stepper button:disabled{opacity:.35;cursor:default}
.qb-add-total,.qb-grand-total{display:flex;flex-wrap:wrap;align-items:baseline;justify-content:space-between;gap:8px;font-size:.85rem}
.qb-add-total strong{font-size:1.2rem}
.qb-add{width:100%;border-radius:14px;line-height:1.3}
.qb-continue-shopping{display:none}
.quick-builder button:disabled{cursor:default;opacity:.45;box-shadow:none}
.qb-notice{margin:0;color:#814321;font-size:.85rem;font-weight:700;overflow-wrap:anywhere}
.qb-notice:empty{display:none}
.qb-empty-title{margin:0;font-weight:800}
.qb-order-group{display:grid;grid-template-columns:64px minmax(0,1fr);gap:12px;padding:16px 0;border-top:1px solid var(--line)}
.qb-order-photos{display:grid;align-content:start;gap:5px}
.qb-order-photos .qb-photo{width:64px;height:64px;border-radius:10px}
.qb-order-info{min-width:0}
.qb-order-info h3{margin:0 0 5px;font-size:.83rem;font-weight:800;line-height:1.4;overflow-wrap:anywhere}
.qb-order-price{display:block;margin-bottom:9px;color:var(--ruby);font-size:.9rem}
.qb-pair-badge{display:inline-block;margin-bottom:7px;padding:3px 7px;border-radius:6px;background:#eee4d5;color:#66502f;font-size:.68rem;font-weight:800}
.qb-remove{display:block;min-height:44px;padding:10px 12px;border:1px solid #b3776f;border-radius:10px;color:#8a302c;background:#fff8f5;cursor:pointer;font:inherit;font-size:.85rem;font-weight:750;line-height:1.35;white-space:normal;overflow-wrap:anywhere}
.qb-line-actions{display:flex;flex-wrap:wrap;grid-column:1/-1;gap:8px;min-width:0;margin-top:12px}
.qb-line-actions>button{flex:1 1 104px;min-width:0;min-height:44px;margin:0;white-space:normal;overflow-wrap:anywhere}
.qb-line-actions>.qb-stepper{flex:0 0 auto}
.qb-replace{min-height:44px;padding:10px 12px;border:1px solid var(--line-strong);border-radius:10px;background:#fff;color:var(--dark);font:inherit;font-size:.85rem;font-weight:750;line-height:1.35;cursor:pointer;white-space:normal;overflow-wrap:anywhere}
.qb-checkout{display:grid;gap:14px;padding-top:16px;border-top:1px solid var(--line)}
.qb-grand-total strong{font-size:1.65rem;color:var(--dark)}
.qb-checkout .primary-button{border-radius:14px;padding-inline:10px;font-size:.9rem;line-height:1.3}
.qb-checkout-note{margin:0;color:var(--muted);font-size:.75rem;line-height:1.5}
.qb-cart-dock{position:fixed;z-index:15;right:max(18px,env(safe-area-inset-right));bottom:max(12px,env(safe-area-inset-bottom));display:flex;align-items:center;gap:18px;max-width:calc(100% - max(18px,env(safe-area-inset-left)) - max(18px,env(safe-area-inset-right)));padding:10px 12px;background:var(--dark);border:1px solid #6f5a50;border-radius:20px;box-shadow:0 8px 34px rgba(36,28,27,.25)}
.qb-dock-review{display:grid;gap:2px;min-width:0;min-height:48px;padding:4px 8px;color:#fff;text-align:left;border:0;background:transparent;cursor:pointer;font-size:.72rem;white-space:normal;overflow-wrap:anywhere}
.qb-dock-review strong{font-size:1.15rem}
.qb-cart-dock .primary-button{min-width:0;min-height:48px;padding:10px 16px;border-radius:12px;font-size:.82rem;line-height:1.3;white-space:normal;overflow-wrap:anywhere}
.lang-button{min-height:44px;min-width:40px}
.smart-wizard-exit{margin:0 0 18px}
.family-guidance{margin:16px 0;padding:16px;background:var(--cream);border-radius:16px}
.family-guidance[hidden]{display:none}
@media(max-width:1050px){.qb-products{grid-template-columns:repeat(2,minmax(0,1fr))}.qb-layout{gap:18px;grid-template-columns:minmax(0,1fr) minmax(285px,330px)}}
@media(max-width:850px){
  .qb-hero{align-items:flex-start;flex-direction:column;gap:16px}
  .qb-help{min-height:44px;padding:10px 16px}
  .qb-layout{display:flex;grid-template-columns:none;flex-direction:column;gap:20px}
  .qb-side{display:contents}
  .qb-composer{order:0;width:100%}
  .qb-notice{order:1}
  .qb-catalog{order:2;width:100%}
  .qb-cart{order:3;width:100%}
  .qb-continue-shopping{display:block;width:100%;min-height:44px;margin-top:10px;border-radius:14px}
  .qb-products{grid-template-columns:repeat(3,minmax(0,1fr))}
  .qb-selection-photos{grid-template-columns:repeat(auto-fit,minmax(110px,1fr));max-width:480px}
  .qb-selection-photos .qb-photo{max-height:180px}
  .qb-cart-dock{left:max(12px,env(safe-area-inset-left));right:max(12px,env(safe-area-inset-right));max-width:none;justify-content:space-between;gap:8px}
}
@media(max-width:480px){
  .has-quick-builder .smart-main{padding-inline:12px}
  .qb-inspiration{gap:8px;margin-bottom:20px}
  .qb-inspiration-card{grid-template-columns:minmax(0,1fr);border-radius:12px}
  .qb-inspiration-card>.qb-photo{width:100%;height:auto}
  .qb-inspiration-card>span:not(.qb-photo){padding:9px 8px;font-size:.72rem;line-height:1.3}
  .qb-products{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
  .qb-composer,.qb-cart{padding:17px;border-radius:18px}
  .qb-cart-dock .primary-button{max-width:60%;padding-inline:12px;font-size:.76rem}
  .qb-dock-review{font-size:.68rem}
  .qb-dock-review strong{font-size:1rem}
}

/* Keep customization beside the selected drink, independent of catalog scroll. */
.qb-customizer{width:min(780px,calc(100% - 32px));max-width:calc(100% - 32px);max-height:calc(100dvh - 32px);margin:auto;padding:0;color:var(--dark);background:var(--paper);border:1px solid var(--line);border-radius:24px;box-shadow:0 24px 80px #241c1b40;overflow:auto;overscroll-behavior:contain;scroll-padding-block:76px 220px}
.qb-customizer::backdrop{background:#211917a8;backdrop-filter:blur(3px)}
.qb-customizer .qb-composer{width:100%;padding:24px 24px 0;border:0;border-radius:0;box-shadow:none;overflow:visible}
.qb-customizer-header{position:sticky;top:0;z-index:3;display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:18px;padding-block:8px;background:var(--paper)}
.qb-customizer-header .qb-section-title{margin:0;font-size:1.5rem}
.qb-customizer-close{flex:0 0 44px;width:44px;height:44px;padding:0;border:1px solid var(--line-strong);border-radius:50%;background:#fff;color:var(--dark);font-size:1.5rem;cursor:pointer}
.qb-customizer .qb-selection-photos{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,260px),1fr));max-width:none;gap:12px;margin-bottom:18px}
.qb-customizer .qb-selection-photos figure{display:grid;grid-template-columns:112px minmax(0,1fr);grid-template-rows:1fr 1fr;column-gap:14px;align-items:end;background:#f4eee5;border-radius:14px;overflow:hidden;padding-right:12px}
.qb-customizer .qb-selection-photos .qb-photo{grid-row:1/3;width:112px;height:112px;max-height:none;border-radius:0}
.qb-customizer .qb-selection-photos figcaption{margin:0;padding-top:10px;font-size:.95rem}
.qb-customizer .qb-selection-photos strong{align-self:start;margin-top:6px;padding-bottom:10px;font-size:.95rem}
.qb-customizer .qb-product-description{margin:10px 0 16px}
.qb-flavours{display:flex;flex-wrap:wrap;gap:8px;margin:10px 0 20px}
.qb-flavours,.qb-sweets-field{min-width:0;padding:0;border:0}
.qb-flavours legend,.qb-sweets-field legend{margin-bottom:10px;font-size:.95rem;font-weight:800}
.qb-flavour,.qb-no-sweet{min-height:44px;padding:10px 14px;border:1px solid var(--line-strong);border-radius:12px;background:#fff;color:var(--dark);font:inherit;font-size:.85rem;font-weight:750;cursor:pointer}
.qb-flavour[aria-pressed=true],.qb-no-sweet[aria-pressed=true],.qb-sweet[aria-pressed=true]{border-color:var(--ruby);background:#fff2e9;box-shadow:0 0 0 1px var(--ruby)}
:is(.qb-flavour,.qb-no-sweet,.qb-sweet){position:relative;white-space:normal;overflow-wrap:anywhere}
:is(.qb-flavour,.qb-no-sweet,.qb-sweet)[aria-pressed=true]::after{content:"✓";position:absolute;top:3px;right:3px;display:grid;width:18px;height:18px;place-items:center;border-radius:50%;color:#fff;background:#286343;font:800 12px/1 var(--sans);pointer-events:none}
.qb-flavour,.qb-no-sweet{padding-inline-end:26px}
.qb-sweets{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px;margin:12px 0 18px}
.qb-sweet{display:grid;grid-template-columns:64px minmax(0,1fr);align-content:center;align-items:center;gap:4px 8px;min-width:0;min-height:82px;padding:8px;border:1px solid var(--line-strong);border-radius:13px;text-align:left;background:#fff;color:var(--dark);font:inherit;cursor:pointer}
.qb-sweet>.qb-photo{grid-row:1/3;width:64px;height:64px;border-radius:8px}
.qb-sweet-name{padding-inline-end:16px;font-size:.76rem;font-weight:750;line-height:1.3;overflow-wrap:anywhere}
.qb-sweet strong{font-size:.8rem;color:var(--ruby)}
.qb-composer-footer{position:sticky;bottom:0;z-index:2;margin:18px -24px 0;padding:12px 24px 16px;background:var(--paper);border-top:1px solid var(--line);box-shadow:0 -8px 16px #241c1b08}
.qb-composer-footer .qb-quantity-row{margin:0 0 10px}
.qb-composer-footer .qb-add-total{margin:0 0 10px}
.qb-choice-summary{margin:0 0 10px;color:var(--dark);font-size:.85rem;font-weight:750;line-height:1.4;overflow-wrap:anywhere}
.qb-composer-footer .qb-continue-shopping{display:none}
.qb-next-step{margin:0 0 16px;font-size:1rem;line-height:1.5}
.qb-confirmation-summary{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:10px}
.qb-confirmation-summary h3{margin:0;font-size:1rem}
.qb-confirmation-summary .qb-edit{margin:0}
.qb-confirmation-lines{display:grid;gap:10px;flex-basis:100%;list-style:none;margin:0;padding:0}
.qb-confirmation-line{display:grid;grid-template-columns:56px minmax(0,1fr) auto;gap:10px;align-items:center;padding:10px;background:#f4eee5;border-radius:12px;font-size:.85rem;overflow-wrap:anywhere}
.qb-confirmation-photos{display:grid;gap:4px}
.qb-confirmation-photos .qb-photo{width:56px;height:56px;border-radius:8px}
.qb-confirmation-line strong{max-width:95px;text-align:right}
.qb-confirmation-actions{display:grid;gap:10px}
.qb-confirmation-actions .qb-grand-total{margin:0}
.qb-confirmation-actions .qb-grand-total strong{font-size:1.4rem}
.qb-confirmation-actions button{width:100%;min-height:44px;border-radius:14px;white-space:normal}
.qb-confirmation-actions .qb-checkout-note{margin:0}
.qb-edit{display:block;min-height:44px;margin:8px 0 0;padding:10px 12px;border:1px solid var(--line-strong);border-radius:10px;background:#fff;color:var(--dark);font:inherit;font-size:.85rem;font-weight:750;line-height:1.35;cursor:pointer;white-space:normal;overflow-wrap:anywhere}
.qb-line-actions .qb-edit{margin:0}
/* A tall order stays in page flow; the review control opens it directly. */
@media(min-width:851px){.qb-side{position:static}}
.qb-replacement{min-width:0;margin:16px 0}
.qb-replacement-cancel{width:100%;min-height:44px;margin:0 0 18px;white-space:normal}
@media(min-width:481px) and (max-width:700px){.qb-inspiration-card{grid-template-columns:88px minmax(0,1fr)}.qb-inspiration-card>.qb-photo{width:88px;height:88px}.qb-inspiration-card>span:not(.qb-photo){padding:9px;font-size:.8rem}}
@media(max-width:600px){
  .qb-customizer{width:calc(100% - 16px);max-width:calc(100% - 16px);max-height:calc(100dvh - 16px);border-radius:20px}
  .qb-customizer .qb-composer{padding:16px 16px 0}
  .qb-customizer-header{gap:10px;margin-bottom:12px}
  .qb-customizer-header .qb-section-title{font-size:1.3rem}
  .qb-customizer .qb-selection-photos{grid-template-columns:1fr;gap:8px;margin-bottom:12px}
  .qb-customizer .qb-selection-photos figure{grid-template-columns:96px minmax(0,1fr);column-gap:12px}
  .qb-customizer .qb-selection-photos .qb-photo{width:96px;height:96px}
  .qb-flavour{flex:1 1 calc(50% - 8px);min-width:0;padding:9px 26px 9px 6px;font-size:.8rem}
  .qb-sweets{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
  .qb-sweet{grid-template-columns:48px minmax(0,1fr);gap:4px 6px;min-height:76px;padding:6px}
  .qb-sweet>.qb-photo{width:48px;height:48px}
  .qb-sweet-name{font-size:.73rem}
  .qb-composer-footer{margin-inline:-16px;padding:10px 16px max(12px,env(safe-area-inset-bottom))}
}
/* Zoom and landscape leave less room inside dialogs. The page's order control
   stays fixed so guests can review without traversing the catalog again. */
@media(max-height:520px){
  .qb-customizer{scroll-padding-block:12px}
  .qb-customizer-header,.qb-composer-footer{position:static}
}
