/* ============================================================
   custom-order.css — Custom Order Builder page styles
   Bow and Banner Co. — May 2026
   ============================================================
   Drop-in companion to base.css / components.css / pages.css.
   All selectors are scoped to the .builder layout or the
   .builder-hero / .guide-strip wrappers, so loading this file
   on other pages is harmless.
   Uses tokens from base.css; do not edit colors here.
   ============================================================ */
/* =================================================================
   Custom Order Builder — page-scoped styles
   Uses tokens from base.css. Scope everything under .builder.
   ================================================================= */

.builder-hero {
  padding-block: var(--s-7) var(--s-6);
  background: linear-gradient(180deg, var(--bg-blush) 0%, var(--bg-canvas) 100%);
  position: relative;
  overflow: hidden;
}
.builder-hero::before {
  content: '';
  position: absolute; inset: 0;
  background-image:
    radial-gradient(circle at 12% 18%, rgba(217,127,166,.18) 0, transparent 22%),
    radial-gradient(circle at 88% 70%, rgba(91,176,137,.14) 0, transparent 28%);
  pointer-events: none;
}
.builder-hero-inner {
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--container-pad);
  position: relative;
}
.builder-hero .eyebrow { margin-bottom: 10px; display: inline-block; }
.builder-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4.4vw, 3rem);
  letter-spacing: var(--tracking-tight);
  max-width: 22ch;
  line-height: 1.05;
  margin-bottom: 14px;
}
.builder-hero h1 .script-accent {
  font-family: var(--font-script);
  font-weight: 600;
  font-size: 1.15em;
  color: var(--rose-500);
  letter-spacing: 0;
  display: inline-block;
  transform: translateY(2px);
}
.builder-hero .lead {
  font-size: 1.05rem;
  color: var(--ink-mid);
  max-width: 56ch;
  line-height: 1.65;
}

/* Inline price guide pills near hero */
.guide-pills {
  display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px;
}
.guide-pills .gpill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 13px 7px 9px;
  background: #fff; border: 1px solid var(--border-soft);
  border-radius: 999px;
  font-size: 13px; color: var(--ink-mid);
  box-shadow: var(--shadow-xs);
}
.guide-pills .gpill .dot {
  width: 18px; height: 18px; border-radius: 50%;
  background: var(--rose-500); color: #fff;
  display: inline-grid; place-items: center;
  font-size: 10px; font-weight: 700;
}
.guide-pills .gpill .dot.teal { background: var(--teal-500); }

/* ── Builder layout ─────────────────────────────────────── */
.builder {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 380px;
  gap: var(--s-7);
  align-items: start;
  padding-block: var(--s-7);
}
@media (max-width: 960px) {
  .builder { grid-template-columns: 1fr; }
}

.config { display: flex; flex-direction: column; gap: var(--s-6); }

/* Step card */
.step {
  background: var(--bg-card);
  border: 1px solid var(--border-soft);
  border-radius: var(--r-lg);
  padding: var(--s-6);
  box-shadow: var(--shadow-sm);
  position: relative;
}
.step.is-disabled {
  opacity: .42;
  pointer-events: none;
  filter: saturate(.4);
}
.step-head {
  display: flex; align-items: baseline; gap: 12px;
  margin-bottom: var(--s-4);
  padding-bottom: var(--s-3);
  border-bottom: 1px dashed var(--border-soft);
}
.step-num {
  font-family: var(--font-mono);
  font-size: 11px; letter-spacing: var(--tracking-eyebrow); text-transform: uppercase;
  color: var(--rose-500);
  background: var(--bg-blush);
  border-radius: 999px;
  padding: 5px 10px;
  font-weight: 600;
  white-space: nowrap;
}
.step-title {
  font-family: var(--font-display);
  font-size: 1.4rem;
  line-height: 1.2;
  color: var(--ink);
  flex: 1;
}
.step-hint {
  font-size: 13px;
  color: var(--ink-soft);
}

/* ── Product type picker (large polaroid cards) ─────────── */
.product-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s-5);
}
@media (max-width: 580px) {
  .product-grid { grid-template-columns: 1fr; }
}
.product-card {
  background: #fff;
  border: 2px solid var(--border-soft);
  border-radius: var(--r-lg);
  padding: 18px 18px 20px;
  cursor: pointer;
  transition: all 200ms ease;
  text-align: center;
  position: relative;
}
.product-card:hover { transform: translateY(-2px); border-color: var(--rose-300); box-shadow: var(--shadow-md); }
.product-card.is-on {
  border-color: var(--rose-500);
  box-shadow: 0 0 0 4px rgba(217,127,166,.18), var(--shadow-md);
}
.product-card .visual {
  height: 170px;
  border-radius: var(--r-md);
  background: var(--bg-mist);
  display: grid; place-items: center;
  margin-bottom: 14px;
  overflow: hidden;
  position: relative;
}
.product-card .visual.tassel {
  background: linear-gradient(180deg, #FCE3EE 0%, #F8D5E5 100%);
}
.product-card .visual.banner {
  background: linear-gradient(180deg, #F2F9F4 0%, #E8F4EC 100%);
}
.product-card h3 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  margin-bottom: 4px;
}
.product-card .price-from {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--ink-soft);
  letter-spacing: .04em;
  text-transform: uppercase;
}
.product-card .price-from strong { color: var(--rose-700); font-size: 14px; }
.product-card .check {
  position: absolute; top: 12px; right: 12px;
  width: 26px; height: 26px; border-radius: 50%;
  background: var(--rose-500); color: #fff;
  display: grid; place-items: center;
  opacity: 0; transform: scale(.7);
  transition: all 200ms ease;
}
.product-card.is-on .check { opacity: 1; transform: scale(1); }

/* SVG illustrations inside product cards */
.tassel-illo, .banner-illo { width: 100%; height: 100%; }

/* ── Generic option grids ───────────────────────────────── */
.opt-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 12px;
}
.opt-card {
  background: #fff;
  border: 2px solid var(--border-soft);
  border-radius: var(--r-md);
  padding: 14px 14px 12px;
  cursor: pointer;
  transition: all 150ms ease;
  text-align: center;
  position: relative;
}
.opt-card:hover { border-color: var(--rose-300); }
.opt-card.is-on {
  border-color: var(--rose-500);
  background: var(--bg-blush);
}
.opt-card .opt-icon {
  height: 64px;
  display: grid; place-items: center;
  margin-bottom: 8px;
}
.opt-card .opt-label {
  font-family: var(--font-display);
  font-size: 1.05rem;
  color: var(--ink);
  line-height: 1.2;
}
.opt-card .opt-sub {
  font-size: 12px;
  color: var(--ink-soft);
  margin-top: 2px;
}
.opt-card .opt-price {
  display: inline-block;
  margin-top: 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  color: var(--rose-700);
  background: var(--bg-blush);
  padding: 3px 8px;
  border-radius: 999px;
}
.opt-card.is-on .opt-price { background: #fff; }

/* Hand-drawn arrow size markers (banner sizes) */
.size-marker {
  display: flex; align-items: center; justify-content: center;
  gap: 6px;
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--ink);
}
.size-marker svg { color: var(--ink-mid); }

/* ── Add-on checklist rows ──────────────────────────────── */
.addon-list { display: flex; flex-direction: column; gap: 10px; }
.addon-row {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 14px 16px;
  background: #fff;
  border: 1px solid var(--border-soft);
  border-radius: var(--r-md);
  cursor: pointer;
  transition: all 150ms ease;
}
.addon-row:hover { border-color: var(--rose-300); }
.addon-row input { margin-top: 3px; }
.addon-row .addon-body { flex: 1; }
.addon-row .addon-name {
  font-weight: 600; color: var(--ink); font-size: 15px;
  display: flex; align-items: center; gap: 8px;
}
.addon-row .addon-desc { font-size: 13px; color: var(--ink-soft); margin-top: 2px; }
.addon-row .addon-price {
  font-family: var(--font-mono);
  font-size: 13px; font-weight: 600;
  color: var(--rose-700);
  white-space: nowrap;
}
.addon-row.is-on { background: var(--bg-blush); border-color: var(--rose-500); }

/* Difficult border tier selector (nested in glitter row) */
.tier-pick {
  display: none;
  gap: 6px;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px dashed var(--border-soft);
}
.addon-row.is-on .tier-pick.show-when-on { display: flex; }
.tier-pick .tier-btn {
  flex: 1;
  padding: 8px 10px;
  background: #fff;
  border: 1px solid var(--border-strong);
  border-radius: var(--r-sm);
  font-size: 12px;
  font-family: var(--font-mono);
  font-weight: 500;
  cursor: pointer;
  color: var(--ink-mid);
}
.tier-pick .tier-btn.is-on {
  background: var(--rose-500); color: #fff; border-color: var(--rose-500);
}

/* ── Color pickers ──────────────────────────────────────── */
.color-picker-group {
  display: flex;
  gap: var(--s-5);
  margin-bottom: var(--s-3);
  flex-wrap: wrap;
}
.color-picker-item { display: flex; flex-direction: column; gap: 6px; }
.color-swatch-wrap {
  display: flex; align-items: center; gap: 10px;
}
.color-swatch-wrap input[type="color"] {
  width: 56px; height: 56px;
  border: 2px solid var(--border-soft);
  border-radius: var(--r-md);
  padding: 3px;
  background: #fff;
  cursor: pointer;
  transition: border-color 150ms;
}
.color-swatch-wrap input[type="color"]:hover { border-color: var(--rose-300); }
.color-swatch-wrap input[type="color"]:focus { border-color: var(--rose-500); outline: none; }
.color-hex {
  font-family: var(--font-mono);
  font-size: 12px; font-weight: 600;
  color: var(--ink-mid);
  letter-spacing: .04em;
}

/* Let Landry choose button */
.let-landry-btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 9px 18px;
  background: var(--bg-mist);
  border: 1.5px dashed var(--border-strong);
  border-radius: 999px;
  font-size: 13px; font-weight: 600;
  color: var(--ink-mid);
  cursor: pointer;
  transition: all 150ms ease;
  margin-bottom: var(--s-4);
}
.let-landry-btn:hover { border-color: var(--rose-400); color: var(--rose-700); background: var(--bg-blush); }
.let-landry-btn.is-on {
  background: var(--bg-blush);
  border-color: var(--rose-500);
  border-style: solid;
  color: var(--rose-700);
  box-shadow: 0 0 0 3px rgba(217,127,166,.12);
}

/* Color-ref upload area */
.color-ref-wrap { margin-bottom: var(--s-2); }
.color-ref-divider {
  font-size: 12px; color: var(--ink-soft);
  text-align: center;
  margin-bottom: var(--s-3);
}
.upload-area-sm {
  padding: 14px 16px;
}
.upload-area-sm .upload-icon { width: 24px; height: 24px; margin-bottom: 6px; }
.upload-area-sm .upload-cta { font-size: 13px; }
.upload-area-sm .upload-hint { font-size: 11px; }
.color-ref-filename {
  font-size: 12px; color: var(--teal-700);
  margin-top: 6px; text-align: center;
}

/* ── Phrase input with char counter ─────────────────────── */
.phrase-wrap { position: relative; }
.phrase-meta {
  display: flex; justify-content: space-between; align-items: center;
  margin-top: 8px;
  font-size: 12px;
  color: var(--ink-soft);
  font-family: var(--font-mono);
}
.phrase-meta .tier-tag {
  background: var(--bg-blush);
  color: var(--rose-700);
  padding: 3px 9px;
  border-radius: 999px;
  font-weight: 600;
}
.phrase-meta .tier-tag.warn { background: var(--warn-bg); color: var(--warn); }

/* ── Quantity stepper ───────────────────────────────────── */
.qty-row {
  display: flex; align-items: center; gap: 14px;
}
.qty-stepper {
  display: inline-flex; align-items: center;
  background: #fff; border: 1px solid var(--border-strong);
  border-radius: var(--r-md); overflow: hidden;
}
.qty-stepper button {
  width: 40px; height: 40px;
  background: transparent; border: none;
  font-size: 18px; font-weight: 700; color: var(--ink-mid);
  cursor: pointer;
}
.qty-stepper button:hover { background: var(--bg-blush); color: var(--rose-700); }
.qty-stepper input {
  width: 56px; height: 40px;
  border: none; text-align: center;
  font-family: var(--font-display); font-size: 1.2rem;
  color: var(--ink);
  -moz-appearance: textfield;
}
.qty-stepper input::-webkit-outer-spin-button,
.qty-stepper input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.bulk-note {
  font-size: 13px; color: var(--teal-700);
  background: var(--bg-mist);
  padding: 10px 14px; border-radius: var(--r-md);
  margin-top: 12px;
  display: none;
}
.bulk-note.show { display: block; }
.bulk-note strong { font-family: var(--font-mono); }

/* ── Upload area ────────────────────────────────────────── */
.upload-area {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border: 2px dashed var(--border-strong);
  border-radius: var(--r-md);
  background: var(--bg-mist);
  padding: 26px 20px;
  text-align: center;
  cursor: pointer;
  transition: all 150ms ease;
}
.upload-area:hover {
  border-color: var(--rose-500);
  background: var(--bg-blush);
}
.upload-area .upload-icon {
  width: 36px; height: 36px;
  margin-bottom: 10px;
  color: var(--teal-500);
  flex-shrink: 0;
}
.upload-area .upload-cta {
  font-weight: 600; color: var(--ink); font-size: 14px;
}
.upload-area .upload-hint {
  font-size: 12px; color: var(--ink-soft); margin-top: 4px;
}

/* ── Two-column field rows ──────────────────────────────── */
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 640px) { .field-row { grid-template-columns: 1fr; } }

/* ── Sticky price summary ───────────────────────────────── */
.summary-wrap {
  position: sticky; top: 24px;
  align-self: start;
}
.summary {
  background: #fff;
  border: 1px solid var(--border-soft);
  border-radius: var(--r-lg);
  padding: var(--s-5);
  box-shadow: var(--shadow-md);
}
.summary-head {
  display: flex; align-items: baseline; justify-content: space-between;
  margin-bottom: var(--s-4);
  padding-bottom: var(--s-3);
  border-bottom: 1px dashed var(--border-soft);
}
.summary-head h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
}
.summary-head .live-dot {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--font-mono); font-size: 10px; letter-spacing: var(--tracking-eyebrow);
  text-transform: uppercase; color: var(--teal-600);
}
.summary-head .live-dot::before {
  content: ''; width: 7px; height: 7px; border-radius: 50%;
  background: var(--success);
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: .35; } }

/* Preview "polaroid" inside summary */
.preview-poly {
  background: #fff;
  border: 1px solid var(--border-soft);
  border-radius: 4px;
  padding: 10px 10px 14px;
  box-shadow: var(--shadow-sm);
  margin-bottom: var(--s-4);
  transform: rotate(-1.2deg);
}
.preview-poly .preview-img {
  aspect-ratio: 4 / 3;
  background: var(--bg-mist);
  border-radius: 3px;
  display: grid; place-items: center;
  margin-bottom: 10px;
  position: relative;
  overflow: hidden;
}
.preview-poly .preview-cap {
  font-family: var(--font-script);
  font-size: 1.3rem;
  color: var(--teal-700);
  text-align: center;
  line-height: 1;
}

/* Line items */
.line-items {
  display: flex; flex-direction: column;
  gap: 8px;
  margin-bottom: var(--s-4);
  font-size: 14px;
}
.line-items .li {
  display: flex; justify-content: space-between; align-items: baseline;
  color: var(--ink-mid);
}
.line-items .li .label { display: flex; align-items: center; gap: 6px; }
.line-items .li .label .small {
  font-size: 11px; color: var(--ink-soft);
  font-family: var(--font-mono);
}
.line-items .li.li-base .price { color: var(--ink); font-weight: 600; }
.line-items .li.li-addon .price { color: var(--rose-700); font-weight: 600; }
.line-items .li.li-discount .price { color: var(--success); font-weight: 600; }
.line-items .li.li-empty {
  font-style: italic; color: var(--ink-soft); font-size: 13px;
  padding: 8px 0;
}
.line-items .li .price::before { content: '$'; opacity: .6; margin-right: 1px; }
.line-items .li.li-discount .price::before { content: '−$'; opacity: .8; }

.summary-divider {
  border-top: 1px dashed var(--border-soft);
  margin-block: var(--s-3);
}

/* Total — big scallop sticker */
.total-row {
  display: flex; align-items: center; gap: 14px;
  margin-block: var(--s-4) var(--s-4);
  padding: var(--s-3) 4px 4px;
}
.scallop {
  --sz: 88px;
  width: var(--sz); height: var(--sz);
  background: var(--rose-500); color: #fff;
  display: grid; place-items: center;
  font-family: var(--font-display);
  font-size: 26px;
  flex-shrink: 0;
  -webkit-mask: radial-gradient(circle at 10px 50%, transparent 5px, #000 6px) 0 0/12px 12px;
          mask: radial-gradient(circle at 10px 50%, transparent 5px, #000 6px) 0 0/12px 12px;
  border-radius: 999px;
  box-shadow: var(--shadow-rose);
  position: relative;
}
.scallop::before {
  content: '';
  position: absolute;
  inset: 6px;
  border: 1.5px dashed rgba(255,255,255,.55);
  border-radius: 999px;
  pointer-events: none;
}
.total-row .total-meta {
  font-family: var(--font-mono);
  font-size: 11px; letter-spacing: var(--tracking-eyebrow);
  text-transform: uppercase; color: var(--ink-soft);
}
.total-row .total-meta strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.05rem; color: var(--ink);
  letter-spacing: 0;
  text-transform: none;
  margin-top: 2px;
}

.summary-actions { display: flex; flex-direction: column; gap: 10px; }
.summary-actions .btn { width: 100%; justify-content: center; }
.summary-note {
  font-size: 12px; color: var(--ink-soft);
  text-align: center;
  margin-top: 10px;
  line-height: 1.5;
}
.summary-note strong { color: var(--teal-700); }

/* ── Price guide footer (the infographics) ──────────────── */
.guide-strip {
  background: var(--bg-mist);
  padding-block: var(--s-7);
  border-top: 1px solid var(--border-mist);
  border-bottom: 1px solid var(--border-mist);
}
.guide-strip h2 {
  font-family: var(--font-display);
  font-size: 1.8rem;
  margin-bottom: 6px;
}
.guide-strip .sub {
  color: var(--ink-mid);
  margin-bottom: var(--s-5);
  max-width: 60ch;
}
.guide-images {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s-5);
}
@media (max-width: 720px) { .guide-images { grid-template-columns: 1fr; } }
.guide-img-wrap {
  background: #fff;
  border-radius: var(--r-md);
  padding: 12px;
  box-shadow: var(--shadow-md);
  transform: rotate(-.6deg);
  transition: transform 240ms ease;
}
.guide-img-wrap:nth-child(2) { transform: rotate(.7deg); }
.guide-img-wrap:hover { transform: rotate(0) scale(1.01); }
.guide-img-wrap img { width: 100%; height: auto; border-radius: var(--r-sm); display: block; }
.guide-img-wrap .caption {
  font-family: var(--font-script);
  font-size: 1.3rem;
  text-align: center;
  color: var(--teal-700);
  margin-top: 8px;
}

/* small visual placeholders */
.visual-svg { width: 80%; height: 100%; }

/* Hide a step until product type is selected */
.req-tassel, .req-banner { display: none; }
.builder[data-product="tassel"] .req-tassel { display: block; }
.builder[data-product="banner"] .req-banner { display: block; }
.builder[data-product=""] .step.gated { opacity: .42; pointer-events: none; filter: saturate(.4); }

/* status pulse */
.builder-hero .returnto {
  position: absolute; top: 20px; right: 28px;
  font-family: var(--font-mono); font-size: 12px;
  color: var(--ink-mid);
}
.builder-hero .returnto a { color: var(--rose-700); text-decoration: underline; text-underline-offset: 3px; }

/* tiny rough-edge wrap for the preview banner */
.kraft-preview {
  width: 80%; aspect-ratio: 5/2;
  background: linear-gradient(180deg, #D8C19A, #C8A977);
  border-radius: 3px;
  position: relative;
  display: grid; place-items: center;
  box-shadow: inset 0 0 0 1px rgba(0,0,0,.08), var(--shadow-sm);
  font-family: var(--font-script);
  color: #5C4423;
  font-size: 22px;
  text-align: center;
}
.kraft-preview::before, .kraft-preview::after {
  content: ''; position: absolute; top: 6px;
  width: 5px; height: 5px; border-radius: 50%;
  background: rgba(0,0,0,.3);
}
.kraft-preview::before { left: 8px; } .kraft-preview::after { right: 8px; }

/* Tassel ribbon preview */
.tassel-preview {
  width: 110px;
  display: flex; flex-direction: column; align-items: center;
}
.tassel-preview .hardware {
  width: 26px; height: 32px;
  background: linear-gradient(180deg, #D9B25C, #B8902C);
  border-radius: 8px 8px 4px 4px;
  position: relative;
  margin-bottom: -4px;
  z-index: 2;
}
.tassel-preview .hardware::after {
  content: ''; position: absolute; inset: 4px 6px 6px 6px;
  border-radius: 4px;
  border: 1.5px solid rgba(0,0,0,.18);
}
.tassel-preview .band {
  width: 70px; height: 14px;
  background: var(--rose-300);
  border-radius: 6px 6px 2px 2px;
  position: relative; z-index: 1;
  box-shadow: inset 0 -3px 0 rgba(0,0,0,.06);
}
.tassel-preview .ribbons {
  display: flex; gap: 2px;
  margin-top: -2px;
  height: 105px;
}
.tassel-preview .ribbons span {
  width: 5px; height: 100%;
  border-radius: 0 0 2px 2px;
}

/* Plaque hint on preview */
.tassel-preview .plaque {
  position: absolute;
  width: 38px; height: 38px;
  background: #fff;
  border: 2px solid var(--rose-300);
  border-radius: 50%;
  display: grid; place-items: center;
  font-family: var(--font-script);
  font-size: 13px;
  color: var(--rose-700);
  bottom: 14px; right: -2px;
  box-shadow: var(--shadow-sm);
  transform: rotate(8deg);
}

/* error inline for required fields */
.required-flag { color: var(--rose-500); margin-left: 2px; }

/* tiny decorative hearts */
.deco-heart { color: var(--rose-500); font-size: 10px; }

/* ============================================================
   DESKTOP GUIDANCE — step progress, nudges, completion states
   Desktop-only (not inside body.is-wizard which is mobile).
   ============================================================ */

/* ── Step completion / focus states (desktop) ───────────── */
@media (min-width: 961px) {
  .step.is-done {
    border-left: 4px solid var(--success);
  }
  .step.is-done .step-num {
    background: var(--success-bg);
    color: var(--success);
  }
  .step.is-focus {
    border-color: var(--rose-300);
    box-shadow: 0 0 0 3px rgba(217,127,166,.10), var(--shadow-md);
  }
  .step.is-focus .step-num {
    background: var(--bg-blush);
    color: var(--rose-700);
    animation: stepNumPulse 2.5s ease-in-out infinite;
  }
}
@keyframes stepNumPulse {
  0%, 100% { box-shadow: none; }
  50% { box-shadow: 0 0 0 5px rgba(217,127,166,.22); }
}

/* ── "Start here" pulsing badge on Step 1 ───────────────── */
.start-here-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: var(--tracking-eyebrow);
  text-transform: uppercase;
  color: var(--rose-700);
  background: var(--rose-50);
  border: 1.5px solid var(--rose-300);
  border-radius: 999px;
  padding: 5px 14px 5px 9px;
  margin-bottom: var(--s-4);
  animation: startBadgePulse 2.4s ease-in-out infinite;
}
.start-here-badge .start-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--rose-500);
  animation: pulse 2s ease-in-out infinite;
  flex-shrink: 0;
}
/* Hide badge once a product is picked */
.builder[data-product]:not([data-product=""]) .start-here-badge { display: none; }
/* Mobile wizard handles its own guidance */
@media (max-width: 960px) { .start-here-badge { display: none; } }
@keyframes startBadgePulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(217,127,166,0); }
  50%       { box-shadow: 0 0 0 5px rgba(217,127,166,.18); }
}

/* ── "Why is this locked?" hint inside gated steps ──────── */
.step-locked-hint {
  display: none;
  align-items: center;
  gap: 9px;
  padding: 10px 14px;
  background: var(--bg-canvas);
  border: 1px dashed var(--border-strong);
  border-radius: var(--r-md);
  font-size: 12px;
  color: var(--ink-soft);
  font-style: italic;
  margin-top: var(--s-3);
}
.builder[data-product=""] .step.gated .step-locked-hint { display: flex; }
@media (max-width: 960px) { .step-locked-hint { display: none !important; } }

/* ── "Continue to next step" nudge bar ──────────────────── */
.step-nudge {
  display: none;
  align-items: center;
  gap: 10px;
  width: 100%;
  margin-top: var(--s-4);
  padding: 12px 16px;
  background: linear-gradient(135deg, var(--teal-50) 0%, #fff 100%);
  border: 1.5px solid var(--border-mist);
  border-radius: var(--r-md);
  font-size: 13px;
  font-weight: 600;
  color: var(--teal-700);
  cursor: pointer;
  transition: background 150ms ease, border-color 150ms ease, transform 120ms ease;
  text-align: left;
  animation: nudgeIn 340ms cubic-bezier(.22,1,.36,1);
}
.step-nudge:hover {
  background: var(--teal-50);
  border-color: var(--teal-500);
  transform: translateX(3px);
}
.step-nudge .nudge-arrow {
  margin-left: auto;
  font-size: 17px;
  transition: transform 150ms ease;
  flex-shrink: 0;
}
.step-nudge:hover .nudge-arrow { transform: translateX(3px); }
.step-nudge.show { display: flex; }
@keyframes nudgeIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: none; }
}
@media (max-width: 960px) { .step-nudge { display: none !important; } }

/* ── Sidebar progress checklist ─────────────────────────── */
.summary-checklist {
  margin-bottom: var(--s-4);
  padding-bottom: var(--s-3);
  border-bottom: 1px dashed var(--border-soft);
}
.summary-checklist-title {
  display: block;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: var(--tracking-eyebrow);
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 10px;
}
.summary-cl-items {
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.summary-cl-item {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 12.5px;
  color: var(--ink-soft);
  padding: 3px 0;
  transition: color 220ms ease;
}
.summary-cl-item.done { color: var(--success); }
.summary-cl-item.required:not(.done) {
  color: var(--ink-mid);
  font-weight: 500;
}
.summary-cl-icon {
  width: 18px; height: 18px;
  border-radius: 50%;
  border: 1.5px solid currentColor;
  display: grid;
  place-items: center;
  font-size: 10px;
  flex-shrink: 0;
  transition: background 220ms ease, border-color 220ms ease;
}
.summary-cl-item.done .summary-cl-icon {
  background: var(--success);
  border-color: var(--success);
  color: #fff;
}
.cl-req-badge {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--rose-600);
  background: var(--bg-blush);
  border-radius: 999px;
  padding: 2px 7px;
  font-weight: 700;
  margin-left: auto;
}
.summary-cl-item.done .cl-req-badge { display: none; }
@media (max-width: 960px) { .summary-checklist { display: none; } }

/* ============================================================
   MOBILE WIZARD LAYER — all rules scoped to body.is-wizard
   or plain new components. Desktop layout is unchanged.
   ============================================================ */

/* ── New components (hidden until wizard activates) ──────── */
.wiz-top,
.wiz-cta { display: none; }

/* Quote disclaimer in Step 1 */
.quote-disclaimer {
  background: var(--bg-mist);
  border-left: 3px solid var(--teal-500);
  padding: 10px 14px;
  border-radius: var(--r-sm);
  font-size: 13px;
  color: var(--ink-mid);
  line-height: 1.5;
  margin-bottom: var(--s-4);
}
.quote-disclaimer strong { color: var(--teal-700); }

/* Scallop column wrapper — keeps scallop + sub-label stacked */
.scallop-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex-shrink: 0;
}

/* Scallop sub-label ("estimated quote") */
.scallop-sub {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: var(--tracking-eyebrow);
  text-transform: uppercase;
  color: var(--ink-soft);
  text-align: center;
  margin-top: 6px;
}

/* ── Animations ──────────────────────────────────────────── */
@keyframes wizStepIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: none; }
}
@keyframes tapPulse {
  0%   { transform: scale(1); }
  50%  { transform: scale(1.025); }
  100% { transform: scale(1); }
}
@keyframes wizShake {
  0%, 100% { transform: translateX(0); }
  25%       { transform: translateX(-5px); }
  75%       { transform: translateX(5px); }
}

.is-pulse { animation: tapPulse 220ms ease-out; }
.has-error { animation: wizShake 320ms ease-out; }
.form-control.has-error { border-color: var(--rose-500) !important; }

/* ── Improved selection state (all viewports) ────────────── */
.palette-card { position: relative; } /* needed for ::after chip */

.opt-card,
.product-card,
.palette-card {
  transition: transform 120ms ease, border-color 150ms ease, background 150ms ease, box-shadow 150ms ease;
}
.opt-card:active,
.product-card:active,
.palette-card:active { transform: scale(.98); }
.addon-row:active    { transform: scale(.99); }

/* Heavier selected border + soft halo */
.product-card.is-on {
  border-width: 3px;
  border-color: var(--rose-500);
  background: var(--bg-blush);
  box-shadow: 0 0 0 4px rgba(217,127,166,.14), var(--shadow-md);
}
.opt-card.is-on {
  border-width: 3px;
  border-color: var(--rose-500);
  background: var(--bg-blush);
  box-shadow: 0 0 0 4px rgba(217,127,166,.12);
}
.palette-card.is-on {
  border-width: 3px;
  border-color: var(--rose-500);
  background: var(--bg-blush);
  box-shadow: 0 0 0 4px rgba(217,127,166,.12);
}
.addon-row.is-on {
  border-width: 2px;
  border-color: var(--rose-500);
  background: var(--bg-blush);
  box-shadow: 0 0 0 3px rgba(217,127,166,.12);
}

/* Animated ✓ chip for opt-card and palette-card */
.opt-card::after,
.palette-card::after {
  content: '✓';
  position: absolute;
  top: 7px; right: 7px;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--rose-500);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 13px;
  font-weight: 700;
  opacity: 0;
  transform: scale(.5);
  transition: opacity 180ms ease, transform 180ms ease;
  pointer-events: none;
}
.opt-card.is-on::after,
.palette-card.is-on::after {
  opacity: 1;
  transform: scale(1);
}

/* ── Mobile wizard styles (≤960px, body.is-wizard only) ──── */
@media (max-width: 960px) {
  /* Hide builder hero in wizard; step 1 shows the disclaimer instead */
  body.is-wizard .builder-hero { display: none; }

  /* Fixed top chrome */
  body.is-wizard .wiz-top {
    display: flex;
    position: fixed;
    top: 72px; left: 0; right: 0;
    z-index: 90; /* below site header z-index:100 would overlap; use 90 so header wins */
    height: 56px;
    align-items: center;
    gap: 10px;
    padding: 0 14px;
    background: rgba(255,255,255,.97);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--border-soft);
    box-shadow: 0 2px 8px rgba(0,0,0,.06);
  }
  body.is-wizard .wiz-back {
    width: 44px; height: 44px;
    border-radius: 50%;
    border: 1px solid var(--border-soft);
    background: var(--bg-blush);
    color: var(--rose-700);
    font-size: 20px;
    cursor: pointer;
    flex-shrink: 0;
    display: grid; place-items: center;
    transition: background 150ms;
  }
  body.is-wizard .wiz-back:active { background: var(--rose-100, #fce7f3); }
  body.is-wizard .wiz-nav { flex: 1; }
  body.is-wizard .wiz-counter {
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--ink-mid);
    letter-spacing: var(--tracking-eyebrow);
  }
  body.is-wizard .wiz-dots {
    display: flex;
    gap: 5px;
    align-items: center;
  }
  body.is-wizard .wiz-dot {
    width: 7px; height: 7px;
    border-radius: 50%;
    background: var(--border-soft);
    transition: all 220ms ease;
  }
  body.is-wizard .wiz-dot.is-done { background: var(--rose-300); }
  body.is-wizard .wiz-dot.is-current {
    background: var(--rose-500);
    width: 20px;
    border-radius: 4px;
  }

  /* Fixed bottom CTA */
  body.is-wizard .wiz-cta {
    display: flex;
    position: fixed;
    left: 0; right: 0; bottom: 0;
    z-index: 200;
    padding: 10px 14px;
    padding-bottom: calc(10px + env(safe-area-inset-bottom, 0px));
    background: #fff;
    border-top: 1px solid var(--border-soft);
    box-shadow: 0 -4px 16px rgba(0,0,0,.07);
    align-items: center;
    gap: 12px;
  }
  body.is-wizard .wiz-cta-info { flex: 1; overflow: hidden; }
  body.is-wizard #wiz-cta-helper {
    display: block;
    font-size: 11px;
    font-family: var(--font-mono);
    color: var(--ink-soft);
    letter-spacing: var(--tracking-eyebrow);
    text-transform: uppercase;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  body.is-wizard #wiz-cta-total {
    display: block;
    font-family: var(--font-display);
    font-size: 1.2rem;
    color: var(--ink);
    margin-top: 1px;
  }
  body.is-wizard #wiz-next {
    min-height: 52px;
    min-width: 126px;
    font-size: 15px;
    font-weight: 600;
    border-radius: 999px;
    white-space: nowrap;
    flex-shrink: 0;
    padding-inline: 20px;
  }

  /* Step visibility: only the active step shows */
  body.is-wizard .config { gap: var(--s-4); }
  body.is-wizard .step { display: none; }
  body.is-wizard .step.is-active {
    display: block;
    animation: wizStepIn 160ms ease-out;
  }
  /* Wizard takes over gating — disable the CSS opacity lock */
  body.is-wizard .step.is-disabled {
    opacity: 1;
    pointer-events: auto;
    filter: none;
  }
  body.is-wizard .builder[data-product=""] .step.gated {
    opacity: 1;
    pointer-events: auto;
    filter: none;
  }

  /* Hide the desktop summary rail and guide strip */
  body.is-wizard .summary-wrap { display: none; }
  body.is-wizard .guide-strip  { display: none; }

  /* Push content below fixed wizard chrome (56px at top:72px) and above bottom CTA */
  body.is-wizard #custom-order-form { padding-top: 64px; padding-bottom: 100px; }

  /* Downsize builder padding in wizard */
  body.is-wizard .builder { padding-block: var(--s-4); }

  /* Email-quote link not useful on mobile (mailto unreliable) */
  body.is-wizard #email-quote { display: none; }

  /* Suppress the hamburger in wizard mode — nav drawer would conflict with wizard chrome */
  body.is-wizard .nav-toggle { display: none; }

  /* ── Touch target improvements (applies in all mobile, wizard or not) ── */
  .qty-stepper button { width: 48px; height: 48px; font-size: 20px; }
  .qty-stepper input  { height: 48px; font-size: 1.1rem; width: 60px; }
  /* 16px prevents iOS auto-zoom on focus */
  .form-control       { font-size: 16px; }
  select.form-control { font-size: 16px; }
  .addon-row          { padding: 16px; min-height: 60px; }
  .addon-row input[type="checkbox"] {
    width: 22px; height: 22px;
    flex-shrink: 0; accent-color: var(--rose-500);
  }
  .upload-area        { padding: 32px 20px; }
}
