/* ============================================================
   Made to measure — configurator (product page hero + page-builder block)
   SPEC-parametric-configurator-2026-10-18. Own .pm-* classes, site theme tokens only.
   Layout: live preview (left, sticky) · step panel (right) with price + Add always in view.
   Phones: preview on top (sticky, shorter), steps below, price bar fixed to the bottom.
   ============================================================ */
.pm { color: var(--c3dp-body-ink, #111); margin: 0 0 28px; }
.pm [hidden] { display: none !important; }
.pm-preview { background: #fffbeb; color: #92400e; border: 1.5px solid #fde68a; font-size: 12px; font-weight: 700; padding: 8px 16px; letter-spacing: .04em; margin-bottom: 12px; }

/* ── hero grid ── */
.pm-hero { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(340px, 1fr); gap: 28px; align-items: start; }
.pm-stage { position: sticky; top: calc(var(--pm-top, 90px) + 8px); background: var(--c3dp-surface, #fff); border: 1.5px solid var(--c3dp-line, #e2e8f0); display: flex; flex-direction: column; min-width: 0; }
.pm-vtabs { display: flex; gap: 4px; padding: 10px 10px 0; }
.pm-vtabs button { background: transparent; border: 1.5px solid transparent; padding: 8px 16px; font: 700 11px/1 inherit; font-family: inherit; letter-spacing: .14em; text-transform: uppercase; color: var(--c3dp-muted, #64748b); cursor: pointer; border-radius: var(--c3dp-radius-btn, 0); }
.pm-vtabs button.on { color: var(--c3dp-brand, #2487ce); border-color: var(--c3dp-brand, #2487ce); background: var(--c3dp-brand-tint, #eff6ff); }
.pm-canvas { position: relative; height: 520px; display: flex; align-items: center; justify-content: center; background: #f4f6f9; margin: 10px; overflow: hidden; }
.pm-3d { position: absolute; inset: 0; cursor: grab; touch-action: none; }
.pm-3d:active { cursor: grabbing; }
.pm-plan { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; padding: 18px; }
.pm-plan svg { width: 100%; height: 100%; max-width: 480px; }
.pm-photos { position: absolute; inset: 0; display: flex; flex-direction: column; background: #fff; }
.pm-photos > img { flex: 1; min-height: 0; width: 100%; object-fit: contain; }
.pm-thumbs { display: flex; gap: 6px; padding: 8px; overflow-x: auto; }
.pm-thumbs button { flex: 0 0 56px; height: 56px; padding: 0; border: 1.5px solid var(--c3dp-line, #e2e8f0); background: #fff; cursor: pointer; }
.pm-thumbs button.on { border-color: var(--c3dp-brand, #2487ce); }
.pm-thumbs img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pm-3dmsg { font-size: 12px; color: var(--c3dp-muted, #64748b); text-align: center; position: absolute; bottom: 12px; left: 12px; right: 12px; margin: 0; }
.pm-chip { position: absolute; left: 12px; top: 12px; max-width: calc(100% - 24px); background: rgba(255,255,255,.94); border: 1px solid var(--c3dp-line, #e2e8f0); color: var(--c3dp-ink, #0f172a); font-size: 12px; font-weight: 600; padding: 7px 10px; box-shadow: 0 2px 8px rgba(15,23,42,.06); pointer-events: none; }
.pm-chip--off { display: none; }
.pm-cams { position: absolute; right: 12px; top: 12px; display: inline-flex; background: rgba(255,255,255,.92); border: 1px solid var(--c3dp-line, #e2e8f0); box-shadow: 0 2px 8px rgba(15,23,42,.08); }
.pm-cams button { background: none; border: none; padding: 7px 11px; font: 700 10px/1 inherit; font-family: inherit; letter-spacing: .12em; text-transform: uppercase; color: var(--c3dp-muted, #64748b); cursor: pointer; }
.pm-cams button + button { border-left: 1px solid var(--c3dp-line, #e2e8f0); }
.pm-cams button.on { color: var(--c3dp-brand, #2487ce); }
.pm-cams--off { display: none; }
.pm-legend { font-size: 11px; color: var(--c3dp-muted, #64748b); padding: 0 14px 12px; display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }
.pm-legend i { display: inline-block; width: 12px; height: 12px; vertical-align: -2px; margin-right: 5px; border: 1px solid rgba(0,0,0,.2); }
.pm-sw-base { background: #e2e8f0; }
.pm-sw-bin { background: #334155; }
.pm-sw-spare { background: repeating-linear-gradient(45deg, #fde68a 0 3px, #fff 3px 6px); }
.pm-hint { margin-left: auto; }

/* ── panel ── */
.pm-panel { min-width: 0; position: sticky; top: calc(var(--pm-top, 90px) + 8px); height: calc(100vh - var(--pm-top, 90px) - 24px); min-height: 520px; max-height: 860px; display: flex; flex-direction: column; border: 1.5px solid var(--c3dp-line, #e2e8f0); background: var(--c3dp-surface, #fff); }
.pm-scroll { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 18px 18px 8px; }
.pm-buyslot { flex: 0 0 auto; }
.pm-intro { margin-bottom: 14px; }
.pm-title { font-size: 24px; line-height: 1.15; font-weight: 900; color: var(--c3dp-ink, #0f172a); margin: 0 0 6px; text-transform: uppercase; letter-spacing: -.01em; }
.pm--block .pm-title { font-size: 24px; }
.pm-rating { margin-bottom: 6px; }
.pm-sub { font-size: 14px; color: var(--c3dp-muted, #64748b); margin: 0; }
.pm-steps { border: 1.5px solid var(--c3dp-line, #e2e8f0); background: var(--c3dp-surface, #fff); }
.pm-stage .pm-canvas { height: calc(100vh - 210px); min-height: 440px; max-height: 740px; }

/* accordion */
.pm-step { border-bottom: 1px solid var(--c3dp-line, #e2e8f0); }
.pm-step__head { width: 100%; display: flex; align-items: center; gap: 12px; padding: 14px 16px; background: none; border: none; cursor: pointer; text-align: left; font-family: inherit; color: inherit; }
.pm-step__n { flex: 0 0 28px; height: 28px; border-radius: 50%; border: 2px solid var(--c3dp-line, #e2e8f0); color: var(--c3dp-muted, #64748b); font-weight: 800; font-size: 13px; display: flex; align-items: center; justify-content: center; }
.pm-step.open .pm-step__n { border-color: var(--c3dp-brand, #2487ce); color: var(--c3dp-brand, #2487ce); }
.pm-step.ok .pm-step__n { background: var(--c3dp-accent, #a3e635); border-color: var(--c3dp-accent, #a3e635); color: var(--c3dp-body-ink, #111); font-size: 0; }
.pm-step.ok .pm-step__n::before { content: '✓'; font-size: 14px; }
.pm-step.bad .pm-step__n { background: var(--c3dp-danger-tint, #fef2f2); border-color: var(--c3dp-danger, #dc2626); color: var(--c3dp-danger, #dc2626); }
.pm-step__t { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.pm-step__t b { font-size: 15px; font-weight: 800; color: var(--c3dp-ink, #0f172a); }
.pm-step__t small { font-size: 12px; color: var(--c3dp-muted, #64748b); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pm-step.open .pm-step__t small { display: none; }
.pm-step__ch { width: 8px; height: 8px; border-right: 2px solid var(--c3dp-muted-2, #94a3b8); border-bottom: 2px solid var(--c3dp-muted-2, #94a3b8); transform: rotate(45deg); margin: 0 4px 4px; transition: transform .15s; }
.pm-step.open .pm-step__ch { transform: rotate(-135deg); margin-bottom: -2px; }
.pm-step__body { padding: 2px 16px 16px 56px; }

/* fields */
.pm-row3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.pm-f label { display: block; font-size: 10px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--c3dp-muted, #64748b); margin-bottom: 5px; }
.pm-f input { width: 100%; border: 1.5px solid var(--c3dp-line, #e2e8f0); background: var(--c3dp-bg, #f8f9fa); padding: 12px 10px; font-size: 17px; font-weight: 700; font-family: inherit; outline: none; border-radius: var(--c3dp-radius-input, 0); color: inherit; }
.pm-f input:focus { border-color: var(--c3dp-brand, #2487ce); background: var(--c3dp-surface, #fff); }
.pm-unit { position: relative; }
.pm-unit::after { content: attr(data-unit); position: absolute; right: 10px; top: 50%; transform: translateY(-50%); font-size: 11px; color: var(--c3dp-muted-2, #94a3b8); pointer-events: none; }
.pm-unit input { padding-right: 34px; -moz-appearance: textfield; }
.pm-unit input::-webkit-outer-spin-button, .pm-unit input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.pm-link { background: none; border: none; padding: 0; color: var(--c3dp-brand, #2487ce); font: inherit; font-size: 12px; text-decoration: underline; cursor: pointer; }
.pm-guide { margin-top: 10px; display: inline-flex; align-items: center; gap: 6px; }
.pm-guide::before { content: '?'; width: 16px; height: 16px; border-radius: 50%; background: var(--c3dp-brand, #2487ce); color: #fff; font-size: 11px; font-weight: 800; display: inline-flex; align-items: center; justify-content: center; text-decoration: none; }
.pm-result { margin-top: 12px; background: var(--c3dp-brand-tint, #eff6ff); color: #1e3a8a; padding: 10px 12px; font-size: 13px; line-height: 1.5; }
.pm-help { font-size: 13px; color: var(--c3dp-text, #475569); margin: 0 0 12px; }
.pm-btn--next { margin-top: 14px; background: var(--c3dp-ink, #0f172a); color: #fff; padding: 10px 20px; }
.pm-btn--next:hover { background: var(--c3dp-brand, #2487ce); }

/* bins: options + tiles */
.pm-opts { display: grid; gap: 10px; margin-bottom: 14px; }
.pm-optrow { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.pm-optl { font-size: 10px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--c3dp-muted, #64748b); min-width: 54px; }
.pm-seg { display: inline-flex; border: 1.5px solid var(--c3dp-line, #e2e8f0); }
.pm-seg button { background: var(--c3dp-surface, #fff); border: none; padding: 8px 12px; font: 600 12px/1 inherit; font-family: inherit; cursor: pointer; color: var(--c3dp-text, #475569); }
.pm-seg button + button { border-left: 1.5px solid var(--c3dp-line, #e2e8f0); }
.pm-seg button.on { background: var(--c3dp-brand, #2487ce); color: #fff; }
.pm-seg button[disabled] { opacity: .35; cursor: not-allowed; text-decoration: line-through; }
.pm-pills { display: inline-flex; gap: 6px; flex-wrap: wrap; }
.pm-pills button { background: var(--c3dp-surface, #fff); border: 1.5px solid var(--c3dp-line, #e2e8f0); border-radius: 999px; padding: 6px 12px; font: 600 12px/1 inherit; font-family: inherit; cursor: pointer; color: var(--c3dp-text, #475569); }
.pm-pills button::before { content: '+ '; }
.pm-pills button.on { border-color: var(--c3dp-brand, #2487ce); background: var(--c3dp-brand-tint, #eff6ff); color: var(--c3dp-brand, #2487ce); }
.pm-pills button.on::before { content: '✓ '; }
.pm-tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.pm-tile { border: 1.5px solid var(--c3dp-line, #e2e8f0); background: var(--c3dp-surface, #fff); display: flex; flex-direction: column; transition: border-color .12s; }
.pm-tile.has { border-color: var(--c3dp-brand, #2487ce); box-shadow: inset 0 0 0 1px var(--c3dp-brand, #2487ce); }
.pm-tile__add { background: none; border: none; cursor: pointer; padding: 12px 6px 6px; display: flex; flex-direction: column; align-items: center; gap: 6px; font-family: inherit; color: var(--c3dp-ink, #0f172a); min-height: 76px; justify-content: flex-end; }
.pm-tile__add svg { fill: #cbd5e1; }
.pm-tile.has .pm-tile__add svg { fill: var(--c3dp-brand, #2487ce); }
.pm-tile__add:hover svg { fill: var(--c3dp-brand, #2487ce); }
.pm-tile__add b { font-size: 14px; font-weight: 800; }
.pm-tile__cnt { display: flex; align-items: center; justify-content: space-between; border-top: 1px solid var(--c3dp-line, #e2e8f0); }
.pm-tile__cnt button { width: 32px; height: 30px; background: none; border: none; font-size: 17px; cursor: pointer; color: var(--c3dp-brand, #2487ce); font-family: inherit; }
.pm-tile__cnt span { font-weight: 800; font-size: 13px; }
.pm-tile:not(.has) .pm-tile__cnt span, .pm-tile:not(.has) [data-dec] { color: var(--c3dp-muted-2, #94a3b8); }
.pm-meter { margin-top: 14px; font-size: 12px; color: var(--c3dp-muted, #64748b); }
.pm-meter__bar { height: 6px; background: var(--c3dp-surface-2, #f1f5f9); margin-top: 5px; }
.pm-meter__bar i { display: block; height: 100%; background: var(--c3dp-brand, #2487ce); width: 0; transition: width .2s; }
.pm-binbar { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; margin-top: 12px; }
.pm-lines { margin-top: 14px; }
.pm-lines__h { font-size: 10px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--c3dp-muted, #64748b); margin-bottom: 6px; }
.pm-lines ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.pm-lines li { display: flex; justify-content: space-between; align-items: center; gap: 8px; font-size: 13px; background: var(--c3dp-surface-3, #f8fafc); padding: 6px 4px 6px 10px; }
.pm-x { background: none; border: none; color: var(--c3dp-muted-2, #94a3b8); font-size: 18px; line-height: 1; cursor: pointer; padding: 2px 6px; }
.pm-x:hover { color: var(--c3dp-danger, #dc2626); }

/* colour */
.pm-swatches { display: flex; gap: 10px; flex-wrap: wrap; }
.pm-sw { display: inline-flex; flex-direction: column; align-items: center; gap: 6px; border: none; background: none; padding: 0; cursor: pointer; font: inherit; font-size: 12px; color: var(--c3dp-text, #475569); }
.pm-sw i { width: 40px; height: 40px; border-radius: 50%; border: 1px solid rgba(0,0,0,.15); display: block; box-shadow: 0 0 0 3px #fff, 0 0 0 4px transparent; transition: box-shadow .12s; }
.pm-sw.on i { box-shadow: 0 0 0 3px #fff, 0 0 0 5px var(--c3dp-brand, #2487ce); }
.pm-sw.on span { color: var(--c3dp-ink, #0f172a); font-weight: 700; }

/* buy */
.pm-buy { padding: 14px 18px 16px; background: var(--c3dp-surface-3, #f8fafc); box-shadow: 0 -10px 18px -14px rgba(15,23,42,.35); border-top: 1px solid var(--c3dp-line, #e2e8f0); }
.pm-buyrow { display: flex; align-items: center; gap: 14px; }
.pm-price { display: flex; flex-direction: column; flex: 0 0 auto; }
.pm-price__l { font-size: 10px; font-weight: 700; letter-spacing: .15em; text-transform: uppercase; color: var(--c3dp-muted, #64748b); }
.pm-price__v { font-size: 30px; line-height: 1.05; font-weight: 900; color: var(--c3dp-ink, #0f172a); transition: opacity .15s; }
.pm-busy .pm-price__v, .pm-busy .pm-bar__p { opacity: .4; }
.pm-lead { font-size: 12px; color: var(--c3dp-accent-dark, #65a30d); font-weight: 700; margin: 10px 0 0; }
.pm-buymore { display: flex; gap: 16px; align-items: baseline; flex-wrap: wrap; margin-top: 6px; }
.pm-err { background: var(--c3dp-danger-tint, #fef2f2); color: var(--c3dp-danger-deep, #991b1b); padding: 10px 12px; font-size: 13px; margin: 0 0 12px; }
.pm-box { margin: 0; font-size: 12px; }
.pm-box summary { cursor: pointer; color: var(--c3dp-brand, #2487ce); font-weight: 600; }
.pm-parts { color: var(--c3dp-text, #475569); margin: 6px 0 0; line-height: 1.7; }
.pm-tick { display: flex; gap: 8px; font-size: 12.5px; line-height: 1.4; color: var(--c3dp-ink, #0f172a); margin-bottom: 8px; align-items: flex-start; cursor: pointer; padding: 8px; margin-left: -8px; margin-right: -8px; transition: background .2s; }
.pm-tick input { margin-top: 3px; width: 17px; height: 17px; flex: 0 0 17px; }
.pm-tick.pm-flash { background: #fef9c3; outline: 2px solid #facc15; }
.pm-tickmsg { font-size: 12px; color: #a16207; font-weight: 700; margin: -6px 0 10px; }
.pm-actions { display: flex; gap: 10px; }
.pm-btn { display: inline-block; padding: 12px 22px; font-weight: 900; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; border: none; cursor: pointer; font-family: inherit; border-radius: var(--c3dp-radius-btn, 0); text-decoration: none; }
.pm-btn--wide { flex: 1; padding: 15px 22px; font-size: 13px; }
.pm-btn--lime { background: var(--c3dp-accent, #a3e635); color: var(--c3dp-body-ink, #111); }
.pm-btn--lime:hover:not([disabled]) { background: var(--c3dp-accent-hover, #bef264); }
.pm-btn--ghost { background: transparent; color: var(--c3dp-brand, #2487ce); border: 1.5px solid var(--c3dp-brand, #2487ce); padding: 9px 14px; font-size: 11px; }
.pm-btn--ghost:hover:not([disabled]) { background: var(--c3dp-brand, #2487ce); color: #fff; }
.pm-btn[disabled] { opacity: .45; cursor: not-allowed; }
.pm-added { font-size: 13px; color: var(--c3dp-accent-dark, #65a30d); font-weight: 700; margin: 10px 0 0; }
.pm-added a { color: var(--c3dp-brand, #2487ce); }
.pm-sharebtn { margin: 0; }
.pm-sharebtn[disabled] { opacity: .45; cursor: not-allowed; }
.pm-share { font-size: 11px; color: var(--c3dp-muted, #64748b); margin: 6px 0 0; word-break: break-all; }
.pm-trust { margin-top: 16px; }
.pm-attr { font-size: 11px; color: var(--c3dp-muted-2, #94a3b8); margin: 14px 0 0; }

@media (min-width: 901px) { .pm-scroll .pm-steps { border-width: 1.5px 0 0; margin: 0 -18px; } }

/* phone price bar */
.pm-bar { display: none; }

/* measuring guide */
.pm-modal { position: fixed; inset: 0; background: rgba(15,23,42,.55); z-index: 10050; display: flex; align-items: center; justify-content: center; padding: 16px; }
.pm-modal__box { background: var(--c3dp-surface, #fff); max-width: 520px; width: 100%; padding: 22px; max-height: 90vh; overflow: auto; }
.pm-modal__box h3 { font-size: 16px; font-weight: 900; margin: 0 0 10px; }
.pm-modal__art { width: 100%; max-width: 320px; display: block; margin: 0 auto 12px; }
.pm-modal__box ol { padding-left: 18px; font-size: 13px; color: var(--c3dp-text, #475569); line-height: 1.7; margin: 0 0 14px; }

/* product page: the hero takes the gallery's place */
#pm-configurator { background: var(--c3dp-surface, #fff); border-bottom: 1.5px solid var(--c3dp-line, #e2e8f0); padding: 28px 48px 20px; }
#pm-configurator .pm { margin: 0; }

@media (max-width: 1100px) {
  #pm-configurator { padding: 24px 24px 16px; }
  .pm-hero { grid-template-columns: minmax(0, 1fr) minmax(320px, 1fr); gap: 20px; }
}
@media (max-width: 900px) {
  .pm-hero { display: flex; flex-direction: column; align-items: stretch; gap: 16px; }
  #pm-configurator { padding: 16px 16px 8px; }
  .pm-buy { box-shadow: none; border: 1.5px solid var(--c3dp-line, #e2e8f0); }
  .pm-panel, .pm-scroll { display: contents; }
  .pm-intro { order: -1; margin-bottom: 0; }
  .pm-steps { order: 1; }
  .pm-buyslot { order: 2; }
  .pm-trust { order: 3; margin-top: 0; }
  .pm-stage .pm-canvas { height: 30vh; min-height: 200px; max-height: 300px; }
  .pm-stage { position: sticky; top: var(--pm-top, 0px); z-index: 20; box-shadow: 0 6px 14px -10px rgba(15,23,42,.35); }
  .pm-vtabs { padding: 6px 6px 0; }
  .pm-vtabs button { padding: 6px 12px; }
  .pm-canvas { margin: 6px; }
  .pm-legend { display: none; }
  .pm-chip { font-size: 11px; padding: 5px 8px; left: 8px; top: 8px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .pm-cams { right: 8px; top: auto; bottom: 8px; }
  .pm-cams button { padding: 6px 8px; }
  .pm-title { font-size: 22px; }
  .pm-step__body { padding-left: 16px; }
  .pm-tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .pm-bar { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 9990; background: var(--c3dp-surface, #fff); border-top: 1.5px solid var(--c3dp-line, #e2e8f0); padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); align-items: center; justify-content: space-between; gap: 12px; box-shadow: 0 -6px 18px rgba(15,23,42,.08); transition: transform .2s; }
  .pm-bar--away { transform: translateY(110%); }
  .pm-bar__p { font-size: 22px; font-weight: 900; color: var(--c3dp-ink, #0f172a); }
  .pm-bar .pm-btn { padding: 13px 18px; }
  .pm { padding-bottom: 70px; }
}
@media (max-width: 420px) {
  .pm-row3 { gap: 6px; }
  .pm-f input { font-size: 16px; padding: 11px 8px; }
  .pm-unit input { padding-right: 28px; }
  .pm-unit::after { right: 6px; }
}

/* ── Gridfinity v2 bin builder (gridfinity-drawer-v2.js, SPEC-gridfinity-v2 §6) ── */
.pmx-pad { display: flex; gap: 8px; align-items: flex-start; margin-top: 12px; cursor: pointer; font-size: 13px; color: var(--c3dp-ink, #0f172a); }
.pmx-pad input { margin-top: 3px; width: 17px; height: 17px; flex: 0 0 17px; }
.pmx-pad small { display: block; font-size: 12px; color: var(--c3dp-muted, #64748b); margin-top: 2px; }
.pmx-build { display: grid; gap: 12px; }
.pmx-size { display: flex; align-items: flex-end; gap: 10px; flex-wrap: wrap; }
.pmx-x { font-weight: 700; color: var(--c3dp-muted, #64748b); padding-bottom: 22px; }
.pmx-step { display: flex; flex-direction: column; gap: 4px; }
.pmx-step small { font-size: 11px; color: var(--c3dp-muted, #64748b); }
.pmx-stepper { display: inline-flex; align-items: center; border: 1.5px solid var(--c3dp-line, #e2e8f0); }
.pmx-stepper button { width: 34px; height: 34px; border: none; background: var(--c3dp-surface, #fff); font: 700 17px/1 inherit; font-family: inherit; cursor: pointer; color: var(--c3dp-ink, #0f172a); }
.pmx-stepper button[disabled] { opacity: .3; cursor: not-allowed; }
.pmx-stepper b { min-width: 30px; text-align: center; font-size: 15px; }
.pmx-row { row-gap: 8px; }
.pmx-hseg { flex-wrap: wrap; }
.pmx-comp { display: grid; gap: 8px; }
.pmx-comp__body { display: flex; gap: 12px; flex-wrap: wrap; }
.pmx-add { justify-self: start; }
.pmx-msg { margin: 10px 0 0; background: #fef2f2; color: #991b1b; padding: 8px 10px; font-size: 13px; line-height: 1.4; }
.pmx-fab { position: absolute; right: 10px; bottom: 10px; z-index: 3; background: var(--c3dp-ink, #0f172a); color: #fff; border: none; padding: 9px 14px; font: 800 11px/1 inherit; font-family: inherit; letter-spacing: .08em; text-transform: uppercase; cursor: pointer; box-shadow: 0 4px 14px rgba(15,23,42,.18); }
.pmx-fab:hover { background: var(--c3dp-brand, #2487ce); }
.pmx-bar { position: absolute; left: 8px; right: 8px; bottom: 8px; z-index: 4; background: rgba(255,255,255,.97); border: 1.5px solid var(--c3dp-line, #e2e8f0); box-shadow: 0 8px 26px rgba(15,23,42,.16); padding: 10px 12px; max-height: 62%; overflow: auto; font-size: 13px; }
.pmx-bar__h { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 8px; color: var(--c3dp-ink, #0f172a); }
.pmx-bar__hr { display: inline-flex; gap: 6px; }
.pmx-done { background: var(--c3dp-accent, #a3e635); color: var(--c3dp-body-ink, #111); border: none; padding: 8px 14px; font: 900 11px/1 inherit; font-family: inherit; letter-spacing: .1em; text-transform: uppercase; cursor: pointer; }
.pmx-tools { display: flex; flex-wrap: wrap; gap: 6px 8px; align-items: center; }
.pmx-ib { background: var(--c3dp-surface, #fff); border: 1.5px solid var(--c3dp-line, #e2e8f0); padding: 7px 10px; min-width: 36px; font: 700 12px/1 inherit; font-family: inherit; cursor: pointer; color: var(--c3dp-ink, #0f172a); touch-action: manipulation; user-select: none; }
.pmx-ib:hover:not([disabled]) { border-color: var(--c3dp-brand, #2487ce); }
.pmx-ib[disabled] { opacity: .35; cursor: not-allowed; }
.pmx-del { color: var(--c3dp-danger, #dc2626); }
.pmx-move, .pmx-h { display: inline-flex; align-items: center; gap: 4px; }
.pmx-h b { min-width: 74px; text-align: center; font-size: 12px; }
.pmx-tg { border: 1.5px solid var(--c3dp-line, #e2e8f0); border-radius: 999px; background: var(--c3dp-surface, #fff); padding: 6px 12px; font: 600 12px/1 inherit; font-family: inherit; cursor: pointer; color: var(--c3dp-text, #475569); }
.pmx-tg::before { content: '+ '; }
.pmx-tg.on { border-color: var(--c3dp-brand, #2487ce); background: var(--c3dp-brand-tint, #eff6ff); color: var(--c3dp-brand, #2487ce); }
.pmx-tg.on::before { content: '✓ '; }
.pmx-compbox { margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--c3dp-line, #e2e8f0); }
.pmx-sizes { display: flex; flex-wrap: wrap; gap: 6px; }
.pmx-sizes button { border: 1.5px solid var(--c3dp-line, #e2e8f0); background: var(--c3dp-surface, #fff); padding: 8px 12px; font: 800 13px/1 inherit; font-family: inherit; cursor: pointer; }
.pmx-sizes button:hover { border-color: var(--c3dp-brand, #2487ce); color: var(--c3dp-brand, #2487ce); }
.pmx-pbin { cursor: pointer; }
.pmx-editing .pm-3d { cursor: pointer; }
.pmx-editing .pm-cams { display: none; }
@media (max-width: 900px) {
  .pmx-editing .pm-stage .pm-canvas { height: calc(100vh - var(--pm-top, 90px) - 170px); min-height: 360px; max-height: 620px; }
  .pmx-bar { max-height: 70%; padding: 8px 10px; }
  .pmx-ib { padding: 9px 11px; }
}

/* ============================================================
   UX v3 U1 (2026-10-29) — the full-screen BUILDER (/products/{slug}/build) + the product page BUY CARD.
   Builder: fixed over the whole window; top bar · live view left · one step at a time right · Back/Next.
   Phones: view on top (42% height), the step below, Back / price / Next pinned at the bottom.
   Site theme tokens only, sharp corners, uppercase labels (c3dp brand).
   ============================================================ */
html.pm-builder-open, html.pm-builder-open body { overflow: hidden; }
.pm--builder { position: fixed; inset: 0; z-index: 9000; margin: 0; padding: 0 !important; display: flex; flex-direction: column; background: var(--c3dp-bg, #f8f9fa); color: var(--c3dp-body-ink, #111); }
.pm--builder .pm-preview { margin: 0; }
.pmb-top { flex: 0 0 auto; display: flex; align-items: center; gap: 16px; padding: 0 16px; min-height: 60px; background: var(--c3dp-surface, #fff); border-bottom: 1.5px solid var(--c3dp-line, #e2e8f0); }
.pmb-exit { flex: 0 0 auto; display: inline-flex; align-items: center; gap: 6px; padding: 8px 12px; border: 1.5px solid var(--c3dp-line, #e2e8f0); font-weight: 900; font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--c3dp-ink, #0f172a); text-decoration: none; }
.pmb-exit:hover { border-color: var(--c3dp-brand, #2487ce); color: var(--c3dp-brand, #2487ce); }
.pmb-name { font-weight: 900; font-size: 13px; letter-spacing: .04em; text-transform: uppercase; color: var(--c3dp-ink, #0f172a); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 260px; }
.pmb-steps { flex: 1; min-width: 0; display: flex; align-items: center; justify-content: center; gap: 2px; }
.pmb-steps button { background: none; border: none; display: inline-flex; align-items: center; gap: 7px; padding: 6px 6px; font: inherit; font-size: 12px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--c3dp-muted, #64748b); cursor: pointer; white-space: nowrap; }
.pmb-steps button i { font-style: normal; width: 24px; height: 24px; border-radius: 50%; border: 2px solid var(--c3dp-line, #e2e8f0); display: inline-flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 900; }
.pmb-steps button.on { color: var(--c3dp-brand, #2487ce); }
.pmb-steps button.on i { border-color: var(--c3dp-brand, #2487ce); }
.pmb-steps button.ok i { background: var(--c3dp-accent, #a3e635); border-color: var(--c3dp-accent, #a3e635); color: var(--c3dp-body-ink, #111); }
.pmb-steps button[disabled] { opacity: .5; cursor: default; }
.pmb-sep { width: 16px; height: 2px; background: var(--c3dp-line, #e2e8f0); flex: 0 0 auto; }
.pmb-price { flex: 0 0 auto; text-align: right; }
.pmb-price small { display: block; font-size: 10px; font-weight: 700; letter-spacing: .15em; text-transform: uppercase; color: var(--c3dp-muted, #64748b); }
.pmb-price b { font-size: 20px; font-weight: 900; color: var(--c3dp-ink, #0f172a); }
.pm-busy .pmb-price b, .pm-busy .pmb-foot__price { opacity: .45; }
.pmb-main { flex: 1; min-height: 0; display: grid; grid-template-columns: minmax(0, 1fr) 420px; }
.pm--builder .pm-stage { position: relative; top: auto; border: 0; display: flex; flex-direction: column; min-height: 0; background: transparent; }
.pm--builder .pm-stage .pm-canvas, .pm--builder.pmx-editing .pm-stage .pm-canvas { flex: 1; height: auto; min-height: 0; max-height: none; margin: 0 10px; }
.pm--builder .pm-vtabs { padding: 8px 10px 6px; }
.pm--builder .pm-legend { padding: 8px 14px; }
.pm--builder .pm-panel { position: relative; top: auto; height: auto; min-height: 0; max-height: none; border-width: 0 0 0 1.5px; display: flex; flex-direction: column; }
.pm--builder .pm-scroll { flex: 1; min-height: 0; overflow-y: auto; padding: 18px 20px 12px; display: block; }
.pm--builder .pm-steps { border: 0; margin: 0; }
.pmb-stepno { font-size: 11px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--c3dp-muted, #64748b); margin-bottom: 4px; }
.pm--builder .pm-step--page { border: 0; }
.pm--builder .pm-step--page > .pm-step__body { padding: 0; }
.pm--builder .pm-step--page::before { content: none; }
.pmb-steptitle { font-size: 22px; font-weight: 900; text-transform: uppercase; color: var(--c3dp-ink, #0f172a); line-height: 1.1; margin: 0 0 14px; }
.pmb-foot { flex: 0 0 auto; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 10px; padding: 12px 20px calc(12px + env(safe-area-inset-bottom)); border-top: 1.5px solid var(--c3dp-line, #e2e8f0); background: var(--c3dp-surface, #fff); }
.pmb-foot__price { text-align: center; font-size: 18px; font-weight: 900; color: var(--c3dp-ink, #0f172a); }
.pm-btn--blue { background: var(--c3dp-brand, #2487ce); color: #fff; padding: 13px 22px; }
.pm-btn--blue:hover:not([disabled]) { background: var(--c3dp-brand-dark, #1a6aad); }
.pm-btn--blue.pmb-why { background: var(--c3dp-surface-3, #f1f5f9); color: #b45309; border: 1.5px solid #fcd34d; letter-spacing: .02em; text-transform: none; font-weight: 700; font-size: 12.5px; white-space: normal; line-height: 1.3; text-align: center; opacity: 1; }
.pmb-intro { color: var(--c3dp-muted, #64748b); font-size: 14px; margin: 0 0 14px; line-height: 1.45; }
.pmb-review { border: 1.5px solid var(--c3dp-line, #e2e8f0); padding: 12px 14px; margin-bottom: 14px; background: var(--c3dp-surface, #fff); }
.pmb-sum { font-weight: 800; margin: 0 0 8px; color: var(--c3dp-ink, #0f172a); }
.pmb-lines { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; font-size: 13px; color: #334155; }
.pm--builder .pm-buy { box-shadow: none; border: 1.5px solid var(--c3dp-line, #e2e8f0); }
.pmb-save { margin-top: 10px; width: 100%; padding: 12px 14px; }
.pm--builder .pm-attr { display: none; }
@media (max-width: 1100px) {
  .pmb-main { grid-template-columns: minmax(0, 1fr) 360px; }
  .pmb-steps button span { display: none; }
  .pmb-sep { width: 10px; }
}
@media (max-width: 900px) {
  .pmb-top { flex-wrap: wrap; gap: 8px; padding: 8px 12px; min-height: 0; }
  .pmb-name { order: 1; flex: 1; max-width: none; font-size: 12px; }
  .pmb-exit { order: 2; padding: 6px 10px; }
  .pmb-price { display: none; }
  .pmb-steps { order: 3; flex: 0 0 100%; justify-content: space-between; }
  .pmb-steps button { padding: 2px; }
  .pmb-main { grid-template-columns: 1fr; grid-template-rows: 42% minmax(0, 1fr); }
  .pm--builder .pm-panel, .pm--builder .pm-scroll { display: flex; }
  .pm--builder .pm-scroll { display: block; padding: 14px 14px 10px; }
  .pm--builder .pm-panel { border-width: 1.5px 0 0; }
  .pm--builder .pm-stage .pm-canvas, .pm--builder.pmx-editing .pm-stage .pm-canvas { margin: 0 6px; }
  .pm--builder .pm-legend { display: none; }
  .pm--builder .pm-vtabs { padding: 6px; }
  .pmb-foot { padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); }
  .pm--builder .pm-buy { border-width: 1.5px; }
}

/* ── buy card (product page buy box + page-builder block) ── */
.pmc { margin: 14px 0 18px; }
/* "From £X" in the c3dp brand blue (Paul, 2026-11-05 — was muted label + black price) */
.pmc-from { font-size: 13px; color: var(--c3dp-brand, #2487ce); margin-bottom: 10px; }
.pmc-from b { font-size: 30px; font-weight: 900; color: var(--c3dp-brand, #2487ce); margin-left: 4px; }
.pmc-intro { font-size: 14px; line-height: 1.5; margin: 0 0 16px; color: var(--c3dp-body-ink, #111); }
.pmc-build { display: block; text-align: center; padding: 17px 22px; font-size: 14px; }
.pmc-gone { background: #fffbeb; border: 1px solid #fde68a; color: #92400e; padding: 10px 12px; font-size: 13px; margin: 0 0 12px; }
.pmc-design { border: 2px solid var(--c3dp-brand, #2487ce); background: var(--c3dp-brand-tint, #eff6ff); padding: 14px; }
.pmc-h { font-size: 12px; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; color: var(--c3dp-brand, #2487ce); margin-bottom: 6px; }
.pmc-sum { font-weight: 800; margin: 0 0 8px; color: var(--c3dp-ink, #0f172a); font-size: 14px; }
.pmc-lines { list-style: none; margin: 0 0 10px; padding: 0; display: grid; gap: 3px; font-size: 13px; color: #334155; }
.pmc-price { font-size: 28px; font-weight: 900; color: var(--c3dp-ink, #0f172a); margin: 4px 0 12px; }
.pmc-design .pm-btn--wide { display: block; width: 100%; }
.pmc-added { font-size: 13px; font-weight: 700; color: #166534; margin: 10px 0 0; }
.pmc-row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 10px; }
.pmc-row .pm-btn { text-align: center; padding: 11px 10px; }
.pmc .pm-preview { margin: 10px 0 0; }
.pmc-block { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(280px, 1fr); gap: 28px; align-items: center; background: var(--c3dp-surface, #fff); border: 1.5px solid var(--c3dp-line, #e2e8f0); padding: 18px; }
.pmc-block__pic { display: block; aspect-ratio: 1 / 1; background: #f4f6f9; overflow: hidden; }
.pmc-block__pic img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pmc-block__h { font-size: 26px; font-weight: 900; text-transform: uppercase; line-height: 1.1; margin: 0 0 8px; color: var(--c3dp-ink, #0f172a); }
.pmc-block__intro { color: var(--c3dp-muted, #64748b); margin: 0 0 6px; }
@media (max-width: 900px) { .pmc-block { grid-template-columns: 1fr; gap: 16px; padding: 14px; } }
/* builder: room for the staging/local banner (never on production); the theme's ambient tint is switched off
   inside the builder so the 3D shows true colours (it stays on every other page) */
body:has(> .c3dp-env-banner) .pm--builder { top: 30px; }
html.pm-builder-open #c3dp-theme-fx, html.pm-builder-open .c3dp-amb-bg, html.pm-builder-open .c3dp-amb { display: none !important; }

/* ── UX v3 U2: Start point tiles, size tiles, Undo/Redo, Bin details, admin layout box ── */
.pmx-ltiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.pmx-ltile { display: flex; flex-direction: column; background: var(--c3dp-surface, #fff); border: 1.5px solid var(--c3dp-line, #e2e8f0); padding: 0; text-align: left; cursor: pointer; font: inherit; color: inherit; }
.pmx-ltile:hover:not([disabled]) { border-color: var(--c3dp-brand, #2487ce); }
.pmx-ltile.on { border-color: var(--c3dp-brand, #2487ce); box-shadow: inset 0 0 0 1.5px var(--c3dp-brand, #2487ce); }
.pmx-ltile[disabled] { opacity: .45; cursor: not-allowed; }
.pmx-ltile svg { display: block; width: 100%; height: 110px; background: #f4f6f9; padding: 8px; }
.pmx-ltile span { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 8px; align-items: baseline; padding: 8px 10px; }   /* name | price, wraps without overlap */
.pmx-ltile b { display: block; grid-column: 1; min-width: 0; overflow-wrap: anywhere; font-size: 13px; font-weight: 900; text-transform: uppercase; letter-spacing: .03em; color: var(--c3dp-ink, #0f172a); }
.pmx-ltile em { grid-column: 2; grid-row: 1; font-style: normal; white-space: nowrap; font-weight: 900; font-size: 13px; color: var(--c3dp-ink, #0f172a); }
.pmx-ltile small { display: block; grid-column: 1 / -1; font-size: 12px; color: var(--c3dp-muted, #64748b); margin-top: 2px; }
.pmx-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(70px, 1fr)); gap: 6px; margin-bottom: 12px; }
.pmx-tile { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 8px 4px 6px; background: var(--c3dp-surface, #fff); border: 1.5px solid var(--c3dp-line, #e2e8f0); cursor: pointer; font: inherit; color: var(--c3dp-ink, #0f172a); }
.pmx-tile svg { width: 36px; height: 36px; }
.pmx-tile b { font-size: 12px; font-weight: 900; }
.pmx-tile:hover:not([disabled]) { border-color: var(--c3dp-brand, #2487ce); color: var(--c3dp-brand, #2487ce); }
.pmx-tile[disabled] { opacity: .35; cursor: not-allowed; }
.pmx-hist { display: inline-flex; gap: 6px; margin-left: auto; }
.pm--builder .pm-binbar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.pmd-sel { display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; padding: 10px 12px; background: var(--c3dp-brand-tint, #eff6ff); border: 1px solid #bfdbfe; }
.pmd-applies { font-weight: 800; color: var(--c3dp-brand, #2487ce); font-size: 13px; }
.pmd-applies.none { color: var(--c3dp-muted, #64748b); font-weight: 600; }
.pmd-sel .pm-btn { padding: 7px 10px; font-size: 10.5px; }
.pmd-ctrls .pm-optrow { margin-bottom: 14px; }
.pmd-off { opacity: .45; pointer-events: none; }
.pm-seg button.mix, .pm-pills button.mix { background: repeating-linear-gradient(45deg, var(--c3dp-brand-tint, #eff6ff) 0 4px, #fff 4px 8px); }
.pmd-mixed { font-size: 12px; color: var(--c3dp-muted, #64748b); margin: 6px 0 0; }
.pmb-admin { margin-top: 16px; border: 1.5px dashed #b45309; background: #fffbeb; color: #92400e; padding: 10px 12px; font-size: 12.5px; }
.pmb-admin__row { display: flex; gap: 8px; margin-top: 8px; flex-wrap: wrap; }
.pmb-admin input { flex: 1; min-width: 160px; padding: 8px 10px; border: 1px solid #fcd34d; font: inherit; }
.pmb-admin p { margin: 8px 0 0; font-weight: 700; }
@media (max-width: 420px) { .pmx-ltile svg { height: 80px; } }
.pmx-msg.pmx-msg--info { background: var(--c3dp-brand-tint, #eff6ff); color: var(--c3dp-brand-dark, #1a6aad); }

/* ── UX v3 U4 ─────────────────────────────────────────────────────────────── */
/* "In your drawer" as a card */
.pmx-lines { margin-top: 16px; border: 1.5px solid var(--c3dp-line, #e2e8f0); background: var(--c3dp-surface, #fff); }
.pmx-lines .pm-lines__h { display: flex; align-items: center; justify-content: space-between; margin: 0; padding: 10px 12px; font-size: 11px; color: var(--c3dp-ink, #0f172a); border-bottom: 1.5px solid var(--c3dp-line, #e2e8f0); }
.pmx-lines__n { min-width: 24px; height: 24px; padding: 0 7px; display: inline-flex; align-items: center; justify-content: center; border-radius: 12px; background: var(--c3dp-brand, #2487ce); color: #fff; font-size: 12px; letter-spacing: 0; }
.pmx-lines ul { gap: 0; }
.pmx-lines li.pmx-line { display: grid; grid-template-columns: 40px 1fr auto auto; align-items: center; gap: 10px; padding: 8px 6px 8px 10px; background: none; border-bottom: 1px solid var(--c3dp-line, #e2e8f0); cursor: pointer; }
.pmx-lines li.pmx-line:last-child { border-bottom: 0; }
.pmx-lines li.pmx-line:hover { background: var(--c3dp-surface-3, #f8fafc); }
.pmx-line__ic svg { width: 40px; height: 40px; display: block; }
.pmx-line__t { display: flex; flex-direction: column; min-width: 0; }
.pmx-line__t b { font-size: 14px; font-weight: 900; }
.pmx-line__t small { font-size: 12px; color: var(--c3dp-muted, #64748b); line-height: 1.3; }
.pmx-line__q { font-size: 15px; font-weight: 900; color: var(--c3dp-ink, #0f172a); }
/* Bin details: copy to other bins */
.pmd-copy { margin-top: 16px; padding-top: 14px; border-top: 1.5px solid var(--c3dp-line, #e2e8f0); }
.pmd-copy .pm-optl { display: block; margin-bottom: 8px; }
.pmd-pickhint { margin: 0 0 10px; font-size: 13px; color: var(--c3dp-ink, #0f172a); background: #f0fdf4; border-left: 3px solid #16a34a; padding: 8px 10px; }
.pmd-pickrow { display: flex; gap: 8px; flex-wrap: wrap; }
/* product page card: measurements tick (the "Add 1 more?" state keeps the normal Add colours — only the words change,
   so it stays readable under any theme's ambient tint) */
.pmc-tick { margin: 10px 0 8px; }
/* ── UX v3 U5: room buttons over the 3D view ─────────────────────────────── */
.pm-rooms { position: absolute; left: 12px; top: 52px; z-index: 3; display: flex; flex-direction: column; gap: 4px; }
.pm-rooms button { display: flex; align-items: center; gap: 7px; padding: 6px 10px 6px 7px; background: rgba(255,255,255,.94); border: 1px solid var(--c3dp-line, #e2e8f0); box-shadow: 0 2px 8px rgba(15,23,42,.06); color: var(--c3dp-ink, #0f172a); font: inherit; font-size: 12px; font-weight: 700; cursor: pointer; text-align: left; }
.pm-rooms button svg { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.pm-rooms button:hover { border-color: var(--c3dp-brand, #2487ce); color: var(--c3dp-brand, #2487ce); }
.pm-rooms button.on { background: var(--c3dp-brand, #2487ce); border-color: var(--c3dp-brand, #2487ce); color: #fff; }
.pm-rooms[hidden] { display: none; }
.pmx-editing .pm-rooms { display: none; }   /* arranging (top-down) — the room doesn't matter, keep the drawer clear */
@media (max-width: 900px) {
  .pm-rooms { top: 40px; left: 8px; flex-direction: row; }   /* under the chip; Angle / Top / Front use the bottom */
  .pm-rooms button { padding: 6px; }
  .pm-rooms button svg { width: 16px; height: 16px; }
  .pm-rooms button span { display: none; }
}

/* ── price display holder (price-holder v1, 2026-11-01) — editor-only bits; shares the pm-* building blocks ── */
.phx-fonts { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 6px; }
/* H6.1: a font tile = the font's own name written in that font; the customer's name shows once (.phx-namepre) */
.phx-font { padding: 8px 10px; background: var(--c3dp-surface, #fff); border: 1.5px solid var(--c3dp-line, #e2e8f0); border-radius: 8px;
  cursor: pointer; text-align: left; min-width: 0; font-size: 15px; line-height: 1.2; color: var(--c3dp-ink, #0f172a); overflow-wrap: anywhere; }
.phx-font:hover { border-color: var(--c3dp-muted-2, #94a3b8); }
.phx-font.on { border-color: var(--c3dp-brand, #2487ce); background: var(--c3dp-brand-tint, #eff6ff); box-shadow: 0 0 0 2px var(--c3dp-brand-tint, #eff6ff); }
.phx-namepre { margin: 4px 0 14px; padding: 12px 14px; border: 1.5px dashed var(--c3dp-line, #e2e8f0); border-radius: 8px; font-size: 26px; line-height: 1.2;
  color: var(--c3dp-ink, #0f172a); text-align: center; overflow-wrap: anywhere; }
.phx-included { background: var(--c3dp-brand-tint, #eff6ff); color: #1e3a8a; padding: 10px 12px; font-size: 13px; line-height: 1.5; border-radius: 6px; }
.phx-packs { display: flex; flex-direction: column; gap: 6px; }
.phx-pack { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 10px; border: 1.5px solid var(--c3dp-line, #e2e8f0);
  border-radius: 8px; background: var(--c3dp-surface, #fff); margin-bottom: 6px; }
.phx-packs .phx-pack { margin-bottom: 0; }
.phx-pack.on { border-color: var(--c3dp-brand, #2487ce); background: var(--c3dp-brand-tint, #eff6ff); }
.phx-pack__t { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.phx-pack__t b { font-size: 14px; color: var(--c3dp-ink, #0f172a); }
.phx-pack__t small { font-size: 12px; color: var(--c3dp-muted, #64748b); overflow-wrap: anywhere; }
.phx-singles-toggle { margin-top: 12px; }
.phx-tile__minus { display: none; position: absolute; left: -6px; top: -6px; width: 18px; height: 18px; border-radius: 50%; background: var(--c3dp-ink, #0f172a);
  color: #fff; font: 700 13px/18px inherit; font-family: inherit; text-align: center; }
.phx-tile.on .phx-tile__minus { display: block; }
.phx-row { text-transform: none; letter-spacing: .04em; }
.phx-h { margin: 16px 0 8px; font-size: 13px; color: var(--c3dp-ink, #0f172a); }
.phx-stepper { display: inline-flex; align-items: center; gap: 10px; }
.phx-stepper b { min-width: 22px; text-align: center; }
.phx-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(40px, 1fr)); gap: 6px; }
.phx-tile { position: relative; height: 46px; border: 1.5px solid var(--c3dp-line, #e2e8f0); border-radius: 6px; background: var(--c3dp-surface, #fff);
  cursor: pointer; font: 700 16px/1 inherit; font-family: inherit; color: var(--c3dp-ink, #0f172a); }
.phx-tile.on { border-color: var(--c3dp-brand, #2487ce); background: var(--c3dp-brand-tint, #eff6ff); }
.phx-tile i { position: absolute; top: 2px; right: 4px; font: 700 10px/1 inherit; font-style: normal; color: var(--c3dp-brand, #2487ce); }
.phx-radios { display: flex; flex-direction: column; gap: 6px; }
.phx-radio { display: flex; align-items: flex-start; gap: 8px; cursor: pointer; font-size: 14px; }
.phx-radio input { margin-top: 3px; }
/* H6.1: the NFC / magnet choices sit inside .pm-f, whose label rule (small caps, block) was swallowing them */
.pm-f .phx-radio { display: flex; font-size: 14px; font-weight: 400; letter-spacing: normal; text-transform: none; color: var(--c3dp-ink, #0f172a); margin-bottom: 0; }
.pm-f .phx-radio input { width: auto; flex: 0 0 auto; padding: 0; margin: 3px 0 0; }
.pm-f .phx-radio span { text-align: left; }
.phx-hint { display: block; margin-top: 4px; font-size: 12px; color: var(--c3dp-muted, #64748b); }
.phx-front { width: 100%; height: 100%; max-height: 100%; display: block; }
@media (max-width: 600px) { .phx-fonts { grid-template-columns: repeat(2, minmax(0, 1fr)); } .phx-namepre { font-size: 22px; } .phx-tiles { grid-template-columns: repeat(auto-fill, minmax(36px, 1fr)); } }

/* ── price holder H7 (2026-11-01): opening card, review picture, "what am I building?" link ── */
.phx-intro { position: fixed; inset: 0; z-index: 9000; display: flex; align-items: center; justify-content: center; padding: 16px;
  background: rgba(15, 23, 42, .55); }
.phx-intro[hidden] { display: none; }
.phx-intro__card { width: 100%; max-width: 440px; max-height: calc(100vh - 32px); overflow: auto; background: var(--c3dp-surface, #fff);
  border-radius: 12px; padding: 22px 22px 18px; box-shadow: 0 20px 50px rgba(0, 0, 0, .25); color: var(--c3dp-ink, #0f172a); }
.phx-intro__card h2 { margin: 12px 0 8px; font-size: 22px; line-height: 1.2; }
.phx-intro__card p { margin: 0 0 10px; font-size: 15px; line-height: 1.5; color: var(--c3dp-text, #475569); }
.phx-intro__card ul { margin: 0 0 16px; padding-left: 20px; font-size: 14px; line-height: 1.6; }
.phx-intro__pic { background: var(--c3dp-brand-tint, #eff6ff); border-radius: 8px; padding: 14px 18px 10px; }
.phx-intro__pic svg { display: block; width: 100%; height: auto; max-height: 150px; overflow: visible; }
.phx-intro__slide { animation: phx-slide 3.2s ease-in-out infinite; }
/* H7.1: tiles go in from the right-hand end of the row (as you look at it), not from the top */
@keyframes phx-slide { 0%, 18% { transform: translateX(46px); opacity: 0; } 35% { opacity: 1; } 55%, 100% { transform: translateX(0); opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .phx-intro__slide { animation: none; } }
.phx-whatlink { display: inline-block; margin: -4px 0 10px; }
.phx-revpic { margin: 0 0 12px; padding: 10px; background: var(--c3dp-bg, #f8f9fa); border-radius: 8px; }
.phx-revpic svg { display: block; width: 100%; height: auto; max-height: 220px; }

/* ============================================================
   H7.1 (2026-11-02) — Clear design, Extras picture cards, long lists (search + pages), and the C3DP brand pass on
   the whole builder (Paul: "more C3DP colours" — applies to every made-to-measure builder, Gridfinity included).
   Brand system = the live site (H7.2): nav-bar top bar, product-page-header step heading, page background, sharp
   1.5px lines, 900-weight uppercase headings, lime for go/done only.
   ============================================================ */
/* H7.2 (Paul 2026-11-02, "check the actual aesthetics of our website"): the top bar IS the site's nav bar
   (--c3dp-nav-bg, follows the themes; steps styled like .nav-links, current step = white + 2px lime underline as the
   active nav link) and the step heading IS the product page header (.pph-label "//" + .pph-title + 2px brand rule).
   The live view sits on the page background (#f8f9fa) — no grid. Lime only for go/done. */
.pm--builder .pmb-top { background: var(--c3dp-nav-bg, #2487ce); border-bottom: 0; min-height: 60px; gap: 0; color: #fff; }
.pm--builder .pmb-exit, .pmb-clear { border: 1.5px solid rgba(255,255,255,.35); color: #fff; background: transparent; }
.pm--builder .pmb-exit:hover, .pmb-clear:hover { border-color: #fff; color: #fff; }
.pm--builder .pmb-name { color: #fff; font-weight: 700; letter-spacing: .04em; padding: 0 16px; }
.pm--builder .pmb-steps { align-self: stretch; gap: 0; }
.pm--builder .pmb-steps button { height: 60px; padding: 0 16px; color: rgba(255,255,255,.65); font-weight: 600; font-size: 12px; letter-spacing: .08em;
  border-right: 1px solid rgba(255,255,255,.15); border-bottom: 2px solid transparent; transition: color .15s; }
.pm--builder .pmb-steps button:first-of-type { border-left: 1px solid rgba(255,255,255,.15); }
.pm--builder .pmb-steps button i { border-color: rgba(255,255,255,.35); background: transparent; color: inherit; }
.pm--builder .pmb-steps button.on { color: #fff; border-bottom-color: var(--c3dp-accent, #a3e635); }
.pm--builder .pmb-steps button.on i { border-color: #fff; background: transparent; color: #fff; }
.pm--builder .pmb-steps button.ok { color: rgba(255,255,255,.85); }
.pm--builder .pmb-steps button.ok i { background: var(--c3dp-accent, #a3e635); border-color: var(--c3dp-accent, #a3e635); color: var(--c3dp-ink, #0f172a); }
.pm--builder .pmb-steps button:hover:not([disabled]) { color: #fff; }
.pm--builder .pmb-sep { display: none; }
.pm--builder .pmb-price { padding-left: 16px; }
.pm--builder .pmb-price small { color: rgba(255,255,255,.65); }
.pm--builder .pmb-price b { color: #fff; }
.pmb-clear { flex: 0 0 auto; display: inline-flex; align-items: center; gap: 6px; padding: 8px 12px; margin-left: 12px; font: inherit; font-weight: 900; font-size: 11px; letter-spacing: .12em; text-transform: uppercase; cursor: pointer; }
.pmb-clear svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.pmb-clear[hidden] { display: none; }
.pm--builder .pm-stage { background: var(--c3dp-bg, #f8f9fa); }
.pm--builder .pm-vtabs button.on { background: var(--c3dp-brand-tint, #eff6ff); border-color: var(--c3dp-brand, #2487ce); color: var(--c3dp-brand, #2487ce); }
/* the step heading = the product page header */
.pm--builder .pmb-stepno { display: flex; align-items: center; gap: 8px; color: var(--c3dp-muted-2, #94a3b8); font-size: 10px; font-weight: 700; letter-spacing: .15em; }
.pm--builder .pmb-stepno::before { content: '//'; color: var(--c3dp-brand, #2487ce); font-weight: 900; }
.pm--builder .pmb-steptitle { font-size: 22px; letter-spacing: -.02em; line-height: 1; padding: 0 20px 14px; margin: 0 -20px 16px; border-bottom: 2px solid var(--c3dp-brand, #2487ce); }
.pm--builder .pmb-intro { border-left: 3px solid var(--c3dp-brand, #2487ce); padding-left: 12px; }
.pm--builder .pm-result { border-left: 3px solid var(--c3dp-brand, #2487ce); }
.pm--builder .pm-optl, .pm--builder .pm-f label { color: var(--c3dp-ink-3, #334155); }
/* footer: Next is the site's lime "go" button */
.pm--builder .pmb-foot { border-top: 1.5px solid var(--c3dp-line, #e2e8f0); }
.pm--builder [data-pm-next].pm-btn--blue:not(.pmb-why) { background: var(--c3dp-accent, #a3e635); color: var(--c3dp-ink, #0f172a); }
.pm--builder [data-pm-next].pm-btn--blue:not(.pmb-why):hover:not([disabled]) { background: var(--c3dp-accent-hover, #bef264); }
.pm--builder .pmb-review { border-top: 2px solid var(--c3dp-brand, #2487ce); }
.pm-btn--danger { background: var(--c3dp-danger, #dc2626); color: #fff; }
.pm-btn--danger:hover { background: var(--c3dp-danger-dark, #b91c1c); }
/* Clear design confirm */
.pmb-clearbox { max-width: 420px; border-top: 4px solid var(--c3dp-danger, #dc2626); }
.pmb-clearbox h3 { text-transform: uppercase; letter-spacing: .02em; }
.pmb-clearbox p { font-size: 14px; line-height: 1.5; color: var(--c3dp-text, #475569); margin: 0 0 16px; }
.pmb-clearbox__row { display: flex; gap: 10px; justify-content: flex-end; flex-wrap: wrap; }
.pmb-clearbox__row .pm-btn { padding: 11px 16px; }
@media (max-width: 900px) {
  .pm--builder .pmb-top { min-height: 0; }
  .pm--builder .pmb-name { padding: 0; }
  .pm--builder .pmb-steps button { height: 40px; padding: 0 4px; border-left: 0 !important; border-right: 0; }
  .pm--builder .pmb-price { padding-left: 0; }
  .pmb-clear { order: 2; padding: 6px 8px; margin-left: 0; }
  .pmb-clear span { display: none; }
  .pm--builder .pmb-steps button.on span { display: inline; }
}

/* price holder: sharp corners and brand states (was rounded cards) */
.phx-font, .phx-namepre, .phx-included, .phx-pack, .phx-tile, .phx-revpic, .phx-intro__pic { border-radius: 0; }
.phx-font.on, .phx-pack.on, .phx-tile.on { border-color: var(--c3dp-brand, #2487ce); box-shadow: inset 0 0 0 1.5px var(--c3dp-brand, #2487ce); background: var(--c3dp-brand-tint, #eff6ff); }
.phx-included { border-left: 3px solid var(--c3dp-brand, #2487ce); color: var(--c3dp-ink-2, #1e293b); }
.phx-h { font-size: 11px; font-weight: 900; letter-spacing: .14em; text-transform: uppercase; }
.phx-revpic { background: var(--c3dp-bg, #f8f9fa); border: 1.5px solid var(--c3dp-line, #e2e8f0); }
.phx-intro__card { border-radius: 0; border-top: 4px solid var(--c3dp-brand, #2487ce); }
.phx-intro__card h2 { font-weight: 900; text-transform: uppercase; letter-spacing: -.02em; }
.phx-intro__card ul { list-style: none; padding-left: 0; }
.phx-intro__card li { position: relative; padding-left: 22px; }
.phx-intro__card li::before { content: ''; position: absolute; left: 0; top: .55em; width: 10px; height: 10px; background: var(--c3dp-accent, #a3e635); }
.phx-intro__pic { background: var(--c3dp-nav-bg, #2487ce); overflow: hidden; }

/* Extras: picture cards */
.phx-opts { display: grid; gap: 8px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.phx-opts--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.phx-opts--1 { grid-template-columns: minmax(0, 1fr); }
.pm-f .phx-opt, .phx-opt { position: relative; display: flex; flex-direction: column; align-items: stretch; gap: 0; margin: 0; padding: 0; cursor: pointer; background: var(--c3dp-surface, #fff);
  border: 1.5px solid var(--c3dp-line, #e2e8f0); font-size: 13px; font-weight: 700; letter-spacing: normal; text-transform: none; color: var(--c3dp-ink, #0f172a); transition: border-color .12s; }
.phx-opt input { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.phx-opt:hover { border-color: var(--c3dp-brand-soft, #93c5fd); }
.phx-opt:focus-within { outline: 2px solid var(--c3dp-brand, #2487ce); outline-offset: 2px; }
.phx-opt.on { border-color: var(--c3dp-brand, #2487ce); box-shadow: inset 0 0 0 1.5px var(--c3dp-brand, #2487ce); }
.phx-opt__pic { display: block; background: var(--c3dp-surface-3, #f8fafc); border-bottom: 1.5px solid var(--c3dp-line, #e2e8f0); padding: 8px; }
.phx-opt.on .phx-opt__pic { background: var(--c3dp-brand-tint, #eff6ff); }
.phx-opt__pic svg { display: block; width: 100%; height: 52px; }
.phx-opts--1 .phx-opt { flex-direction: row; align-items: center; }
.phx-opts--1 .phx-opt__pic { flex: 0 0 96px; border-bottom: 0; border-right: 1.5px solid var(--c3dp-line, #e2e8f0); }
.phx-opts--1 .phx-opt__pic svg { height: 44px; }
.phx-opt__t { display: block; padding: 8px 10px 9px; line-height: 1.3; text-align: left; overflow-wrap: anywhere; }
.phx-opt__ok { position: absolute; top: 6px; right: 6px; width: 20px; height: 20px; border-radius: 50%; border: 1.5px solid var(--c3dp-line-2, #cbd5e1); background: #fff; }
.phx-opt.on .phx-opt__ok { background: var(--c3dp-accent, #a3e635); border-color: var(--c3dp-accent, #a3e635); }
.phx-opt.on .phx-opt__ok::after { content: ''; position: absolute; left: 6px; top: 2px; width: 5px; height: 10px; border: solid var(--c3dp-ink, #0f172a); border-width: 0 2.2px 2.2px 0; transform: rotate(45deg); }
.phx-opts--1 .phx-opt__ok { border-radius: 0; }
@media (max-width: 420px) { .phx-opts { grid-template-columns: repeat(2, minmax(0, 1fr)); } .phx-opts--1 { grid-template-columns: 1fr; } }

/* long lists (H7.1 general rule: more than ~5 rows = search + pages, so nobody scrolls) */
.pm-list__bar { display: flex; align-items: center; gap: 8px; margin: 0 0 8px; }
.pm-list__q { flex: 1; min-width: 0; border: 1.5px solid var(--c3dp-line, #e2e8f0); background: var(--c3dp-surface, #fff) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2.4' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='M20 20l-4-4'/%3E%3C/svg%3E") no-repeat 10px 50% / 16px;
  padding: 9px 10px 9px 34px; font: inherit; font-size: 14px; color: var(--c3dp-ink, #0f172a); outline: none; border-radius: 0; }
.pm-list__q:focus { border-color: var(--c3dp-brand, #2487ce); }
.pm-list__pg { display: inline-flex; align-items: center; gap: 4px; flex: 0 0 auto; font-size: 12px; font-weight: 800; color: var(--c3dp-ink-3, #334155); }
.pm-list__pg button { width: 32px; height: 34px; border: 1.5px solid var(--c3dp-line, #e2e8f0); background: var(--c3dp-surface, #fff); font: 900 15px/1 inherit; font-family: inherit; cursor: pointer; color: var(--c3dp-ink, #0f172a); }
.pm-list__pg button:hover:not([disabled]) { border-color: var(--c3dp-brand, #2487ce); color: var(--c3dp-brand, #2487ce); }
.pm-list__pg button[disabled] { opacity: .3; cursor: default; }
.pm-list__pg span { min-width: 42px; text-align: center; }
.pm-list__none { font-size: 13px; color: var(--c3dp-muted, #64748b); padding: 10px 0; }
.pm-list__off { display: none !important; }
/* H7.1: the top bar has one more button — below 1600px only the current step keeps its label */
.pm--builder .pmb-name { max-width: 220px; flex: 0 1 auto; min-width: 0; }
.pm--builder .pmb-steps { overflow: hidden; }
@media (max-width: 1600px) and (min-width: 901px) {
  .pm--builder .pmb-steps button:not(.on) span { display: none; }
  .pm--builder .pmb-steps button.on span { display: inline; }
}
@media (max-width: 1200px) and (min-width: 901px) { .pm--builder .pmb-name { display: none; } }

/* ── price holder H8 (2026-11-05): the step layout from Paul's mockups (right panel only; the 3D stays). Shell bits
   (.pmb-*) apply to every builder; .phx-* are the price holder's own. Square cards as in the mockups; inputs and
   buttons keep the theme's radius tokens. ── */
/* overline "STEP N OF 6 · NAME" + the segment bar */
.pmb-stepno { color: var(--c3dp-brand, #2487ce); font-size: 11px; letter-spacing: .12em; margin-bottom: 0; }
.pmb-progress { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 5px; margin: 10px 0 22px; }
.pmb-progress:empty { display: none; }
.pmb-progress i { display: block; height: 5px; background: var(--c3dp-surface-2, #e7edf5); }
.pmb-progress i.done { background: var(--c3dp-brand, #2487ce); }
.pmb-steptitle { font-size: clamp(24px, 2.4vw, 30px); letter-spacing: -.03em; text-transform: none; margin: 0 0 8px; }
.pm--builder .pmb-stepintro { margin: 0 0 22px; font-size: 14px; line-height: 1.55; border-left: 0; padding-left: 0; color: #536681; }
/* numbered sub-sections (the mockup's "1. …", "2. …") */
.pm--builder .pm-step__body { counter-reset: pmsec; }
.pm--builder .pmb-sec { counter-increment: pmsec; display: block; font-size: 14px; font-weight: 800; letter-spacing: 0; text-transform: none; color: var(--c3dp-ink, #0f172a); margin: 0 0 10px; min-width: 0; }
.pm--builder .pmb-sec::before { content: counter(pmsec) ". "; }
.pm--builder .pm-f { margin-bottom: 18px; }
.pm--builder .pm-f .phx-hint { margin-top: 8px; font-size: 12px; }
/* fold-out */
.pm-explain { border: 1.5px solid var(--c3dp-line, #e2e8f0); margin: 0 0 20px; background: var(--c3dp-surface, #fff); }
.pm-explain summary { list-style: none; cursor: pointer; padding: 12px 15px; font-size: 13px; font-weight: 750; color: var(--c3dp-brand, #2487ce); display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.pm-explain summary::-webkit-details-marker { display: none; }
.pm-explain summary::after { content: '+'; font-size: 20px; line-height: 12px; }
.pm-explain[open] summary::after { content: '\2212'; }
.pm-explain__b { padding: 0 15px 14px; font-size: 13px; line-height: 1.55; color: var(--c3dp-text, #475569); }
.pm-explain__b p { margin: 0 0 8px; }
.pm-explain__b ul { margin: 0; padding-left: 18px; }
/* callouts and cards */
.phx-callout { border-left: 3px solid var(--c3dp-brand, #2487ce); background: var(--c3dp-brand-tint, #eff6ff); padding: 12px 14px; color: #1e3a8a; font-size: 13px; line-height: 1.55; margin: 0 0 20px; }
.phx-card { border: 1.5px solid var(--c3dp-line, #e2e8f0); background: var(--c3dp-surface, #fff); padding: 16px 15px; margin: 0 0 14px; }
.phx-card__h { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.phx-card__h .pmb-sec { margin-bottom: 6px; }
.phx-card__v { color: var(--c3dp-brand, #2487ce); font-size: 13px; font-weight: 850; white-space: nowrap; }
.phx-card .phx-hint { margin: 0 0 16px; font-size: 12px; line-height: 1.5; }
.phx-card input[type=range] { width: 100%; accent-color: var(--c3dp-brand, #2487ce); cursor: pointer; min-height: 24px; margin: 0; }
.phx-range__l { display: flex; justify-content: space-between; color: var(--c3dp-muted-2, #94a3b8); font-size: 11px; margin-top: 6px; }
.phx-card--singles { padding: 12px; margin-top: 8px; background: var(--c3dp-surface-3, #f8fafc); }
/* step 1: preview card + font cards (2 columns, name in each font, tick on the chosen one) */
.phx-pre { background: var(--c3dp-brand-tint, #f0f5ff); padding: 14px 15px; margin: 0 0 22px; }
.phx-pre__t { font-size: 10px; text-transform: uppercase; font-weight: 850; letter-spacing: .12em; color: #536b91; margin-bottom: 10px; }
.phx-pre .phx-namepre { margin: 0; border: 1.5px dashed #bdcce3; border-radius: 0; background: var(--c3dp-surface, #fff); min-height: 72px; display: flex; align-items: center; justify-content: center; padding: 10px 12px; font-size: 25px; line-height: 1.15; }
.phx-pre__n { color: #6d809c; font-size: 11px; margin: 9px 0 0; }
.phx-fonts { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
.phx-font { border-radius: 0; padding: 10px; min-height: 76px; display: flex; flex-direction: column; justify-content: space-between; gap: 8px; }
.phx-font.on { box-shadow: inset 0 0 0 .5px var(--c3dp-brand, #2487ce); }
.phx-font__n { display: flex; justify-content: space-between; align-items: flex-start; gap: 4px; font-size: 10px; font-weight: 700; color: #536681; font-family: inherit; }
.phx-font__ok { display: none; font-style: normal; color: var(--c3dp-brand, #2487ce); font-size: 13px; font-weight: 900; }
.phx-font.on .phx-font__ok { display: inline; }
.phx-font__s { display: block; font-size: 16px; line-height: 1.2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: #09162d; }
.pm--builder .phx-fonts + .pm-list__none { grid-column: 1 / -1; }
/* step 2: rows line, counters */
.phx-rowsline { gap: 12px; margin-bottom: 14px; }
.phx-rowsline .pmb-sec { margin: 0; }
.pm--builder .pm-seg button { padding: 11px 16px; min-width: 45px; }
.pm--builder [data-lines] .pm-f { margin-bottom: 12px; }
.pm--builder [data-lines] label { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; font-size: 12px; letter-spacing: 0; text-transform: none; font-weight: 800; color: var(--c3dp-ink, #0f172a); margin-bottom: 7px; }
.phx-cnt { font-weight: 500; color: var(--c3dp-muted, #64748b); }
/* step 3: packs and steppers, extras summary */
.phx-pack { border-radius: 0; padding: 13px 11px 13px 14px; }
.phx-included { border-radius: 0; margin-bottom: 16px; }
.phx-h { margin: 0 0 12px; }
.phx-h.pmb-sec { margin-top: 4px; }
.phx-included + .phx-h { margin-top: 0; }
.phx-stepper { gap: 8px; }
.phx-stepper .pm-btn--ghost { width: 36px; height: 36px; padding: 0; border-radius: 0; font-size: 18px; line-height: 1; display: inline-flex; align-items: center; justify-content: center; }
.phx-stepper b { min-width: 20px; font-size: 14px; font-variant-numeric: tabular-nums; }
.phx-singles-toggle { margin: 0 0 14px; font-size: 13px; font-weight: 750; text-underline-offset: 3px; }
.phx-tile { border-radius: 0; }
.phx-total { border-left: 3px solid var(--c3dp-brand, #2487ce); padding: 14px 15px; }
.phx-total b { display: block; font-size: 15px; }
.phx-total span { display: block; font-size: 12px; color: #526e94; line-height: 1.6; margin-top: 4px; }
.pm--builder .phx-total + .pm-explain { margin-top: 18px; }
/* step 4: six square swatches per row */
.phx-swatches { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 6px; }
.phx-swatches .pm-sw { font-size: 10px; gap: 7px; text-align: center; padding: 3px 0; color: #3b4c68; min-width: 0; }
.phx-swatches .pm-sw i { width: 39px; height: 39px; border-radius: 0; border: 1px solid rgba(0, 0, 0, .12); box-shadow: none; }
.phx-swatches .pm-sw.on i { outline: 2px solid var(--c3dp-brand, #2487ce); outline-offset: 3px; box-shadow: none; }
.phx-swatches .pm-sw[disabled] { opacity: .35; cursor: not-allowed; }
/* step 5: the tick box top-right of each card, square */
.phx-opt__ok { border-radius: 0; top: 8px; right: 9px; }
/* review: label / value rows */
.pmb-lines { gap: 0; }
.pmb-lines li { padding: 10px 0; border-top: 1px solid #e9eef6; line-height: 1.45; }
.pmb-lines__kv { display: flex; justify-content: space-between; align-items: flex-start; gap: 15px; }
.pmb-lines__kv span { color: #6d8098; min-width: 110px; flex: 0 0 auto; }
.pmb-lines__kv strong { text-align: right; overflow-wrap: anywhere; font-weight: 700; color: var(--c3dp-ink, #0f172a); }
.pmb-review { border-top: 3px solid var(--c3dp-brand, #2487ce); padding: 14px 16px 4px; }
/* footer: price label above the amount */
.pmb-foot__price { display: flex; flex-direction: column; align-items: center; line-height: 1.1; }
.pmb-foot__price small { font-size: 10px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--c3dp-muted, #64748b); margin-bottom: 2px; }
.pmb-foot__price b { font-size: 19px; font-weight: 900; }
@media (max-width: 600px) { .phx-swatches { gap: 2px; } .phx-swatches .pm-sw { font-size: 9px; } .phx-swatches .pm-sw i { width: 34px; height: 34px; } .pm--builder .pm-seg button { padding: 10px 12px; min-width: 38px; } }
