/* GG single-page builder shell v2 (2026-11-13, Jack pt1691u). Used with assets/js/gg-builder-v2.js; nothing here
   applies until the script adds html.bv2-on. Desktop: rail | panel | preview, price + cart top-right, one screen.
   Phones (<= 860px): preview on top, panel as a bottom sheet, rail as tabs along the bottom. */
.bv2-on { --bv2-hdr: 64px; --bv2-ink: #111827; --bv2-mid: #5b6472; --bv2-line: #e3e6eb; --bv2-pale: #f5f6f8;
  --bv2-rail: #12151b; --bv2-rail-ink: #aab1bd; --bv2-acc: #1a1a1a; --bv2-acc-ink: #fff;
  --bv2-rail-on: #fff; --bv2-rail-on-bg: rgba(255,255,255,.14); --bv2-stage: #0c0d10; }
/* Brand accents (Jack 2026-11-14): no default orange. Buttons use the site primary; the dark rail uses a light/brand mark so the active tab stays readable. */
body.sd { --bv2-acc: #0d0d0c; --bv2-acc-ink: #fff; --bv2-rail-on: #fff; --bv2-rail-on-bg: rgba(255,255,255,.16); }
body.pmt { --bv2-acc: #6F69AD; --bv2-acc-ink: #fff; --bv2-rail-on: #c4bff0; --bv2-rail-on-bg: rgba(111,105,173,.32); }
.bv2-on body { overflow-x: hidden; }
.bv2-on .bv2-main.gp { max-width: none; padding: 0; margin: 0; }
.bv2-on .bv2-main > .gp-crumbs, .bv2-on .bv2-main > .gp-lede, .bv2-on .bv2-main > .pmt-lede, .bv2-on .bv2-gone { display: none !important; }
.pmt-compact .pmt-lede, .pmt-compact > main > .pmt-lede { display: none !important; }
.bv2-on .bv2-main > .gpp-hero, .bv2-on .bv2-main .gpp-hero { display: none; }

.bv2 { display: grid; grid-template-rows: auto minmax(0, 1fr); height: calc(100vh - var(--bv2-hdr)); height: calc(100dvh - var(--bv2-hdr));
  min-height: 520px; background: var(--bv2-pale); color: var(--bv2-ink); border-top: 1px solid var(--bv2-line); position: relative; }

/* top bar: title left, price + qty + buttons right */
.bv2-top { display: flex; align-items: center; gap: 1rem; padding: .45rem .9rem; background: #fff; border-bottom: 1px solid var(--bv2-line); min-height: 58px; position: relative; }
.bv2-title { display: flex; align-items: center; gap: .55rem; min-width: 0; flex: 1 1 auto; }
.bv2-back { display: inline-flex; width: 34px; height: 34px; align-items: center; justify-content: center; border-radius: 8px; color: var(--bv2-mid); flex: none; }
.bv2-back:hover { background: var(--bv2-pale); color: var(--bv2-ink); }
.bv2-back svg, .bv2-panel__close svg { width: 20px; height: 20px; }
.bv2-h1 { font-size: 1.08rem !important; margin: 0 !important; line-height: 1.2 !important; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bv2-buy { display: flex; align-items: center; gap: .7rem; flex: none; }
.bv2-buy .gp-price { display: flex; flex-direction: column; align-items: flex-end; margin: 0; padding: 0; background: none; border: 0; min-width: 7.5rem; text-align: right; }
.bv2-buy .gp-price__amt { font-size: 1.25rem; font-weight: 800; line-height: 1.1; }
.bv2-buy .gp-price__sub { font-size: .72rem; color: var(--bv2-mid); line-height: 1.3; max-width: 30rem; white-space: normal; overflow: visible; display: block; margin-top: .1rem; } /* job 06: show every line and let the bar grow (a 2-line clamp with overflow visible spilled the third line into the qty row) */
.bv2-buy .gp-price__sub:empty { display: none; }
.bv2-buy .bv2-qty { margin: 0; display: flex; }
.bv2-buy .bv2-qty .gp-f { display: flex; align-items: center; gap: .35rem; margin: 0; }
.bv2-buy .bv2-qty label { font-size: .75rem; color: var(--bv2-mid); margin: 0; white-space: nowrap; }
.bv2-buy .bv2-qty input { width: 4.2rem !important; min-height: 40px; padding: .3rem .45rem !important; }
.bv2-buy .gp-order__btns { display: flex; gap: .45rem; margin: 0; }
.bv2-buy .gp-order__btns .gp-btn { min-height: 42px; padding: .5rem 1.05rem; margin: 0; white-space: nowrap; }
.bv2-buy .gp-order__btns .gp-btn:not(.gp-btn--ghost),
.bv2-buy .pm-btn,
.bv2-buy .sd-btn--dark,
.bv2-buy .sd-btn--accent,
.bv2-buy button[type=submit]:not(.gp-btn--ghost):not(.sd-btn--ghost) {
  background: var(--bv2-acc); color: var(--bv2-acc-ink); border-color: var(--bv2-acc); font-weight: 800;
}
.bv2-why { position: absolute; right: .9rem; top: 100%; z-index: 30; margin: .35rem 0 0; max-width: 26rem; padding: .5rem .7rem; border-radius: 8px;
  background: #f5f6f8; border: 1px solid #e3e6eb; font-size: .82rem; box-shadow: 0 6px 18px rgba(0,0,0,.12); }

/* body: rail | panel | preview */
.bv2-body { display: grid; grid-template-columns: 92px minmax(300px, 360px) minmax(0, 1fr); min-height: 0; }
.bv2--collapsed .bv2-body { grid-template-columns: 92px 0 minmax(0, 1fr); }
.bv2--collapsed .bv2-panel { visibility: hidden; }
.bv2-rail { background: var(--bv2-rail); display: flex; flex-direction: column; gap: 2px; padding: .4rem .3rem; overflow-y: auto; scrollbar-width: none; }
.bv2-tab { display: flex; flex-direction: column; align-items: center; gap: .24rem; width: 100%; padding: .66rem .18rem .54rem; border: 0; border-radius: 10px;
  background: transparent; color: var(--bv2-rail-ink); font: inherit; font-size: .82rem; font-weight: 600; line-height: 1.1; cursor: pointer; text-align: center; }
.bv2-tab svg { width: 29px; height: 29px; }
.bv2-tab span { max-width: 100%; overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.bv2-tab:hover { background: rgba(255,255,255,.07); color: #fff; }
.bv2-tab.is-on { background: var(--bv2-rail-on-bg); color: var(--bv2-rail-on); box-shadow: inset 3px 0 0 var(--bv2-rail-on); }
.bv2-tab:focus-visible { outline: 2px solid var(--bv2-rail-on); outline-offset: -2px; }
.bv2-tab[hidden] { display: none; }

.bv2-panel { display: flex; flex-direction: column; min-height: 0; background: #fff; border-right: 1px solid var(--bv2-line); overflow: hidden; }
.bv2-panel__head { display: flex; align-items: center; gap: .5rem; padding: .55rem .6rem .55rem 1rem; border-bottom: 1px solid var(--bv2-line); min-height: 50px; }
.bv2-panel__title { flex: 1 1 auto; margin: 0 !important; font-size: 1rem !important; font-weight: 800; }
.bv2-panel__close { display: inline-flex; width: 34px; height: 34px; align-items: center; justify-content: center; border: 0; border-radius: 8px; background: transparent; color: var(--bv2-mid); cursor: pointer; }
.bv2-panel__close:hover { background: var(--bv2-pale); }
.bv2-units .gg-units { margin: 0; gap: .3rem; }
.bv2-units .gg-units__label, .bv2-units .gg-units__note { display: none; }
.bv2-units .gg-units__btn { min-height: 30px; min-width: 2.6rem; padding: .1rem .6rem; font-size: .8rem; }
.bv2-panel__status:empty { display: none; }
.bv2-panel__status { padding: .5rem .8rem 0; }
.bv2-panel__status .gp-alert { margin: 0 0 .5rem; font-size: .85rem; }
.bv2-panel__status .gp-fix { margin: 0 0 .5rem; }
.bv2-panel__body { flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: .8rem 1rem 1.2rem; }
.bv2-panel__body .gp-controls { display: block; }
.bv2-sec { display: none !important; }
.bv2-sec.bv2-sec--on:not([hidden]) { display: block !important; }
.bv2-panel__body fieldset.gp-group { border: 0; padding: 0; margin: 0; }
.bv2-panel__body fieldset.gp-group > legend { display: none; }
.bv2-panel__body .gp-field { margin-bottom: .85rem; }
.bv2-presets .gp-presets { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; margin: 0; overflow: visible; padding: 0; }
.bv2-presets .gp-preset { flex: none; padding: .45rem .5rem; }
.bv2-presets .gp-preset .gp-thumb { margin: -.15rem -.2rem .3rem; display: block; }
.bv2-presets .gp-preset .gp-thumb img { width: 100%; height: auto; }
.bv2-presets .gp-preset strong { font-size: .84rem; }
.bv2-presets .gp-preset span { font-size: .72rem; }
.bv2-order .gp-order { margin: 0; padding: 0; border: 0; background: none; }
.bv2-order .gp-order__how { font-size: .85rem; padding-left: 1.1rem; }
.bv2-request .gp-request, .bv2-ask .gp-request, .bv2-ask .sdc-request, .bv2-ask details { margin: 0; border: 0; padding: 0; background: none; }
.bv2-request .bv2-summary, .bv2-ask summary, .bv2-ask .bv2-summary { display: none !important; }
.bv2-ask { display: flex; flex-direction: column; gap: .7rem; }
.bv2-ask > h2, .bv2-ask .sdc-request > h2, .bv2-ask .gp-request > h2 { font-size: 1.05rem; margin: 0; }
.bv2-ask-lede { font-size: .88rem; color: var(--bv2-mid); margin: 0; line-height: 1.4; }
.bv2-ask textarea { min-height: 6.5rem; width: 100%; }
.bv2-ask-send,
.bv2-ask button[name="gp_action"][value="request"],
.bv2-ask button[name="sd_action"][value="submit"],
.bv2-ask .gp-submit, .bv2-ask .sdc-submit,
.bv2-ask button[type=submit]:not(.gp-btn--ghost):not(.sd-btn--ghost) {
  background: var(--bv2-acc); color: var(--bv2-acc-ink); border-color: var(--bv2-acc);
  font-weight: 800; min-height: 44px; padding: .6rem 1.15rem; margin-top: .35rem; width: auto; max-width: none;
}
.bv2-ask-send.is-sending, .bv2-ask button[type=submit].is-sending { opacity: .7; }
.bv2-ask-link { margin: 1rem 0 0; font-size: .9rem; color: var(--bv2-mid); }
.bv2-ask-link a { font-weight: 700; color: var(--bv2-ink); text-decoration: underline; text-underline-offset: 2px; }
body.pmt .bv2-ask-link a { color: var(--bv2-acc); }
.bv2-on .gp-alert--ok, .bv2-on .sd-alert--ok, .bv2-on .pm-alert--ok {
  background: #eef6ee; border: 1px solid #b7d4b7; color: #164016; padding: .7rem .85rem; border-radius: 10px;
}

/* preview */
.bv2-preview { display: flex; flex-direction: column; min-width: 0; min-height: 0; background: var(--bv2-stage); position: relative; }
.bv2-preview .gp-view { position: relative; top: 0; flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column; gap: 0; }
.bv2-preview .gp-stage { flex: 1 1 auto; aspect-ratio: auto !important; height: auto !important; min-height: 0 !important; max-height: none !important; border-radius: 0 !important; }
.bv2-preview .gp-notes { position: absolute; left: .8rem; top: 3.2rem; /* job 08: sit below Reset view / Auto-rotate */ z-index: 5; max-width: min(28rem, 60%); margin: 0; max-height: 40%; overflow: auto; }
.bv2-preview .gp-notes:empty { display: none; }
.bv2-preview .gp-fine { display: none; }
.bv2-preview .gp-large { position: absolute; left: .8rem; bottom: .8rem; z-index: 5; max-width: 26rem; margin: 0; }
.bv2-preview .gp-share { position: absolute; right: .8rem; top: .8rem; z-index: 6; margin: 0; }
.bv2-preview .gp-share { display: flex; flex-direction: column; align-items: flex-end; gap: .3rem; max-width: 18rem; }
.bv2-preview .gp-share .gg-share__btn { background: rgba(255,255,255,.92); }
.bv2-preview .gp-share .gg-share__help, .bv2-preview .gp-share .gg-share__url[hidden] { display: none !important; }
.bv2-preview .gp-share .gg-share__url { width: 18rem; font-size: .78rem; }
.bv2-preview .gp-share .gg-share__msg { color: #fff; font-size: .78rem; }
.bv2-preview .gg-share__opened { position: absolute; left: .8rem; bottom: 3.2rem; z-index: 5; margin: 0; max-width: 26rem; }
/* Chat with Gigio: sit above the size bar / tab bar, never cover the rail or the deposit line. */
.bv2-on .ggc { bottom: calc(88px + env(safe-area-inset-bottom, 0px)); z-index: 40; }
.bv2-on .ggc-fab-label, .bv2-on .ggc-greet { display: none !important; }
.bv2-on .bv2-rail { z-index: 960; }
.bv2-preview .gp-stage .gp-dims { display: none; }
/* job 06: one honest line on the challenge coin preview (the coins shown are not printed) */
.bv2-preview .gp-stage-note { position: absolute; right: .9rem; bottom: .7rem; z-index: 4; margin: 0; max-width: 60%; text-align: right; font-size: .78rem; line-height: 1.3; color: #c7ccd4; background: rgba(11,18,32,.72); padding: .25rem .5rem; border-radius: 6px; pointer-events: none; }
@media (max-width: 860px) { .bv2-preview .gp-stage-note { right: .5rem; bottom: .5rem; font-size: .7rem; max-width: 70%; } }
/* job 06 review: on the rail layout the price and order box live in the header and the Order tab, so the old price card
   under the preview kept only its "Your price" heading. Hide the heading when the card body is empty, and the card when
   nothing else is in it (S&D challenge coin, ring light). */
.bv2-on .gp-buy:not(:has(#gpBuyBody > *)) > .gp-buy__h { display: none; }
.bv2-on .gp-buy:not(:has(#gpBuyBody > *)):not(:has(> :not(.gp-buy__h):not(#gpBuyBody))) { display: none; }
.bv2-foot { flex: none; display: flex; align-items: center; gap: .6rem; padding: .45rem .9rem; background: #0f1115; color: #d7dbe2; font-size: .85rem; border-top: 1px solid #23262d; }
.bv2-foot .gp-dims { position: static; display: block !important; background: none; padding: 0; margin: 0; color: #fff; font-weight: 700; font-variant-numeric: tabular-nums; }
.bv2-foot .gp-dims span { color: #9aa3af; font-weight: 500; margin-left: .5rem; }
.bv2-foot__lbl { text-transform: uppercase; letter-spacing: .08em; font-size: .7rem; color: #8b93a0; }

/* mid widths: drop qty label, buttons stay */
@media (max-width: 1180px) {
  .bv2-buy .bv2-qty label { display: none; }
  .bv2-buy .gp-price__sub { max-width: 18rem; }
}

/* phones and small tablets: preview on top, bottom sheet, tab bar */
@media (max-width: 860px) {
  .bv2 { height: auto; min-height: 0; display: block; padding-bottom: calc(64px + env(safe-area-inset-bottom)); }
  .bv2-top { position: sticky; top: 0; z-index: 40; padding: .4rem .6rem; gap: .5rem; min-height: 52px; flex-wrap: nowrap; }
  .bv2-back, .bv2-title { display: none; }
  .bv2-on .ggc { display: none !important; }
  .bv2-h1 { font-size: .92rem !important; white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
  .bv2-buy { gap: .4rem; }
  .bv2-buy .gp-price { min-width: 0; }
  .bv2-buy .gp-price__amt { font-size: 1.05rem; }
  .bv2-buy .gp-price__sub, .bv2-buy .bv2-qty, .bv2-buy .gp-order__btns .gp-btn--ghost { display: none; }
  .bv2-buy .gp-order__btns .gp-btn { min-height: 40px; padding: .45rem .8rem; }
  .bv2-why { left: .6rem; right: .6rem; max-width: none; }
  .bv2-body { display: flex; flex-direction: column; }
  .bv2-preview { order: 1; height: 46vh; height: 46svh; min-height: 260px; position: sticky; top: 52px; z-index: 10; }
  .bv2-on .ggc { bottom: calc(96px + env(safe-area-inset-bottom, 0px)); right: 10px; z-index: 40; }
  .bv2-on .ggc-fab-pic, .bv2-on .ggc-fab-img { width: 48px; height: 48px; }
  .bv2-panel { order: 2; border-right: 0; border-radius: 16px 16px 0 0; margin-top: 0; position: relative; z-index: 11; box-shadow: 0 -6px 18px rgba(0,0,0,.18); overflow: visible; }
  .bv2-panel::before { content: ""; display: block; width: 40px; height: 4px; border-radius: 4px; background: #cfd4db; margin: 8px auto 0; }
  .bv2-panel__close { display: none; }
  .bv2-panel__body { overflow: visible; padding: .7rem .9rem 1.2rem; }
  .bv2--collapsed .bv2-panel { visibility: visible; }
  .bv2-rail { order: 3; position: fixed; left: 0; right: 0; bottom: 0; z-index: 960; flex-direction: row; flex-wrap: nowrap; justify-content: flex-start;
    overflow-x: auto; overflow-y: hidden; -webkit-overflow-scrolling: touch; scroll-padding-inline: 8px;
    padding: .25rem .25rem calc(.25rem + env(safe-area-inset-bottom, 0px)); gap: 0; height: auto; box-shadow: 0 -2px 10px rgba(0,0,0,.25); }
  .bv2-tab { flex: 0 0 auto; width: auto; min-width: 82px; padding: .48rem .66rem; font-size: .77rem; }
  .bv2-tab svg { width: 26px; height: 26px; }
  .bv2-tab.is-on { box-shadow: inset 0 3px 0 var(--bv2-rail-on); }
  .bv2-preview .gp-notes { max-width: calc(100% - 1.6rem); font-size: .8rem; top: 3.2rem; }
  .bv2-preview .gp-share { top: .5rem; right: .5rem; }
  .bv2-preview .gp-share .gg-share__btn { min-height: 36px; padding: .3rem .7rem; font-size: .85rem; }
  .bv2-preview .gp-toolbar .gp-tool { font-size: .8rem; }
  .bv2-foot { padding: .35rem .7rem; font-size: .78rem; }
  .bv2-presets .gp-presets { grid-template-columns: 1fr 1fr; }
  .bv2-presets .gp-preset { display: block; }
  .bv2-presets .gp-preset strong, .bv2-presets .gp-preset > span { display: block; } /* job 06 review: title and description ran together on phones */
  .bv2-presets .gp-preset strong { margin-bottom: .15rem; }
  .bv2-presets .gp-preset .gp-thumb img { width: 100%; }
}

/* product pages (/design/<category>/<product>): the builder takes the full width; "Goes with" / "You might also like"
   drop below it as a normal section */
.bv2-on .gpp-wrap { display: block !important; max-width: none !important; margin: 0 !important; padding: 0 !important; }
.bv2-on .gpp-wrap > .gpp-main { max-width: none !important; width: auto !important; }
.bv2-on .gpp-wrap > .gpp-rail { position: static !important; max-width: 1240px; margin: 1.5rem auto 0; padding: 0 1.1rem; width: auto !important; }
.bv2-on .gpp-wrap > .gpp-rail .gpp-rail__list { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: .7rem; }
/* picture-only items (no size readout): hide the empty size bar */
.bv2-foot:has(.gp-dims:empty) { display: none; }


/* ---- pet memorial compact chrome (no tall hero / holiday block above the builder) ---- */
.pmt-compact .site-footer, .bv2-on .site-footer { display: none; }
.pmt-slim { background: #1F2533; color: #fff; border-bottom: 1px solid #2b3140; }
.pmt-slim .pmt-holiday { background: #2B3140; }
.pmt-holiday--slim { background: #2B3140; color: #fff; }
.pmt-holiday--slim .pmt-holiday__in { max-width: none; padding: .45rem 1rem; display: flex; align-items: center; gap: .75rem; flex-wrap: wrap; }
.pmt-holiday--slim h2, .pmt-holiday--slim p, .pmt-holiday--slim .pmt-kicker { color: #fff; margin: 0; font-size: .92rem; }
.pmt-holiday--slim h2 { font-size: .95rem; font-weight: 700; }
.pmt-holiday--slim .pmt-holiday__links { margin: 0; }
.pmt-holiday--slim .pmt-btn { min-height: 36px; padding: .3rem .8rem; font-size: .82rem; }
.pmt-holiday--slim .pmt-holiday__fine { font-size: .8rem; }
.pmt-slim__bar { display: flex; align-items: center; gap: .8rem; padding: .35rem .8rem; flex-wrap: wrap; }
.pmt-slim__title { min-width: 0; }
.pmt-slim__title h1 { color: #fff !important; font-size: 1.05rem !important; margin: 0 !important; }
.pmt-slim__title .pmt-from { display: inline-block; margin-left: .5rem; font-size: .8rem; border: 1px solid #C3C8D1; border-radius: 999px; padding: .1rem .55rem; color: #fff; }
.pmt-slim__title a { color: #c9c4e8; font-size: .78rem; }
.pmt-compact .pmt-nav, .pmt-slim .pmt-nav { background: transparent; border: 0; flex: 1 1 auto; min-width: 0; }
.pmt-compact .pmt-nav ul, .pmt-slim .pmt-nav ul { max-width: none; padding: 0; justify-content: flex-start; scroll-padding-inline: 12px; }
.pmt-compact .pmt-nav a, .pmt-slim .pmt-nav a { color: #d7dbe2; min-height: 36px; }
.pmt-compact .pmt-nav a[aria-current="page"], .pmt-slim .pmt-nav a[aria-current="page"] { background: #fff; color: #1F2533; }
.pmt-compact .pmt-crumbs { display: none; }
body.pmt-compact { background: #F6F7FA; }
body.pmt-compact main.pmt-main, body.pmt-compact main.pm-main { max-width: none; padding: 0; margin: 0; }
body.pmt-compact .pmt-sec { max-width: 1100px; margin: 1.4rem auto; padding: 0 1.1rem 2rem; }

/* hide mm/in unless the current section needs it (js toggles .bv2-units--off) */
.bv2-units.bv2-units--off { display: none !important; }

/* pet bust preview stage */
.pm-preview { position: relative; flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column; background: #0c0d10; color: #d7dbe2; }
.pm-preview__stage { position: relative; flex: 1 1 auto; min-height: 320px; }
.pm-preview__stage canvas { display: block; width: 100%; height: 100%; }
.pm-preview__ph { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .6rem; padding: 1.2rem; text-align: center; pointer-events: none; }
.pm-preview__ph[hidden] { display: none !important; }
.pm-preview.is-ready .pm-preview__ph { display: none !important; }
.pm-preview__ph img, .pm-preview__ph picture { width: min(220px, 50%); height: auto; border-radius: 12px; opacity: .9; }
.pm-preview__ph p { margin: 0; max-width: 26rem; font-size: .92rem; line-height: 1.45; color: #d7dbe2; }
.pm-preview__bar { flex: none; display: flex; flex-wrap: wrap; align-items: center; gap: .6rem; padding: .55rem .8rem; background: #101218; border-top: 1px solid #23262d; }
.pm-preview__bar .pm-btn, .pm-preview__bar .gp-btn { min-height: 40px; }
.pm-preview__status { margin: 0; font-size: .85rem; color: #d7dbe2; flex: 1 1 14rem; }
.pm-preview__status--wait { color: #f5d48a; }
.pm-preview__status--ok { color: #b7e3c0; }
.pm-preview__status--err { color: #f3b4b4; }
.pm-preview__fine { font-size: .78rem; color: #9aa3af; margin: 0; flex: 1 1 100%; }
@media (max-width: 860px) {
  .pm-preview__stage { min-height: 260px; }
  .pmt-slim__bar { padding: .3rem .6rem; }
  .pmt-slim__title h1 { font-size: .95rem !important; }
}

@media (max-width: 860px) { .bv2-title { min-width: 0; overflow: hidden; } .bv2-h1 { max-width: 42vw; } }

@media (max-width: 860px) {
  /* leave room for the settings sheet under the preview when the memorial slim bar is present */
  .pmt-compact .bv2-preview { height: 34vh; height: 34svh; min-height: 200px; }
  .pmt-slim__bar { padding: .2rem .55rem; gap: .4rem; }
}

/* ---- S&D host builders (layout only; 2026-11-14) ---- */
.bv2-on body.sd .sd-wrap,
.bv2-on body.sd .sdc-wrap,
.bv2-on .bv2-main.sd-wrap,
.bv2-on .bv2-main.gp { max-width: none !important; width: 100%; padding: 0; margin: 0; }
.bv2-on form.sd-form,
.bv2-on #sdBuilderForm,
.bv2-on #gpForm,
.bv2-on #sdConfigurator,
.bv2-on .bv2 { max-width: none !important; width: 100%; }
.bv2-on .sd-crumbs,
.bv2-on .sdc-head,
.bv2-on .sd-page-head,
.bv2-on .sd-head-photo,
.bv2-on .bv2-main > .gp-lede,
.bv2-on .gp-step { display: none !important; }
.bv2-on .sd-builder-layout { display: block; max-width: none; margin: 0; padding: 0; gap: 0; }

/* Live 3D stage fills the preview pane */
.bv2-preview .sdc-stage {
  position: relative;
  flex: 1 1 auto;
  height: auto !important;
  min-height: 0 !important;
  max-height: none !important;
  width: 100%;
  border: 0;
  border-radius: 0;
  background: #0c0d10;
  overflow: hidden;
}
.bv2-preview { display: flex; flex-direction: column; min-height: 0; }
.bv2-preview .sdc-canvas { position: absolute; inset: 0; }
.bv2-preview .sdc-fallback { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; color: #d7dbe2; padding: 1.2rem; text-align: center; pointer-events: none; }
.bv2-preview .sdc-stage.is-live .sdc-fallback { display: none; }
.bv2-preview .sdc-toolbar { position: absolute; left: .6rem; bottom: .6rem; z-index: 2; display: flex; flex-wrap: wrap; gap: .35rem; }
.bv2-preview .sdc-busy { position: absolute; top: .6rem; right: .6rem; z-index: 2; }
.bv2-preview .sdc-dims {
  position: absolute; left: auto; right: .7rem; bottom: .6rem; z-index: 2;
  color: #e8eaee; background: rgba(12, 13, 16, .88); border: 1px solid rgba(255,255,255,.14);
  font-size: .88rem; font-weight: 700; text-align: right; padding: .4rem .7rem; border-radius: 10px;
  max-width: none; width: auto;
}
.bv2-preview .sdc-dims span { display: block; color: #c5cad3; font-size: .8rem; font-weight: 600; margin-top: .1rem; }

/* Instant quote in the top bar */
.bv2-buy #sdcQuoteBody { display: flex; flex-direction: column; align-items: flex-end; gap: .1rem; text-align: right; }
.bv2-buy .sdc-price { display: flex; align-items: baseline; gap: .3rem; color: inherit; }
.bv2-buy .sdc-price__unit { font-size: 1.25rem; font-weight: 800; line-height: 1.1; }
.bv2-buy .sdc-price__each { font-size: .72rem; color: var(--bv2-mid); }
.bv2-buy .sdc-price__total { margin: 0; font-size: .75rem; color: var(--bv2-mid); }
.bv2-buy .sdc-price__meta { display: none; }
.bv2-buy .sdc-quote__btns { display: flex; gap: .45rem; margin: 0; }
.bv2-buy .sdc-quote__btns .sd-btn,
.bv2-buy .gp-order__btns .sd-btn,
.bv2-buy .gp-order__btns .gp-btn { min-height: 42px; padding: .5rem 1.05rem; margin: 0; white-space: nowrap; font-weight: 800; }
.bv2-buy .sd-btn--accent { background: var(--bv2-acc); color: var(--bv2-acc-ink); border-color: var(--bv2-acc); }
.bv2-order .sdc-quote { margin: 0; padding: 0; border: 0; background: none; color: inherit; }
.bv2-order .sdc-quote__fine { color: var(--bv2-mid); }
.bv2-buy .bv2-qty .sd-field { display: flex; align-items: center; gap: .35rem; margin: 0; }
.bv2-buy .bv2-qty label { font-size: .75rem; color: var(--bv2-mid); margin: 0; white-space: nowrap; }
.bv2-buy .bv2-qty input { width: 4.2rem !important; min-height: 40px; }

/* Plain-form preview: art or product photo + a large "Your build" summary */
.bv2--sdform .bv2-preview {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, .9fr);
  grid-template-rows: minmax(0, 1fr);
  min-height: 0;
}
.sd-photo-stage { min-height: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; background: #0c0d10; padding: 1.2rem 1.4rem; gap: .8rem; }
.sd-preview-art { width: min(100%, 520px); height: min(100%, 420px); display: flex; align-items: center; justify-content: center; }
.sd-preview-art svg { width: 100%; height: 100%; max-height: min(52vh, 420px); overflow: visible; }
.sd-photo-stage__pic { margin: 0; max-width: min(100%, 560px); max-height: 100%; }
.sd-photo-stage__pic img { display: block; width: 100%; height: auto; max-height: min(56vh, 560px); object-fit: contain; border-radius: 12px; background: #161413; }
.sd-photo-stage__pic figcaption { color: #9aa3af; font-size: .8rem; margin-top: .45rem; text-align: center; }
.sd-photo-stage__ph { color: #d7dbe2; text-align: center; max-width: 26rem; padding: 1rem; }
.sd-photo-stage:has(.sd-preview-art svg) > .sd-photo-stage__ph { display: none; }
.bv2-preview .sd-summary {
  margin: 0; padding: 1.25rem 1.5rem 1.4rem; background: #101218; color: #d7dbe2; border-radius: 0;
  max-width: none; border-top: 0; border-left: 1px solid #23262d; overflow: auto; min-height: 0;
  position: static; top: auto;
}
.bv2-preview .sd-summary > strong {
  color: #fff; font-size: 1.15rem; letter-spacing: .04em; text-transform: uppercase;
  display: block; margin: 0 0 .85rem; font-weight: 800;
}
.bv2-preview .sd-summary dl {
  display: grid; grid-template-columns: 1fr; gap: .55rem 0; margin: 0 0 1rem; font-size: 1rem;
}
.bv2-preview .sd-summary dt { color: #9aa3af; font-size: .72rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.bv2-preview .sd-summary dd { margin: .1rem 0 0; font-weight: 700; font-size: 1.05rem; color: #fff; line-height: 1.3; }
.bv2-preview .sd-summary .sd-help,
.bv2-preview .sd-summary a { color: #c7cdd6; }
.bv2-panel__body .sd-form fieldset,
.bv2-panel__body fieldset { border: 0; padding: 0; margin: 0; }
.bv2-panel__body fieldset > legend { display: none; }
.bv2--sdform .bv2-presets .sd-choices { display: flex; flex-wrap: wrap; gap: .4rem; }

@media (max-width: 860px) {
  .bv2-preview .sdc-stage { min-height: 200px; }
  body.sd .bv2-preview { height: 34vh; height: 34svh; min-height: 200px; }
  .bv2--sdform .bv2-preview {
    display: flex; flex-direction: column;
    height: 42vh; height: 42svh; min-height: 240px;
  }
  .sd-photo-stage { flex: 1 1 auto; min-height: 0; padding: .6rem .7rem; }
  .sd-preview-art { width: 100%; height: 100%; }
  .sd-preview-art svg { max-height: 22vh; }
  .sd-photo-stage__pic img { max-height: 22vh; }
  .bv2-preview .sd-summary {
    flex: none; max-height: 46%; border-left: 0; border-top: 1px solid #23262d;
    padding: .65rem .8rem .75rem;
  }
  .bv2-preview .sd-summary > strong { font-size: .82rem; margin-bottom: .45rem; }
  .bv2-preview .sd-summary dl { grid-template-columns: 1fr 1fr; gap: .35rem .8rem; margin: 0; }
  .bv2-preview .sd-summary dt { font-size: .65rem; }
  .bv2-preview .sd-summary dd { font-size: .84rem; }
  .bv2-preview .sd-summary .sd-help { display: none; }
}

/* Keep the top bar compact: volume breaks stay in the Order tab; submit buttons don't stretch */
.bv2-buy .sdc-breaks,
.bv2-buy #sdcQuoteBody { display: none !important; }
.bv2-buy .sd-btn,
.bv2-buy .gp-btn,
.bv2-buy button[type=submit] { width: auto !important; max-width: none !important; }
.bv2-tab span { overflow: hidden; }
.sd-photo-stage__ph[hidden] { display: none !important; }

/* Retail builder sketches (job 04): near-black S&D stage, one honest line under the drawing, no 3D controls. */
.bv2--sdform .sd-photo-stage { background: #0d0d0c; }
.sd-preview-note { margin: 0; max-width: 32rem; text-align: center; color: #aab0ba; font-size: .8rem; line-height: 1.4; }
.sd-v2-note { margin: 0 0 .9rem; }
@media (max-width: 860px) {
  .bv2--sdform .sd-photo-stage { gap: .35rem; }
  .bv2--sdform .sd-preview-art { flex: 1 1 auto; min-height: 0; height: auto; }
  .sd-preview-note { flex: 0 0 auto; font-size: .72rem; line-height: 1.3; }
}

.bv2-buy { margin-left: auto; }

/* FreeCAD generators (cookie cutter, dough roller): no 3D model, so the preview is a flat drawing of the shape and size
   (assets/js/gg-gen-public.js drawDiagram) with one honest line under it. No Reset view / Auto-rotate here. */
.gp-stage--diagram { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .7rem; padding: 3.4rem 1rem 1rem; box-sizing: border-box; background: var(--bv2-stage, #0c0d10); min-height: 260px; }
.gp-stage--diagram .gp-diagram { flex: 1 1 0; min-height: 150px; width: min(100%, 600px); max-height: 100%; background: #f2f3f5; border-radius: 14px; overflow: hidden; }
.gp-stage--diagram .gp-diagram svg { display: block; width: 100%; height: 100%; }
.gp-stage--diagram .gp-diagram__cap { flex: none; margin: 0; max-width: 36rem; color: #d7dbe2; font-size: .86rem; line-height: 1.35; text-align: center; }
@media (max-width: 860px) {
  .gp-stage--diagram { padding: 3rem .6rem .6rem; gap: .45rem; }
  .gp-stage--diagram .gp-diagram { min-height: 120px; border-radius: 10px; }
  .gp-stage--diagram .gp-diagram__cap { font-size: .74rem; line-height: 1.25; }
}

/* Job 10 (lighted slab stand): readable price/header and a plain "Rear light: on/off" label on the preview.
   Scoped to the S&D live builders (.bv2--sdc). */
.bv2--sdc .bv2-buy .gp-price__amt { white-space: nowrap; font-variant-numeric: tabular-nums; letter-spacing: 0; }
.bv2--sdc .bv2-buy .gp-price__sub { white-space: nowrap; font-variant-numeric: tabular-nums; }
.bv2-preview .sdc-lightnote { position: absolute; top: .6rem; left: .6rem; z-index: 2; display: inline-flex; align-items: center; gap: .45rem;
  min-height: 32px; padding: .3rem .75rem; border-radius: 999px; font-weight: 700; font-size: .82rem; line-height: 1.1; cursor: pointer;
  color: #e8eaee; background: rgba(12, 13, 16, .88); border: 1px solid rgba(255,255,255,.28); }
.bv2-preview .sdc-lightnote::before { content: ""; width: .7rem; height: .7rem; border-radius: 50%; border: 2px solid #c5cad3; box-sizing: border-box; }
.bv2-preview .sdc-lightnote.is-on { color: #0d0d0c; background: #fff; border-color: #fff; }
.bv2-preview .sdc-lightnote.is-on::before { background: #a05cff; border-color: #0d0d0c; }
@media (max-width: 860px) {
  .bv2--sdc .bv2-buy .gp-price__sub { display: none; }
  .bv2-preview .sdc-lightnote { top: .4rem; left: .4rem; min-height: 28px; font-size: .76rem; }
}

/* ---- Job 11: pet bust / pet memorial form fit (scoped to .pmt pages; self-contained) ---- */
body.pmt .bv2-panel .pm-grid { grid-template-columns: minmax(0, 1fr); }
body.pmt .bv2-panel .pm-field select { width: 100%; min-width: 0; max-width: 100%; text-overflow: clip; padding-right: 1.8rem; }
body.pmt .pm-preview__ph strong { color: #fff; }
/* Job 11 review: on phones keep the "Generate a 3D preview from my photo" bar inside the short preview box (it sat under the settings sheet) */
@media (max-width: 860px) {
  body.pmt .bv2-preview .pm-preview__stage { min-height: 0; }
  body.pmt .pm-preview__ph { gap: .35rem; padding: .5rem .8rem; }
  body.pmt .pm-preview__ph picture { width: 84px; }
  body.pmt .pm-preview__ph picture img { width: 100%; }
  body.pmt .pm-preview__ph p { font-size: .8rem; line-height: 1.35; }
  body.pmt .pm-preview__bar { padding: .4rem .7rem; gap: .35rem; }
  body.pmt .pm-preview__fine { font-size: .72rem; line-height: 1.3; }
}
@media (max-width: 860px) and (max-height: 700px) { body.pmt .pm-preview__ph picture { display: none; } }

/* Job 10b (lighted slab stand, real-page polish). Scoped to the S&D live builders (.bv2--sdc).
   The preview buttons (Reset view / Auto-rotate / Show slab / light colours) had both top (from
   sd-configurator.css) and bottom (from this file) set, so they stretched and floated mid-preview.
   Pin them to the bottom-left on desktop and just under the "Rear light" label on phones. */
.bv2--sdc .bv2-preview .sdc-toolbar { top: auto; align-content: flex-end; max-width: calc(100% - 11rem); }
.bv2--sdc .bv2-preview .sdc-tool[aria-pressed="true"] { border-color: rgba(255,255,255,.55); }
@media (max-width: 860px) {
  .bv2--sdc .bv2-preview .sdc-toolbar { top: 2.8rem; bottom: auto; align-content: flex-start; max-width: calc(100% - 1.2rem); }
  .bv2--sdc .bv2-preview .sdc-dims { font-size: .74rem; padding: .25rem .5rem; border-radius: 8px; }
  .bv2--sdc .bv2-preview .sdc-dims span { font-size: .68rem; }
}

/* Job 10b: the Order and Ask us tabs sit on the white rail panel, but the shared S&D price card and "After you order"
   steps were styled for a dark card, so their white text vanished (price line, "Ships in about...", quantity prices,
   the three steps). Dark text on the white panel, same black/white brand. */
.bv2--sdc .bv2-panel .sdc-quote__h,
.bv2--sdc .bv2-panel .sdc-price__unit,
.bv2--sdc .bv2-panel .sdc-price__each,
.bv2--sdc .bv2-panel .sdc-price__total,
.bv2--sdc .bv2-panel .sdc-price__meta,
.bv2--sdc .bv2-panel .sdc-quote__na,
.bv2--sdc .bv2-panel .sdc-breaks caption,
.bv2--sdc .bv2-panel .sdc-quote .sdc-breaks th,
.bv2--sdc .bv2-panel .sdc-quote .sdc-breaks td { color: #0d0d0c; }
.bv2--sdc .bv2-panel .sdc-quote .sdc-breaks th,
.bv2--sdc .bv2-panel .sdc-quote .sdc-breaks td { border-top-color: #d9dce1; }
.bv2--sdc .bv2-panel .sdc-quote .sdc-breaks tr.is-current th,
.bv2--sdc .bv2-panel .sdc-quote .sdc-breaks tr.is-current td { color: #0d0d0c; font-weight: 800; background: #eceef1 !important; }
.bv2--sdc .bv2-panel .gg-next-steps { background: rgba(13, 13, 12, .04); border-color: rgba(13, 13, 12, .16); color: #0d0d0c; }
.bv2--sdc .bv2-panel .gg-next-steps__title,
.bv2--sdc .bv2-panel .gg-next-steps__text,
.bv2--sdc .bv2-panel .gg-next-steps__eta { color: #0d0d0c; }
.bv2--sdc .bv2-panel .gg-next-steps__num { background: #0d0d0c; }
.bv2--sdc .bv2-panel .gg-next-steps__meta,
.bv2--sdc .bv2-panel .gg-next-steps__note { color: #444a52; border-top-color: rgba(13, 13, 12, .12); }
/* Job 10b review: the "Save or share this design as a link" help line in the Order tab was white on white too. */
.bv2--sdc .bv2-panel .gg-share__help,
.bv2--sdc .bv2-panel .gg-share__msg,
.bv2--sdc .bv2-panel .gg-share__opened { color: #444a52; }

/* Job 13b (Lithophane Designer, real-page polish). Scoped to /design/lithophane only; self-contained.
   On phones the "Add your photo..." note sat over the top of the model. Let it take its own strip under the model instead,
   so the stage (and the model) shrink to make room. Desktop keeps the job 08 placement (below Reset view / Auto-rotate). */
@media (max-width: 860px) {
  body:has(#gpForm[action$="/design/lithophane"]) .bv2-preview .gp-notes { position: static; max-width: none; max-height: 5.2rem; margin: 0; padding: .35rem .6rem .45rem; background: var(--bv2-stage); }
  body:has(#gpForm[action$="/design/lithophane"]) .bv2-preview .gp-notes .gp-note { font-size: .78rem; line-height: 1.3; padding: .3rem .5rem; }
}

/* Job 16c review: phones hide .gp-price__sub. Show the large-format surcharge as a
   stage chip (not a second line in the sticky price bar, which sat under the site header). */
.gp-price__large { display: none; }
@media (max-width: 860px) {
  .bv2-preview .gp-price__large, .gp-stage .gp-price__large {
    display: block; position: absolute; left: .5rem; top: 3.2rem; z-index: 6; /* below Reset view / Auto-rotate, same as job 08 notes */
    margin: 0; max-width: calc(100% - 7.5rem);
    font-size: .72rem; line-height: 1.3; color: #d7dbe2;
    background: rgba(11,18,32,.72); padding: .25rem .5rem; border-radius: 6px;
    pointer-events: none; text-align: left;
  }
  .gp-price__large:empty { display: none; }
}

/* job 46b review (23 Nov 2026): phones/small tablets - a long price ("$45.00 for 2 ($22.50 each)") pushed S&D's Buy now
   off the right edge (the ghost button stays visible on S&D). Let the price wrap onto 2-3 lines; the buttons keep their size. */
@media (max-width: 860px) {
  .bv2-buy { flex: 0 1 auto; min-width: 0; }
  .bv2-buy .gp-price, .bv2-buy #sdcQuoteBody { flex: 1 1 auto; min-width: 0; }
  .bv2-buy .gp-price__amt { overflow-wrap: anywhere; }
  .bv2-buy .gp-order__btns, .bv2-buy .sdc-quote__btns { flex: none; }
}

/* ---- QA-04 (28 Nov 2026): mobile tab bar, sticky price bar, rail labels, select text, duplicate units ----
   Shared shell only; no geometry, price or option change. */

/* Desktop rail: a label may use up to four lines (it was cut to two with "..."), same font size. */
.bv2-tab span { -webkit-line-clamp: 4; }

/* One mm / in toggle: the rail panel header already has it, so hide the product's own copy of the same choice. */
.bv2-panel__body .gp-field[data-param="units"]:has(input[name="opt[units]"][value="in"]) { display: none; }

/* Selected option text must read in full: controls take the whole row and may use two lines' worth of room. */
.bv2-panel__body select { max-width: 100%; text-overflow: ellipsis; }
.bv2-selfull { margin: .3rem 0 0; font-size: .86rem; line-height: 1.3; color: #1a1a1a; overflow-wrap: anywhere; }
.bv2-selfull[hidden] { display: none; }

.bv2-rail-cue { display: none !important; } /* phones only: shown by the rules in the media query below */

@media (max-width: 860px) {
  /* Tab bar: ONE approach for every builder: the bar scrolls sideways, labels are never cut (one line each),
     and a fade + arrow at the edge shows when more tabs are off-screen. The active tab is scrolled into view by the shell. */
  .bv2-rail { scroll-snap-type: none; overscroll-behavior-x: contain; scrollbar-width: none; }
  .bv2-rail::-webkit-scrollbar { display: none; }
  .bv2-tab { min-width: 72px; padding: .48rem .7rem; }
  .bv2-tab span { white-space: nowrap; display: block; overflow: visible; text-overflow: clip; -webkit-line-clamp: unset; }
  .bv2-rail-cue { position: fixed; bottom: 0; height: var(--bv2-rail-h, 64px); width: 34px; z-index: 961; align-items: center;
    border: 0; padding: 0; margin: 0; cursor: pointer; color: #fff; pointer-events: none; }
  .bv2-rail-cue.is-on { display: flex !important; pointer-events: auto; }
  .bv2-rail-cue svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
  .bv2-rail-cue--prev { left: 0; justify-content: flex-start; padding-left: 4px; background: linear-gradient(90deg, var(--bv2-rail) 35%, rgba(18, 21, 27, 0)); }
  .bv2-rail-cue--next { right: 0; justify-content: flex-end; padding-right: 4px; background: linear-gradient(270deg, var(--bv2-rail) 35%, rgba(18, 21, 27, 0)); }

  /* Sticky price bar sits under the site header (when that header is sticky) and the preview under the bar;
     Add to cart / Buy now are at least 44 px tall. */
  .bv2-top { top: var(--bv2-stick, 0px); }
  .bv2-preview { top: calc(var(--bv2-stick, 0px) + var(--bv2-bar-h, 52px)); }
  .bv2-buy .gp-order__btns .gp-btn, .bv2-buy .gp-order__btns .sd-btn, .bv2-buy .sdc-quote__btns .sd-btn { min-height: 44px; }
}

/* QA-07 (28 Nov 2026): the generator's own mm/in field is hidden (the shared toggle is the one control). */
.gp-field[data-qa07-gone], fieldset.gp-group[hidden] { display: none !important; }

/* QA-09 (28 Nov 2026): gun-display "Prices are worked out from print time..." note (.gp-price-guide inside the preview) squeezed the phone
   preview to about 120 px and sat over the model. On phones the note leaves the preview and the shell (gg-builder-v2.js, QA-09 block) shows the
   same sentence at the top of the Order tab. Desktop is unchanged. Self-contained. */
.bv2-guide-copy { display: none; }
@media (max-width: 860px) {
  .bv2-preview .gp-buy .gp-price-guide { display: none; }
  .bv2-guide-copy { display: block; margin: .2rem 0 .9rem; font-size: .85rem; line-height: 1.45; color: inherit; }
}

/* QA-09 (28 Nov 2026): the phone "Copy link" button in the preview was 36 px tall (every builder). Make it a 44 px target. Phones only. */
@media (max-width: 860px) {
  .bv2-preview .gp-share .gg-share__btn { min-height: 44px; padding: .4rem .85rem; }
}
