/* ── Customizer page ──────────────────────────────────────────────────
   Dense single-viewport layout for desktop: a slim topbar, a
   horizontal kit-switcher pill row, and a 2-column grid that fills the
   remaining viewport height. Controls (right) scroll INSIDE the column
   if they overflow, with a sticky checkout block pinned at the bottom
   so the price + Add-to-Cart button is always reachable without
   scrolling the page. */

.cz-wrap {
  --cz-strip-h: 48px;
  max-width: 1400px;
  /* Bottom margin drops the site footer (and its 52px ::before wave, which
     sits ABOVE the footer) below the locked 100vh viewport, so the wave can't
     paint over the viewer caption at the bottom of the column. */
  margin: 0 auto 56px;
  /* Below the fixed site nav. */
  padding: calc(var(--nav-h, 64px) + 8px) 24px 16px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  /* Whole customizer locks to one viewport on desktop; controls
     column scrolls internally if its rows overflow. */
  min-height: 100vh;
  max-height: 100vh;
  box-sizing: border-box;
}

/* ─ Hero header (matches /shop hero style, compact for the
     customizer) ────────────────────────────────────────────────────── */
.cz-hero {
  text-align: center;
  padding: 4px 0 0;
  flex-shrink: 0;
}
.cz-hero-inner {
  max-width: 760px;
  margin: 0 auto;
}
.cz-hero-eyebrow {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 6px;
}
.cz-hero-title {
  font-size: clamp(24px, 3.4vw, 34px);
  font-weight: 700;
  letter-spacing: -0.8px;
  line-height: 1.05;
  margin: 0 0 6px;
  color: var(--text-primary);
}
.cz-hero-title-accent {
  color: var(--accent, #0071E3);
  background: linear-gradient(135deg, #34C759 0%, #0071E3 50%, #5856D6 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.cz-hero-sub {
  font-size: 13.5px;
  line-height: 1.45;
  color: var(--text-secondary);
  margin: 0;
}

/* ─ Unified customizer card ──────────────────────────────────────── */
/* Everything below the hero - kit picker strip, viewer, controls,
   checkout - lives in ONE rounded surface so the page reads as a
   single product card instead of a grid of disconnected widgets. */
.cz-card {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  overflow: hidden;
}

/* Card strip — slim header inside the card with Back · active kit
   label · the two grouped kit dropdowns. Replaces the old topbar +
   separate kitbar pair. */
.cz-card-strip {
  position: relative;       /* anchor for the kit-dd dropdown bodies */
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 16px;
  padding: 10px 14px;
  min-height: var(--cz-strip-h);
  border-bottom: 1px solid var(--border);
  background: var(--surface-2);
  z-index: 6;               /* sits above the controls column on hover */
}
.cz-card-strip-kit {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
  letter-spacing: -0.1px;
}

.cz-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  text-decoration: none;
  padding: 6px 10px;
  border-radius: 8px;
  transition: background 0.15s ease, color 0.15s ease;
  justify-self: start;
}
.cz-back:hover { color: var(--text-primary); background: var(--surface); }

/* ─ Kit switcher dropdowns ────────────────────────────────────────── */
/* Two grouped <details> dropdowns sit inline inside the card strip -
   compact pill buttons that pop open below. Birdhouses (Cavity + Open)
   and Feeders (Mesh-Tube). The dropdown containing the active SKU
   shows the active label inline; the other shows "Browse". */
.cz-kit-dropdowns {
  display: flex;
  align-items: center;
  gap: 8px;
  justify-self: end;
}
.cz-kit-dd {
  position: static;         /* dropdown body anchors to .cz-card-strip */
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
}
.cz-kit-dd > summary {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 12px;
  cursor: pointer;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-primary);
  list-style: none;
  user-select: none;
  white-space: nowrap;
}
.cz-kit-dd > summary::-webkit-details-marker { display: none; }
.cz-kit-dd > summary:hover { background: var(--surface-2); border-radius: 9px; }
.cz-kit-dd.is-active {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent) inset;
}
.cz-kit-dd-label {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: -0.2px;
}
.cz-kit-dd-current {
  font-size: 12px;
  font-weight: 500;
  color: var(--text-secondary);
  text-align: right;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.cz-kit-dd-current-muted { color: var(--text-tertiary); }
.cz-kit-dd > summary > .cz-chevron {
  display: inline-block;
  width: 14px;
  height: 14px;
  color: var(--text-tertiary);
  flex-shrink: 0;
  transition: transform 0.2s ease;
}
.cz-kit-dd[open] > summary > .cz-chevron { transform: rotate(180deg); }

.cz-kit-dd-body {
  position: absolute;
  /* Hang from the right edge of the strip so the panel is clear of
     the controls-column swatches sitting just below. */
  top: calc(100% + 8px);
  right: 14px;
  width: clamp(260px, 32vw, 360px);
  z-index: 50;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: 0 12px 32px rgba(0,0,0,0.28);
}
.cz-kit-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.cz-kit-group-label {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: var(--text-tertiary);
}
.cz-kit-group-items {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.cz-kit-item {
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 12.5px;
  font-weight: 500;
  color: var(--text-secondary);
  background: var(--surface-2);
  text-decoration: none;
  transition: background 0.12s ease, color 0.12s ease;
}
.cz-kit-item:hover {
  background: var(--surface);
  color: var(--text-primary);
}
.cz-kit-item.active {
  background: var(--accent);
  color: white;
  font-weight: 600;
}
[data-theme="dark"] .cz-kit-dd.is-active {
  box-shadow: 0 0 0 1px var(--accent) inset;
}

/* ─ Main grid: viewer + controls ──────────────────────────────────── */
/* Lives inside the unified .cz-card. Columns are separated by a single
   vertical border (the card's own surface) instead of being two
   independently bordered widgets. */
.cz-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(360px, 1fr);
  gap: 0;
  flex: 1;
  min-height: 0;       /* allows the controls column to scroll inside */
}
@media (max-width: 980px) {
  .cz-grid { grid-template-columns: 1fr; }
}

/* ─ Viewer column ─────────────────────────────────────────────────── */
.cz-viewer-col {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 0;
  padding: 14px;
  border-right: 1px solid var(--border);
  background: var(--surface);
}
.cz-viewer-shell {
  position: relative;
  background: var(--surface-2);
  border-radius: 12px;
  overflow: hidden;
  flex: 1;             /* fills the column height */
  min-height: 0;
}
.cz-viewer-shell .model-stl-viewer {
  width: 100%;
  height: 100%;
}
.cz-viewer-shell .cz-fake-card {
  display: block;
  width: 100%;
  height: 100%;
  background: none;
  border: none;
  border-radius: 0;
  padding: 0;
  margin: 0;
  box-shadow: none;
  overflow: visible;
  transform: none !important;
  transition: none;
}
.cz-viewer-shell .cz-fake-card:hover {
  transform: none !important;
  box-shadow: none;
}
.cz-viewer-hint {
  position: absolute;
  bottom: 10px;
  right: 12px;
  margin: 0;
  font-size: 11px;
  color: var(--text-tertiary);
  background: color-mix(in srgb, var(--surface) 80%, transparent);
  padding: 4px 8px;
  border-radius: 6px;
  pointer-events: none;
}
.cz-viewer-caption {
  margin: 0;
  font-size: 12.5px;
  line-height: 1.45;
  color: var(--text-secondary);
  padding: 0 2px;
  /* Never let the flex column squeeze the blurb to a single clipped line -
     keep its full height and let the viewer shell give up the space. */
  flex-shrink: 0;
}

/* ─ Controls column ───────────────────────────────────────────────── */
/* Scrolls INTERNALLY when its rows exceed the column height - keeps
   the whole customizer in a single desktop viewport. Sticky checkout
   block is pinned at the bottom so the price + Add to Cart never
   leaves the screen. */
.cz-controls-col {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  padding: 14px 16px 0;
  min-height: 0;
  overflow-y: auto;
  scrollbar-width: thin;
}
.cz-controls-col::-webkit-scrollbar { width: 6px; }
.cz-controls-col::-webkit-scrollbar-thumb {
  background: var(--border-hover, var(--border));
  border-radius: 3px;
}
.cz-section-title {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.2px;
  color: var(--text-primary);
  margin: 4px 0 10px;
}
.cz-section-title:not(:first-child) { margin-top: 18px; }

/* Small explanatory note under an option (e.g. why a tail prop helps). */
.cz-note {
  margin: 8px 2px 2px;
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--text-secondary);
}

/* ─ Per-part swatch rows ──────────────────────────────────────────── */
/* Dense horizontal row: [label  selected-color] [○ ○ ○ ○ ○ ○ ○ ○ ○ ○]
   on desktop. On mobile, the .cz-part-head becomes a tap-to-expand
   button and the swatch row hides until the row is .is-open. */
.cz-parts {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.cz-part-group {
  display: grid;
  grid-template-columns: minmax(110px, max-content) 1fr;
  align-items: center;
  gap: 12px;
}
.cz-part-head {
  /* On desktop the head is purely a label, but it's a real <button> in
     the markup so mobile gets a proper tap target. Strip button chrome. */
  appearance: none;
  border: none;
  background: none;
  padding: 0;
  text-align: left;
  font: inherit;
  color: inherit;
  cursor: default;
  display: flex;
  flex-direction: column;
  gap: 0;
  min-width: 0;
}
.cz-part-name {
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.1px;
  color: var(--text-primary);
  line-height: 1.2;
}
.cz-part-color-label {
  font-size: 11px;
  color: var(--text-tertiary);
  line-height: 1.2;
}
.cz-part-swatches {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  justify-content: flex-end;
}
.cz-swatch {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 1.5px solid var(--border);
  background: var(--swatch, #ccc);
  cursor: pointer;
  padding: 0;
  transition: transform 0.12s ease, border-color 0.12s ease, box-shadow 0.12s ease;
}
.cz-swatch:hover {
  transform: scale(1.12);
  border-color: var(--text-tertiary);
}
.cz-swatch.active {
  border-color: var(--accent);
  box-shadow: 0 0 0 1.5px var(--surface), 0 0 0 3px var(--accent);
  transform: scale(1.08);
}

/* ─ Pickers: panel size, dish/umbrella ────────────────────────────── */
.cz-panel-size,
.cz-vent-size,
.cz-dish-picker {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.cz-panel-size,
.cz-vent-size { margin-top: 4px; }
.cz-panel-size-label,
.cz-vent-size-label,
.cz-dish-picker-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-primary);
  margin-top: 6px;
  /* Same button-reset trick as the color-row head. Mobile flips this
     into a tap-to-expand button below. */
  appearance: none;
  border: none;
  background: none;
  padding: 0;
  text-align: left;
  font: inherit;
  cursor: default;
  display: block;
  width: 100%;
}
.cz-panel-size-label:first-child,
.cz-dish-picker-label:first-child { margin-top: 0; }

/* Per-axis wrapper inside the dish picker - keeps the label + pill row
   together as a single collapsible unit on mobile. */
.cz-dish-axis {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

/* Inline-value + chevron — only visible on mobile (desktop swallows
   them so the existing label-only look stays untouched). */
.cz-collapsible-value,
.cz-chevron { display: none; }

.cz-panel-size-row,
.cz-vent-size-row,
.cz-dish-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 2px;
}
.cz-panel-pill,
.cz-vent-pill,
.cz-dish-pill {
  padding: 5px 11px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface-2);
  color: var(--text-secondary);
  font-size: 12.5px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.12s ease;
}
.cz-panel-pill:hover,
.cz-vent-pill:hover,
.cz-dish-pill:hover {
  border-color: var(--text-tertiary);
  color: var(--text-primary);
}
.cz-panel-pill.active,
.cz-vent-pill.active,
.cz-dish-pill.active {
  background: var(--accent);
  border-color: var(--accent);
  color: white;
}
.cz-dish-extra {
  display: inline-block;
  font-size: 10.5px;
  font-weight: 600;
  opacity: 0.8;
  margin-left: 3px;
}
.cz-dish-pill.active .cz-dish-extra { opacity: 0.95; }

/* ─ Sticky checkout block ─────────────────────────────────────────── */
/* Pinned to the bottom of the controls column so the price + Add to
   Cart button are always visible without scrolling the column. */
.cz-checkout {
  position: sticky;
  bottom: 0;
  margin-top: auto;
  padding: 12px 16px 14px;
  margin-left: -16px;
  margin-right: -16px;
  border-top: 1px solid var(--border);
  background: var(--surface);
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.cz-checkout-row {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  color: var(--text-secondary);
}
.cz-checkout-row-muted { color: var(--text-tertiary); font-size: 12.5px; }
.cz-checkout-total {
  margin-top: 4px;
  padding-top: 8px;
  border-top: 1px solid var(--border);
  font-size: 15px;
  font-weight: 700;
  color: var(--text-primary);
}
.cz-add-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 10px;
  padding: 12px 18px;
  background: var(--accent);
  color: white;
  font-size: 14.5px;
  font-weight: 600;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.1s ease;
}
.cz-add-btn:hover { background: var(--accent-hover); }
.cz-add-btn:active { transform: translateY(1px); }
.cz-add-btn.is-added { background: #34A853; }

/* ─ Mobile stack ──────────────────────────────────────────────────── */
/* ≤ 980 px the customizer becomes a single vertical column. The
   page itself scrolls (no sticky viewer, no internal column scroll —
   those compete with native momentum scroll and cause text overlap as
   the card collapses past its own clip box). Every picker row
   (color groups + dish/panel/umbrella) collapses to a tap-to-expand
   sheet with the current value shown inline. */
@media (max-width: 980px) {
  /* Let the page flow naturally; no fixed viewport height. */
  .cz-wrap {
    padding: calc(var(--nav-h, 64px) + 12px) 12px 24px;
    max-height: none;
    min-height: 0;
    gap: 12px;
  }
  .cz-hero { padding: 0; }
  .cz-hero-title { font-size: 22px; }
  .cz-hero-sub { font-size: 13px; }

  /* Card opens up so its absolutely-positioned dropdown bodies aren't
     clipped, and the inner cells can grow naturally. */
  .cz-card {
    flex: none;
    overflow: visible;
    border-radius: 14px;
  }

  /* Strip: row 1 = [Back] [Active kit label]
            row 2 = [Birdhouses dd] [Feeders dd]
     Dropdown bodies anchor to the strip edges and span its full
     width so they never overflow the screen. */
  .cz-card-strip {
    display: grid;
    grid-template-columns: auto 1fr;
    grid-template-rows: auto auto;
    column-gap: 12px;
    row-gap: 10px;
    padding: 10px 12px;
    min-height: 0;
  }
  .cz-card-strip-kit { font-size: 12.5px; }
  .cz-kit-dropdowns {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    justify-self: stretch;
  }
  .cz-kit-dd > summary {
    justify-content: space-between;
    padding: 9px 12px;
    font-size: 12.5px;
  }
  .cz-kit-dd-current { font-size: 11.5px; }
  .cz-kit-dd-body {
    left: 12px;
    right: 12px;
    width: auto;
    min-width: 0;
  }

  /* Viewer + controls flow vertically inside the card; no sticky,
     no internal scroll. */
  .cz-grid {
    display: block;
    grid-template-columns: none;
    gap: 0;
    flex: none;
    min-height: 0;
  }
  /* Sticky viewer: pinned just below the nav so every swatch / pill /
     size change is visible without scrolling back up. Sits at z-index 4
     (below the strip's 6, above the controls so the model "lifts" over
     the scrolling list). Sized smaller than the open viewer below so
     enough of the controls stays on screen. */
  .cz-viewer-col {
    position: sticky;
    top: calc(var(--nav-h, 64px) + 8px);
    z-index: 4;
    padding: 10px 12px;
    border-right: none;
    border-bottom: 1px solid var(--border);
    background: var(--surface);
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.18);
  }
  .cz-viewer-shell {
    aspect-ratio: 4 / 3;
    min-height: 0;
    max-height: 38vh;
  }
  .cz-viewer-caption { display: none; }    /* hide on mobile - we want the
                                              sticky strip as short as
                                              possible */

  .cz-controls-col {
    overflow: visible;
    max-height: none;
    padding: 14px 12px 0;
    gap: 8px;
    background: var(--surface);
  }
  .cz-section-title {
    font-size: 14px;
    margin: 6px 0 8px;
  }

  /* Override the desktop 2-col grid on .cz-part-group so the head + */
  /* swatches stack instead of sitting side-by-side. */
  .cz-part-group { display: block; }
  .cz-parts { gap: 8px; }

  /* Generic collapsible — wraps each color row, panel-size, and each
     dish-axis. Header shows label + current value + chevron. */
  .cz-collapsible {
    display: block;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: var(--surface-2);
    overflow: hidden;
  }
  .cz-collapsible + .cz-collapsible { margin-top: 0; }
  .cz-panel-size,
  .cz-dish-picker { display: flex; flex-direction: column; gap: 8px; }

  .cz-collapsible-head {
    cursor: pointer !important;
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto auto;
    align-items: center;
    column-gap: 10px;
    width: 100%;
    padding: 12px 14px;
    margin: 0 !important;
    flex-direction: row !important;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    text-align: left;
    background: none;
    border: none;
  }
  .cz-collapsible-head:active { background: var(--surface); }
  .cz-collapsible-head > span:first-child {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .cz-collapsible-value,
  .cz-part-color-label {
    display: inline-block;
    font-size: 12.5px;
    font-weight: 500;
    color: var(--text-secondary);
    text-align: right;
    white-space: nowrap;
    max-width: 45vw;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .cz-chevron {
    display: inline-block;
    width: 14px;
    height: 14px;
    color: var(--text-tertiary);
    flex-shrink: 0;
    transition: transform 0.2s ease;
  }
  .cz-collapsible.is-open > .cz-collapsible-head > .cz-chevron,
  .cz-kit-dd[open] > summary > .cz-chevron { transform: rotate(180deg); }

  /* Body — hidden until .is-open, then revealed as a wrapping flex
     row of swatches or pills. */
  .cz-collapsible-body {
    display: none !important;
    padding: 4px 14px 14px;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: flex-start;
  }
  .cz-collapsible.is-open > .cz-collapsible-body {
    display: flex !important;
  }

  /* Swatch / pill sizing — finger-friendly. */
  .cz-swatch { width: 30px; height: 30px; }
  .cz-part-swatches { justify-content: flex-start; }
  .cz-panel-pill,
  .cz-dish-pill { padding: 8px 14px; font-size: 13px; }

  /* Checkout: inline, full-bleed under the controls. */
  .cz-checkout {
    position: static;
    margin: 14px -12px 0;
    padding: 14px 14px 16px;
    border-radius: 0 0 14px 14px;
  }
  .cz-add-btn { padding: 14px 18px; font-size: 15px; }
}

@media (max-width: 420px) {
  .cz-hero-title { font-size: 20px; line-height: 1.1; }
  .cz-hero-sub { display: none; }     /* hero subtitle drops on tiny screens */
  .cz-kit-dropdowns { grid-template-columns: 1fr; }
}

/* ─ Dark-mode tweaks ──────────────────────────────────────────────── */
[data-theme="dark"] .cz-swatch.active {
  box-shadow: 0 0 0 1.5px var(--surface), 0 0 0 3px var(--accent);
}

/* ── Custom engraving = a collapsible card, collapsed by default everywhere ─ */
/* flex-shrink:0 so the scrolling controls column keeps the card's full height.
   NO overflow:hidden - it would clip the (absolutely-positioned) font dropdown;
   rounded corners come from the head/card border-radius instead. */
.cz-engrave { border: 1.5px solid #e7dac4; border-radius: 12px; margin: 12px 0; flex-shrink: 0; }
.cz-engrave-head {
  width: 100%; display: flex; align-items: center; gap: 10px;
  padding: 12px 14px; border: none; background: var(--paper, #FFFDF6); cursor: pointer;
  font: inherit; font-weight: 700; font-size: 15px; color: var(--ink, #4A3B30); text-align: left;
  border-radius: 11px;
}
.cz-engrave.is-open .cz-engrave-head { border-radius: 11px 11px 0 0; }
.cz-engrave-head:hover { background: #f7efe1; }
.cz-engrave-title { flex-shrink: 0; }
.cz-engrave-sum { margin-left: auto; font-weight: 500; font-size: 12.5px; color: var(--bark, #7A5A44);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 45%; }
.cz-engrave .cz-chevron { flex-shrink: 0; width: 13px; height: 13px; transition: transform .2s ease; }
.cz-engrave.is-open .cz-chevron { transform: rotate(180deg); }
.cz-engrave-fee { color: var(--berry, #EF6A5A); font-weight: 700; font-size: 12px; }
.cz-engrave-body { display: none; flex-direction: column; gap: 10px; padding: 2px 14px 14px; }
.cz-engrave.is-open .cz-engrave-body { display: flex; }
.cz-engrave-hint { margin: 0; font-size: 12.5px; color: var(--bark, #7A5A44); }
.cz-engrave-field { display: flex; flex-direction: column; gap: 4px;
  font-size: 12px; font-weight: 600; color: var(--ink, #4A3B30); }
.cz-engrave-opt { font-weight: 400; color: #a08e79; }
.cz-engrave-input {
  font: inherit; font-weight: 600; padding: 9px 11px; border-radius: 10px;
  border: 1.5px solid #e2d3bd; background: var(--paper, #FFFDF6); color: var(--ink, #4A3B30);
}
.cz-engrave-input:focus { outline: none; border-color: var(--berry, #EF6A5A);
  box-shadow: 0 0 0 3px rgba(239,106,90,0.15); }

.cz-engrave-motif { display: flex; align-items: center; gap: 7px; font-size: 12.5px;
  font-weight: 600; color: var(--bark, #7A5A44); cursor: pointer; }
.cz-engrave-motif input { width: 15px; height: 15px; accent-color: var(--berry, #EF6A5A); }

.cz-engrave-font {
  font: inherit; font-weight: 600; padding: 9px 11px; border-radius: 10px;
  border: 1.5px solid #e2d3bd; background: var(--paper, #FFFDF6); color: var(--ink, #4A3B30);
}
.cz-engrave-font:focus { outline: none; border-color: var(--berry, #EF6A5A);
  box-shadow: 0 0 0 3px rgba(239,106,90,0.15); }

/* Per-line engraving color (restricted to the kit's own part colors) */
.cz-engrave-linecolor { display: flex; align-items: center; gap: 6px; margin: -2px 0 4px; }
.cz-engrave-clab { font-size: 11px; font-weight: 600; color: #a08e79; }
.cz-engrave-cswatch {
  width: 20px; height: 20px; border-radius: 50%; padding: 0; cursor: pointer;
  background: var(--swatch); border: 2px solid #fff; box-shadow: 0 0 0 1px #d8c8b0;
}
.cz-engrave-cswatch.active { box-shadow: 0 0 0 2px var(--berry, #EF6A5A); }

/* Custom font-style dropdown (each row shown in its own typeface) */
.cz-fontsel { position: relative; }
.cz-fontsel select { display: none; }
.cz-fontsel-trigger {
  width: 100%; display: flex; justify-content: space-between; align-items: center;
  font: inherit; font-size: 17px; padding: 9px 12px; border-radius: 10px;
  border: 1.5px solid #e2d3bd; background: var(--paper, #FFFDF6); color: var(--ink, #4A3B30); cursor: pointer;
}
.cz-fontsel-trigger::after { content: '▾'; font-family: system-ui, sans-serif; color: #a08e79; margin-left: 8px; }
.cz-fontsel.open .cz-fontsel-trigger { border-color: var(--berry, #EF6A5A);
  box-shadow: 0 0 0 3px rgba(239,106,90,0.15); }
.cz-fontsel-list {
  position: absolute; z-index: 40; top: calc(100% + 4px); left: 0; right: 0;
  max-height: 300px; overflow-y: auto; padding: 4px; background: #fff;
  border: 1.5px solid #e2d3bd; border-radius: 10px; box-shadow: 0 10px 28px rgba(74,59,48,0.16);
}
.cz-fontsel-opt {
  display: block; width: 100%; text-align: left; font-size: 19px; line-height: 1.5;
  padding: 7px 11px; border: none; background: none; border-radius: 7px; cursor: pointer; color: var(--ink, #4A3B30);
}
.cz-fontsel-opt:hover { background: #f3ead9; }
.cz-fontsel-opt.active { background: rgba(239,106,90,0.12); font-weight: 700; }

/* Per-line color + size on one row */
.cz-engrave-linerow { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin: -2px 0 4px; }
.cz-engrave-sizes { display: inline-flex; gap: 4px; }
.cz-engrave-size {
  font: inherit; font-size: 11px; font-weight: 600; padding: 4px 9px; border-radius: 999px;
  border: 1.5px solid #e2d3bd; background: var(--paper, #FFFDF6); color: var(--bark, #7A5A44); cursor: pointer;
}
.cz-engrave-size:hover { border-color: #d8bfa0; }
.cz-engrave-size.active { background: var(--berry, #EF6A5A); border-color: var(--berry, #EF6A5A); color: #fff; }

/* Font dropdown opens upward when there's little room below */
.cz-fontsel.up .cz-fontsel-list { top: auto; bottom: calc(100% + 4px); }

/* Vertical-position slider */
.cz-engrave-pos { width: 100%; accent-color: var(--berry, #EF6A5A); cursor: pointer; }
.cz-engrave-poshint { display: flex; justify-content: space-between; font-size: 10.5px; color: #a08e79; }
