/* ══════════════════════════════════════════════════════════════════
   STORE PHONE — Build My Store on a phone, "layout first" (screen v2)
   ══════════════════════════════════════════════════════════════════
   Every rule starts with html.bms-pv2. store-phone.js puts that class
   on <html> only for a touch phone with the switch on, so this file
   changes nothing for anyone else.
   Rules of the look (owner): text 15px or larger (13px floor), bold
   labels, dark text on cream, tap targets 44px or more, no emoji.
   State classes on .configurator-page:
     pv2-on    step 3 is showing          pv2-view / pv2-edit
     pv2-side  phone held sideways        pv2-3d    the 3D view
     pv2-sel   a fixture is selected      pv2-has-msg / pv2-hinting
   ══════════════════════════════════════════════════════════════════ */

html.bms-pv2 .configurator-page {
    --p-paper: #F3EFE4;
    --p-paper-lite: #FBFAF6;
    --p-canvas: #F6F2E7;
    --p-card: #FFFFFF;
    --p-cream: #FFF6D6;
    --p-rule: #D8CDB3;
    --p-rule-soft: #EAE3D3;
    --p-field: #A89C80;
    --p-ink: #26303b;
    --p-text: #0f0f1a;
    --p-text2: #444444;
    --p-gold: #E9A400;
    --p-gold-hi: #FFD44D;
    --p-gold-line: #C98F00;
    --p-gold-tint: rgba(233,164,0,.22);
    --p-danger: #B3261E;
    --p-danger-bg: #FDF2F2;
    --p-grid: rgba(38,48,59,.055);
    --p-strip: 92px;
    --p-vh: 100vh;
    font-size: 16px;
    line-height: 1.45;
    color: var(--p-text);
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}
@supports (height: 100dvh) {
    html.bms-pv2 .configurator-page { --p-vh: 100dvh; }
}
html.bms-pv2 .configurator-page [hidden] { display: none !important; }
html.bms-pv2.pv2-lock,
html.bms-pv2.pv2-lock body,
html.bms-pv2.pv2-quote,
html.bms-pv2.pv2-quote body { overflow: hidden; }

html.bms-pv2 .pv2-ic { width: 22px; height: 22px; flex: none; display: block; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
html.bms-pv2 .pv2-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
html.bms-pv2 .configurator-page :focus-visible { outline: 3px solid var(--p-text); outline-offset: 2px; }

/* ── Buttons ─────────────────────────────────────── */
html.bms-pv2 .pv2-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    min-height: 48px; min-width: 0; width: auto; margin: 0; padding: 0 16px;
    border: 2px solid transparent; border-radius: 12px; background: none; box-shadow: none;
    color: var(--p-text); text-decoration: none; text-transform: none; letter-spacing: 0;
    font-family: inherit; font-size: 16px; font-weight: 700; line-height: 1.15; white-space: nowrap;
    cursor: pointer; -webkit-appearance: none; appearance: none; -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}
html.bms-pv2 .pv2-btn-gold { background: linear-gradient(135deg, var(--p-gold-hi), var(--p-gold)); border-color: var(--p-gold-line); font-weight: 800; box-shadow: 0 4px 12px rgba(233,164,0,.35); }
html.bms-pv2 .pv2-btn-line { background: var(--p-card); border-color: var(--p-ink); }
html.bms-pv2 .pv2-btn-quiet { background: var(--p-card); border-color: var(--p-rule); }
html.bms-pv2 .pv2-btn-ink { background: var(--p-ink); border-color: var(--p-ink); color: #fff; }
html.bms-pv2 .pv2-btn-danger { background: var(--p-danger-bg); border-color: var(--p-danger); color: var(--p-danger); font-weight: 800; }
html.bms-pv2 .pv2-btn.pv2-wide { display: flex; width: 100%; }
html.bms-pv2 .pv2-btn:disabled { border-color: var(--p-rule); background: #EFEADC; color: var(--p-text2); box-shadow: none; cursor: default; }
html.bms-pv2 .pv2-btn.pv2-busy,
html.bms-pv2 .pv2-btn[aria-disabled="true"] { background: #EFEADC; border-color: var(--p-rule); color: var(--p-text2); box-shadow: none; }
html.bms-pv2 .pv2-btn:active,
html.bms-pv2 .pv2-act:active,
html.bms-pv2 .pv2-tool:active:not(:disabled),
html.bms-pv2 .pv2-row-btn:active,
html.bms-pv2 .pv2-pill:active,
html.bms-pv2 .pv2-card:active,
html.bms-pv2 .pv2-sbtn:active { transform: translateY(1px); }

/* ══════════════════════════════════════════════════
   STEPS 1 AND 2 on a phone
   ══════════════════════════════════════════════════ */
/* Nothing is pinned (O7): the 1-2-3-4 strip scrolls away like the promo bar and header do */
html.bms-pv2 .config-steps-bar { position: static; padding: 10px 8px; }
html.bms-pv2 .config-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; align-items: start; }
html.bms-pv2 .step-connector { display: none; }
html.bms-pv2 .config-step { flex-direction: column; gap: 4px; padding: 0; text-align: center; }
html.bms-pv2 .config-step .step-num { width: 30px; height: 30px; font-size: 15px; color: var(--p-text); border: 2px solid var(--p-field); }
html.bms-pv2 .config-steps .step-label { display: block; font-size: 15px; font-weight: 700; line-height: 1.15; letter-spacing: 0; text-transform: none; color: var(--p-text2); }
html.bms-pv2 .config-step.active .step-label,
html.bms-pv2 .config-step.completed .step-label { color: var(--p-text); }

html.bms-pv2 .store-type-overlay { padding: 18px 12px 28px; align-items: flex-start; }
html.bms-pv2 .store-type-inner { text-align: left; }
html.bms-pv2 .config-eyebrow { font-family: inherit; font-size: 15px; font-weight: 800; letter-spacing: 0; text-transform: none; color: var(--p-text2); margin-bottom: 2px; }
html.bms-pv2 .config-eyebrow::before,
html.bms-pv2 .config-eyebrow::after { display: none; }
html.bms-pv2 .store-type-inner h1 { font-size: 24px; line-height: 1.2; letter-spacing: -.2px; margin-bottom: 6px; color: var(--p-text); }
html.bms-pv2 .store-type-inner > p { font-size: 16px; color: var(--p-text2); margin-bottom: 14px; }
html.bms-pv2 .bms-demo-head h3 { font-size: 18px; }
html.bms-pv2 .bms-demo-badge { font-size: 13px; }
html.bms-pv2 .bms-demo-sub { font-size: 15px; color: var(--p-text2); opacity: 1; text-align: left; }

/* Store cards: a picture, the name, the size of its starter room (O21), one line of what it holds */
html.bms-pv2 .store-type-grid { grid-template-columns: 1fr; gap: 8px; }
html.bms-pv2 .store-type-card {
    display: grid; grid-template-columns: 64px minmax(0, 1fr); column-gap: 12px; align-items: center;
    min-height: 104px; padding: 8px 12px; border: 2px solid var(--p-rule); border-radius: 14px; box-shadow: none;
    color: var(--p-text); font-size: 16px; overflow: visible;
}
html.bms-pv2 .store-type-card:hover { transform: none; box-shadow: none; }
html.bms-pv2 .stc-visual,
html.bms-pv2 .stc-info { display: contents; }
html.bms-pv2 .stc-visual svg,
html.bms-pv2 .stc-visual .plan { grid-column: 1; grid-row: 1 / span 3; width: 64px; height: auto; color: var(--p-ink); }
html.bms-pv2 .stc-idx { display: none; }
html.bms-pv2 .store-type-card h3 { grid-column: 2; grid-row: 1; margin: 0; font-size: 18px; line-height: 1.2; font-weight: 800; color: var(--p-text); }
html.bms-pv2 .stc-dim {
    position: static; grid-column: 2; grid-row: 2; justify-self: start; margin: 5px 0 4px; padding: 2px 10px;
    border-radius: 8px; background: var(--p-gold-tint); border: 2px solid var(--p-gold);
    font-family: inherit; font-size: 15px; font-weight: 800; line-height: 1.3; letter-spacing: 0; color: var(--p-text);
}
html.bms-pv2 .store-type-card p { grid-column: 2; grid-row: 3; font-size: 15px; line-height: 1.3; color: var(--p-text2); }

/* Step 2: the same form, readable and reachable */
html.bms-pv2 .space-pill { min-height: 48px; padding: 4px 16px; border: 2px solid var(--p-ink); border-radius: 24px; font-size: 16px; }
html.bms-pv2 .space-pill.active { background: var(--p-ink); border-color: var(--p-ink); color: #fff; }
html.bms-pv2 .space-field { font-size: 15px; }
html.bms-pv2 .space-input { height: 52px; border: 2px solid var(--p-field); border-radius: 12px; }
html.bms-pv2 .space-unit,
html.bms-pv2 .space-calc,
html.bms-pv2 .space-hint { font-size: 15px; color: var(--p-text2); }
html.bms-pv2 .space-actions { align-items: stretch; }
html.bms-pv2 .space-build { min-height: 56px; border-radius: 12px; }
html.bms-pv2 .space-empty,
html.bms-pv2 .space-back { min-height: 48px; font-size: 16px; color: var(--p-text); text-align: left; }

/* ══════════════════════════════════════════════════
   STEP 3 — what today's screen shows that this one does not
   ══════════════════════════════════════════════════ */
html.bms-pv2 #panelLeft,
html.bms-pv2 .canvas-toolbar,
html.bms-pv2 #actionBar,
html.bms-pv2 #layoutTray,
html.bms-pv2 #placeChip,
html.bms-pv2 #startChips,
html.bms-pv2 #canvasHint,
html.bms-pv2 #contextToolbar { display: none !important; }

html.bms-pv2 #stepLayout.active { display: block; position: relative; background: var(--p-paper-lite); }
html.bms-pv2 .layout-designer { display: block; height: auto; min-height: 0; overflow: visible; }
html.bms-pv2 .panel-center { display: block; background: none; }
html.bms-pv2 #canvasContainer {
    min-height: 0; height: 430px;
    background:
        repeating-linear-gradient(0deg, var(--p-grid) 0 1px, transparent 1px 34px),
        repeating-linear-gradient(90deg, var(--p-grid) 0 1px, transparent 1px 34px),
        var(--p-canvas);
    border-top: 1px solid var(--p-rule-soft); border-bottom: 1px solid var(--p-rule-soft);
}
/* the plan is a picture until Edit layout: a finger on it scrolls the page */
html.bms-pv2 .pv2-view #canvasContainer .canvas-container { pointer-events: none; }
html.bms-pv2 .pv2-edit #canvasContainer .canvas-container { touch-action: none; }

/* ── First screen (view state), upright ──────────── */
html.bms-pv2 .pv2-bar-top { display: flex; align-items: center; gap: 8px; padding: 6px 12px; background: var(--p-paper-lite); border-bottom: 1px solid var(--p-rule); }
html.bms-pv2 .pv2-bar-top .pv2-btn { flex: none; padding: 0 12px; gap: 6px; }
html.bms-pv2 .pv2-chip {
    flex: 1; min-width: 0; display: flex; align-items: center; gap: 4px; min-height: 48px; margin: 0; padding: 0 6px 0 14px;
    border: 2px solid var(--p-rule); border-radius: 24px; background: var(--p-card); color: var(--p-text);
    font-family: inherit; font-size: 16px; line-height: 1.2; text-align: left; text-transform: none; letter-spacing: 0;
    cursor: pointer; -webkit-appearance: none; appearance: none; -webkit-tap-highlight-color: transparent;
}
html.bms-pv2 .pv2-chip-t { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
html.bms-pv2 .pv2-chip-t b { font-weight: 800; }
html.bms-pv2 .pv2-chip-t span { font-size: 15px; color: var(--p-text2); }
html.bms-pv2 .pv2-chip-arrow { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; border-radius: 50%; background: var(--p-ink); color: #fff; }
html.bms-pv2 .pv2-chip-arrow .pv2-ic { stroke-width: 2.6; }
html.bms-pv2 .pv2-chip[aria-expanded="true"] { border-color: var(--p-ink); }
html.bms-pv2 .pv2-chip[aria-expanded="true"] .pv2-chip-arrow .pv2-ic { transform: rotate(180deg); }

html.bms-pv2 .pv2-view-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 6px 12px; background: var(--p-paper-lite); }
html.bms-pv2 .pv2-view-row .pv2-btn { padding: 0 12px; gap: 6px; }
html.bms-pv2 .pv2-seg { display: inline-flex; gap: 6px; padding: 3px; border: 2px solid var(--p-ink); border-radius: 14px; background: var(--p-card); }
html.bms-pv2 .pv2-seg button {
    display: inline-flex; align-items: center; justify-content: center; min-width: 56px; min-height: 44px; margin: 0; padding: 0 12px;
    border: 0; border-radius: 9px; background: none; color: var(--p-text);
    font-family: inherit; font-size: 16px; font-weight: 800; text-transform: none; letter-spacing: 0; cursor: pointer;
    -webkit-appearance: none; appearance: none;
}
html.bms-pv2 .pv2-seg button[aria-pressed="true"] { background: var(--p-ink); color: #fff; }
html.bms-pv2 .pv2-hinting .pv2-edit-btn { box-shadow: 0 0 0 4px var(--p-gold); }

/* the hint is a row of its own between the Edit layout row and the plan: it covers nothing */
html.bms-pv2 .pv2-hintbox {
    position: relative; z-index: 4; width: fit-content; max-width: calc(100% - 24px); margin: 8px 12px 8px auto; padding: 5px 14px; line-height: 1.4;
    background: var(--p-cream); border: 2px solid var(--p-ink); border-radius: 12px; font-size: 15px; font-weight: 700; color: var(--p-text);
    box-shadow: 0 8px 20px rgba(40,30,10,.2);
}
html.bms-pv2 .pv2-hintbox::before { content: ""; position: absolute; top: -9px; right: 70px; width: 14px; height: 14px; background: var(--p-cream); border-left: 2px solid var(--p-ink); border-top: 2px solid var(--p-ink); transform: rotate(45deg); }

html.bms-pv2 .pv2-sec-h { margin: 0; padding: 16px 16px 4px; font-size: 18px; line-height: 1.3; font-weight: 800; color: var(--p-text); }
html.bms-pv2 .pv2-items { margin: 0; padding: 0 16px 12px; list-style: none; }
html.bms-pv2 .pv2-items li { display: flex; gap: 12px; align-items: flex-start; margin: 0; padding: 10px 0; border-bottom: 1px solid var(--p-rule-soft); }
html.bms-pv2 .pv2-items li:last-child { border-bottom: 0; }
html.bms-pv2 .pv2-qty { flex: none; min-width: 46px; font-size: 16px; font-weight: 800; }
html.bms-pv2 .pv2-it { min-width: 0; font-size: 16px; }
html.bms-pv2 .pv2-it b { display: block; font-weight: 700; }
html.bms-pv2 .pv2-it span { display: block; font-size: 15px; color: var(--p-text2); }
html.bms-pv2 .pv2-none { font-size: 16px; color: var(--p-text2); }

html.bms-pv2 .pv2-bar-bottom {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 9000;
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
    padding: 8px 12px; padding-bottom: calc(8px + env(safe-area-inset-bottom));
    background: var(--p-card); border-top: 2px solid var(--p-gold); box-shadow: 0 -6px 18px rgba(40,30,10,.08);
}
html.bms-pv2 .pv2-count { font-size: 17px; font-weight: 700; white-space: nowrap; }
html.bms-pv2 .pv2-count b { font-weight: 800; font-size: 20px; }
html.bms-pv2 .pv2-bar-bottom .pv2-btn { min-height: 52px; font-size: 17px; padding: 0 18px; }
/* Share: one tap from the first screen (O31). It stands with the quote button, not with the count. */
html.bms-pv2 .pv2-bar-bottom .pv2-share-btn { flex: none; width: 58px; margin-left: auto; }
/* a narrow phone: the count stacks and the buttons tighten, so "Get My Store Quote" stays inside its button */
@media (max-width: 379px) {
    html.bms-pv2 .pv2-bar-bottom { gap: 8px; }
    html.bms-pv2 .pv2-count { display: flex; flex-direction: column; align-items: flex-start; line-height: 1.1; font-size: 15px; }
    html.bms-pv2 .pv2-bar-bottom .pv2-btn { padding: 0 12px; }
}
html.bms-pv2 .pv2-view:not(.pv2-side) #stepLayout { padding-bottom: calc(78px + env(safe-area-inset-bottom)); }

/* empty room: one plain line, then today's three "Start with" buttons */
html.bms-pv2 .pv2-start { padding: 8px 12px 12px; background: var(--p-paper-lite); }
html.bms-pv2 .pv2-start-t { margin: 0; font-size: 15px; line-height: 1.35; font-weight: 700; color: var(--p-text); }
html.bms-pv2 .pv2-start-lab { margin: 10px 0 6px; font-size: 15px; font-weight: 700; color: var(--p-text); }
html.bms-pv2 .pv2-start-btns { display: flex; flex-wrap: wrap; gap: 8px; }
html.bms-pv2 .pv2-start-btns .pv2-btn { flex: 1 1 auto; }

/* 3D: the view, and "View in your space" under it (the AR button's own node, where it is) */
html.bms-pv2 .pv2-3d #canvas-3d-container { height: auto; bottom: 68px; }
html.bms-pv2 .pv2-3d #canvasContainer > .canvas-container { visibility: hidden; }   /* the 2D plan must not show under the 3D view */
html.bms-pv2 #btnViewInSpace {
    top: auto; left: 12px; right: 12px; bottom: 10px; transform: none; justify-content: center;
    min-height: 48px; padding: 0 16px; border: 2px solid var(--p-ink); border-radius: 12px; background: var(--p-card); box-shadow: none;
    color: var(--p-text); font-family: inherit; font-size: 16px; font-weight: 700;
}
html.bms-pv2 #btnViewInSpace:hover { transform: none; box-shadow: none; }
html.bms-pv2 #btnViewInSpace svg { width: 22px; height: 22px; }
html.bms-pv2 .ar-note { top: 10px; font-size: 15px; }
html.bms-pv2 .ar-note-action { min-height: 44px; padding: 0 14px; font-size: 15px; }
html.bms-pv2 .ar-note-close { width: 44px; height: 44px; font-size: 24px; }
html.bms-pv2 .pv2-3d .pv2-floats > :not(.pv2-msg) { display: none; }

/* ── On the plan ─────────────────────────────────── */
html.bms-pv2 .pv2-floats { position: absolute; inset: 0; z-index: 30; pointer-events: none; }
html.bms-pv2 .pv2-floats > * { pointer-events: auto; }
html.bms-pv2 .pv2-side-chip,
html.bms-pv2 .pv2-side-tools,
html.bms-pv2 .pv2-side-name,
html.bms-pv2 .pv2-side-hint,
html.bms-pv2 .pv2-side-count { display: none; }
/* the corner holds the sideways fixture count (and, sideways, the warning count beside it) */
html.bms-pv2 .pv2-corner { position: absolute; left: 6px; bottom: 6px; display: flex; flex-direction: row; align-items: center; gap: 6px; pointer-events: none; }
html.bms-pv2 .pv2-ed-hint { display: none; position: absolute; left: 0; right: 0; bottom: 4px; margin: 0; padding: 2px 8px; text-align: center; font-size: 15px; font-weight: 700; color: var(--p-text2); pointer-events: none; }
html.bms-pv2 .pv2-edit:not(.pv2-side) .pv2-ed-hint { display: block; }
html.bms-pv2 .pv2-has-msg .pv2-ed-hint { visibility: hidden; }
/* after the first pinch or drag the hint has done its work (O27) */
html.bms-pv2 .pv2-edit.pv2-moved:not(.pv2-side) .pv2-ed-hint { display: none; }

/* ── Layout warnings (O27): nothing on the plan. A small red count beside Done (editor) and
      beside 2D | 3D (first screen); a tap opens the words. ── */
html.bms-pv2 .pv2-warn {
    flex: none; display: inline-flex; align-items: center; justify-content: center; gap: 5px; min-width: 52px; min-height: 44px; margin: 0; padding: 0 10px;
    border: 2px solid var(--p-danger); border-radius: 22px; background: var(--p-card); color: var(--p-danger);
    font-family: inherit; font-size: 17px; font-weight: 800; line-height: 1; text-transform: none; letter-spacing: 0; cursor: pointer;
    -webkit-appearance: none; appearance: none; -webkit-tap-highlight-color: transparent;
}
html.bms-pv2 .pv2-warn .pv2-ic { width: 18px; height: 18px; }
html.bms-pv2 .pv2-warn b { font-weight: 800; }
html.bms-pv2 .pv2-warn[aria-expanded="true"] { background: var(--p-danger-bg); }
html.bms-pv2 .pv2-view-row .pv2-warn { margin-right: auto; }                      /* stays with 2D | 3D; Edit layout keeps the right edge */
html.bms-pv2 .pv2-corner .pv2-warn { display: none; pointer-events: auto; }       /* upright: the count is in the top row */
html.bms-pv2 .pv2-side .pv2-corner .pv2-warn { display: inline-flex; }            /* sideways: beside the fixture count, in the left column */
html.bms-pv2 .pv2-warn-box {
    position: absolute; z-index: 41; left: 12px; right: 12px; top: 8px; padding: 10px 14px; border: 2px solid var(--p-ink); border-radius: 12px;
    background: #FFFDF6; color: var(--p-text); font-size: 15px; font-weight: 700; line-height: 1.45; box-shadow: 0 4px 14px rgba(40,30,10,.18);
}
html.bms-pv2 .pv2-warn-box b { display: block; font-weight: 800; color: var(--p-danger); }
html.bms-pv2 .pv2-warn-box span { display: block; margin-top: 4px; color: var(--p-text2); }

/* ── Message band: cream, dark text, full width, 6 seconds ── */
html.bms-pv2 .pv2-msg {
    position: absolute; z-index: 40; left: 0; right: 0; bottom: 0; display: flex; align-items: center; gap: 10px; min-height: 46px;
    padding: 4px 8px 4px 14px; background: var(--p-cream); border-top: 3px solid var(--p-gold);
    font-size: 15px; font-weight: 700; line-height: 1.35; color: var(--p-text); box-shadow: 0 -6px 16px rgba(40,30,10,.12);
}
html.bms-pv2 .pv2-msg-t { flex: 1; min-width: 0; padding: 6px 0; }
html.bms-pv2 .pv2-msg .pv2-btn { flex: none; min-height: 44px; padding: 0 12px; }
/* steps 1 and 2 have no plan: the same band along the bottom of the screen */
html.bms-pv2 .pv2-msg.pv2-msg-root { position: fixed; left: 0; right: 0; bottom: 0; z-index: 10005; padding-bottom: calc(4px + env(safe-area-inset-bottom)); }
/* first screen: just above the bottom bar, wherever the page is scrolled */
html.bms-pv2 .pv2-view:not(.pv2-side) .pv2-msg { position: fixed; bottom: calc(70px + env(safe-area-inset-bottom)); z-index: 8990; }

/* ── Editor (edit state), upright: the whole screen ── */
html.bms-pv2 .pv2-ed-top,
html.bms-pv2 .pv2-ed-bottom,
html.bms-pv2 .pv2-strip { display: none; }
html.bms-pv2 .pv2-edit #stepLayout.active {
    position: fixed; left: 0; right: 0; top: 0; z-index: 9990; height: var(--p-vh);
    display: flex; flex-direction: column; overflow: hidden;
}
html.bms-pv2 .pv2-edit .pv2-top,
html.bms-pv2 .pv2-edit .pv2-sec-h,
html.bms-pv2 .pv2-edit .pv2-items,
html.bms-pv2 .pv2-edit .pv2-bar-bottom { display: none; }
html.bms-pv2 .pv2-edit:not(.pv2-side) .pv2-ed-top { flex: none; display: flex; align-items: center; gap: 8px; padding: 6px 12px; background: var(--p-paper-lite); border-bottom: 1px solid var(--p-rule); }
html.bms-pv2 .pv2-ed-top .pv2-btn { padding: 0 12px; gap: 6px; }
html.bms-pv2 .pv2-sp { flex: 1; }
html.bms-pv2 .pv2-edit:not(.pv2-side) .layout-designer { flex: 1; min-height: 0; display: flex; order: 1; }
html.bms-pv2 .pv2-edit .panel-center { flex: 1; min-width: 0; min-height: 0; display: flex; flex-direction: column; }
html.bms-pv2 .pv2-edit #canvasContainer { flex: 1; min-height: 0; height: auto; border-bottom: 0; }
html.bms-pv2 .pv2-edit:not(.pv2-side) .pv2-start { flex: none; order: 2; border-top: 1px solid var(--p-rule); }
html.bms-pv2 .pv2-edit:not(.pv2-side) .pv2-ed-bottom { flex: none; display: block; order: 3; }
html.bms-pv2 .pv2-ed-tools {
    display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 8px 12px;
    background: var(--p-card); border-top: 2px solid var(--p-gold); box-shadow: 0 -6px 18px rgba(40,30,10,.08);
}
html.bms-pv2 .pv2-ed-bottom > .pv2-ed-tools:last-child,
html.bms-pv2 .pv2-ed-bottom:not(:has(.pv2-selbar:not([hidden]))) .pv2-ed-tools { padding-bottom: calc(8px + env(safe-area-inset-bottom)); }
html.bms-pv2 .pv2-cluster { display: flex; gap: 8px; }
html.bms-pv2 .pv2-tool {
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; width: 54px; height: 56px; margin: 0; padding: 0;
    border: 2px solid var(--p-ink); border-radius: 12px; background: var(--p-card); color: var(--p-text);
    font-family: inherit; font-size: 15px; font-weight: 700; line-height: 1.15; text-transform: none; letter-spacing: 0;
    cursor: pointer; -webkit-appearance: none; appearance: none; -webkit-tap-highlight-color: transparent;
}
html.bms-pv2 .pv2-tool:disabled { border-color: var(--p-rule); background: #EFEADC; color: var(--p-text2); cursor: default; }
html.bms-pv2 .pv2-ed-tools .pv2-btn { min-height: 56px; padding: 0 12px; }
html.bms-pv2 .pv2-selbar {
    padding: 8px 12px; padding-bottom: calc(10px + env(safe-area-inset-bottom));
    background: var(--p-paper-lite); border-top: 3px solid var(--p-gold); box-shadow: 0 -8px 22px rgba(40,30,10,.14);
}
html.bms-pv2 .pv2-sel-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
html.bms-pv2 .pv2-sel-name { min-width: 0; font-size: 18px; line-height: 1.25; font-weight: 800; }
html.bms-pv2 .pv2-sel-price { flex: none; font-size: 17px; line-height: 1.35; font-weight: 800; white-space: nowrap; }
html.bms-pv2 .pv2-sel-meta { font-size: 15px; color: var(--p-text2); }
/* columns follow the length of the words, so "Duplicate" keeps room each side on a 360px phone */
html.bms-pv2 .pv2-acts { display: grid; grid-template-columns: .92fr 1.26fr 1.06fr .92fr; gap: 6px; margin-top: 8px; }
html.bms-pv2 .pv2-act {
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; min-height: 56px; margin: 0; padding: 0 2px;
    border: 2px solid var(--p-ink); border-radius: 12px; background: var(--p-card); color: var(--p-text);
    font-family: inherit; font-size: 15px; font-weight: 700; line-height: 1.15; text-transform: none; letter-spacing: 0;
    cursor: pointer; -webkit-appearance: none; appearance: none; -webkit-tap-highlight-color: transparent;
}
html.bms-pv2 .pv2-act.pv2-danger { border-color: var(--p-danger); color: var(--p-danger); background: var(--p-danger-bg); }

/* ══════════════════════════════════════════════════
   SIDEWAYS (O11, O15): the plan edge to edge, one strip on the right
   ══════════════════════════════════════════════════ */
html.bms-pv2 .pv2-side #stepLayout.active { display: grid; grid-template-columns: minmax(0, 1fr) var(--p-strip); padding: 0; }
html.bms-pv2 .pv2-side .pv2-top,
html.bms-pv2 .pv2-side .pv2-ed-top,
html.bms-pv2 .pv2-side .pv2-ed-bottom,
html.bms-pv2 .pv2-side .pv2-bar-bottom { display: none; }
html.bms-pv2 .pv2-side .layout-designer { grid-column: 1; grid-row: 1; display: flex; height: var(--p-vh); min-width: 0; }
html.bms-pv2 .pv2-side .panel-center { flex: 1; min-width: 0; display: flex; flex-direction: column; }
html.bms-pv2 .pv2-side #canvasContainer { flex: 1; min-height: 0; height: auto; border: 0; }
html.bms-pv2 .pv2-side .pv2-sec-h,
html.bms-pv2 .pv2-side .pv2-items { grid-column: 1 / -1; }
html.bms-pv2 .pv2-side .pv2-start { grid-column: 1 / -1; }
html.bms-pv2 .pv2-side.pv2-edit #stepLayout.active { grid-template-rows: var(--p-vh); }
html.bms-pv2 .pv2-side.pv2-edit .pv2-start {
    grid-column: 1; grid-row: 1; align-self: end; justify-self: start; z-index: 35; width: 330px; max-width: calc(100% - 16px);
    margin: 0 0 56px 8px; border: 2px solid var(--p-ink); border-radius: 12px; box-shadow: 0 8px 20px rgba(40,30,10,.2);
}

/* the strip: top buttons pinned to the top, the last one pinned to the bottom */
html.bms-pv2 .pv2-side .pv2-strip {
    grid-column: 2; grid-row: 1; position: relative; z-index: 10030; display: flex; flex-direction: column; gap: 6px;
    height: var(--p-vh); padding: 8px 3px; padding-bottom: calc(8px + env(safe-area-inset-bottom)); overflow: hidden;
    background: var(--p-card); border-left: 2px solid var(--p-gold); box-shadow: -6px 0 18px rgba(40,30,10,.1);
}
html.bms-pv2 .pv2-strip .pv2-last { margin-top: auto; }
html.bms-pv2 .pv2-sbtn {
    flex: none; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; width: 100%; min-height: 52px; margin: 0; padding: 3px 0;
    border: 2px solid var(--p-ink); border-radius: 12px; background: var(--p-card); color: var(--p-text); text-align: center;
    font-family: inherit; font-size: 15px; font-weight: 700; line-height: 1.15; text-transform: none; letter-spacing: 0;
    cursor: pointer; -webkit-appearance: none; appearance: none; -webkit-tap-highlight-color: transparent;
}
html.bms-pv2 .pv2-sbtn-row { flex-direction: row; gap: 5px; min-height: 48px; }
html.bms-pv2 .pv2-sbtn-quiet { border-color: var(--p-rule); }
html.bms-pv2 .pv2-sbtn-ink { background: var(--p-ink); color: #fff; }
html.bms-pv2 .pv2-sbtn-gold { min-height: 64px; background: linear-gradient(135deg, var(--p-gold-hi), var(--p-gold)); border-color: var(--p-gold-line); font-weight: 800; box-shadow: 0 4px 12px rgba(233,164,0,.35); }
html.bms-pv2 .pv2-sbtn-danger { border: 2.5px solid var(--p-danger); background: var(--p-danger-bg); color: var(--p-danger); font-weight: 800; }
html.bms-pv2 .pv2-strip .pv2-seg { display: flex; flex-direction: column; flex: none; }
html.bms-pv2 .pv2-strip .pv2-seg button { min-width: 0; padding: 0; }

/* corner floats on the plan: store chip (view), Undo / Redo (edit), the name card, the count */
html.bms-pv2 .pv2-side.pv2-view .pv2-side-chip { display: flex; position: absolute; left: 8px; top: 8px; width: auto; max-width: 180px; box-shadow: 0 4px 12px rgba(40,30,10,.12); }
html.bms-pv2 .pv2-side.pv2-edit .pv2-side-tools { display: flex; gap: 8px; position: absolute; left: 8px; top: 8px; }
html.bms-pv2 .pv2-side.pv2-sel .pv2-side-name {
    display: block; position: absolute; left: 8px; top: 72px; width: 182px; padding: 6px 8px; border: 2px solid var(--p-ink); border-radius: 10px;
    background: var(--p-card); font-size: 15px; line-height: 1.25; pointer-events: none; box-shadow: 0 4px 12px rgba(40,30,10,.12);
}
/* a long product name gets a third line before it is cut */
html.bms-pv2 .pv2-side-name b { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; overflow: hidden; font-weight: 800; }
html.bms-pv2 .pv2-side-name span { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; color: var(--p-text2); }
html.bms-pv2 .pv2-side-name .pv2-sn-price { font-weight: 800; color: var(--p-text); }
html.bms-pv2 .pv2-side .pv2-corner { left: 8px; bottom: 8px; }
/* sideways, the warnings' words take the place messages take: the left column, off the room */
html.bms-pv2 .pv2-side .pv2-warn-box { left: 8px; right: auto; top: 72px; width: 182px; padding: 8px 8px 8px 10px; line-height: 1.3; box-shadow: 0 8px 20px rgba(40,30,10,.2); }
/* a selected fixture's name card has that place: the words go just above the corner, as a message does */
html.bms-pv2 .pv2-side.pv2-sel .pv2-warn-box { top: auto; bottom: 56px; }
html.bms-pv2 .pv2-side .pv2-side-count { display: inline-flex; align-items: center; gap: 5px; min-height: 40px; padding: 0 14px; border: 2px solid var(--p-rule); border-radius: 20px; background: var(--p-card); font-size: 15px; font-weight: 700; }
html.bms-pv2 .pv2-side-count b { font-size: 18px; font-weight: 800; }
/* sideways, a message never sits on the room: it takes the free place in the left column */
html.bms-pv2 .pv2-side .pv2-msg,
html.bms-pv2 .pv2-side.pv2-hinting .pv2-side-hint {
    position: absolute; left: 8px; right: auto; top: 72px; bottom: auto; width: 182px; min-height: 0; display: flex; flex-direction: column; align-items: stretch; gap: 6px;
    padding: 8px 8px 8px 10px; border: 2px solid var(--p-ink); border-radius: 12px; background: var(--p-cream);
    font-size: 15px; line-height: 1.3; font-weight: 700; color: var(--p-text); box-shadow: 0 8px 20px rgba(40,30,10,.2);
}
html.bms-pv2 .pv2-side .pv2-msg-t { padding: 0; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 4; overflow: hidden; }
html.bms-pv2 .pv2-side .pv2-msg .pv2-btn { align-self: flex-end; }
html.bms-pv2 .pv2-side.pv2-sel .pv2-msg { top: auto; bottom: 56px; }
html.bms-pv2 .pv2-side.pv2-edit #stepLayout.active { position: fixed; }
html.bms-pv2 .pv2-side #btnViewInSpace { left: 8px; right: auto; bottom: 56px; }
html.bms-pv2 .pv2-side.pv2-3d #canvas-3d-container { bottom: 0; }

/* ══════════════════════════════════════════════════
   SHEETS, the chip's drop-down, the question box
   ══════════════════════════════════════════════════ */
html.bms-pv2 .pv2-scrim { position: fixed; inset: 0; z-index: 10010; background: rgba(28,22,10,.45); }
html.bms-pv2 .pv2-side .pv2-scrim { right: var(--p-strip); }
html.bms-pv2 .pv2-sheet,
html.bms-pv2 #propertyPanel.pv2-open {
    position: fixed; left: 0; right: 0; top: auto; bottom: 0; z-index: 10020; width: auto; display: flex !important; flex-direction: column;
    max-height: 82%; overflow: hidden;
    background: var(--p-paper-lite); border: 0; border-top: 3px solid var(--p-gold); border-radius: 18px 18px 0 0; box-shadow: 0 -14px 34px rgba(40,30,10,.22);
    color: var(--p-text); font-size: 16px;
}
html.bms-pv2 #propertyPanel { display: none !important; }
html.bms-pv2 .pv2-sheet.pv2-sheet-tall { max-height: 88%; height: 88%; }
html.bms-pv2 .pv2-sheet-head,
html.bms-pv2 #propertyPanel .prop-header { flex: none; position: static; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 12px 8px 16px; background: none; border: 0; }
html.bms-pv2 .pv2-sheet-head h3,
html.bms-pv2 #propertyPanel .prop-header h3 { margin: 0; font-size: 20px; line-height: 1.2; font-weight: 800; color: var(--p-text); text-transform: none; letter-spacing: 0; }
html.bms-pv2 .pv2-sheet-sub { display: block; font-size: 15px; font-weight: 400; color: var(--p-text2); }
html.bms-pv2 .pv2-sheet-head .pv2-btn,
html.bms-pv2 #propertyPanel .prop-header .pv2-btn { flex: none; padding: 0 12px; gap: 6px; width: auto; height: auto; border-radius: 12px; }
html.bms-pv2 .pv2-sheet-body,
html.bms-pv2 #propertyPanel .prop-body { flex: 1; min-height: 0; overflow-y: auto; -webkit-overflow-scrolling: touch; overscroll-behavior: contain; padding: 0 12px; padding-bottom: calc(16px + env(safe-area-inset-bottom)); }
html.bms-pv2 .pv2-sheet-note { margin: 10px 2px 0; font-size: 15px; line-height: 1.4; color: var(--p-text2); }
html.bms-pv2 .pv2-field,
html.bms-pv2 #propertyPanel .prop-field { margin: 14px 0 0; padding: 0; border: 0; }
html.bms-pv2 .pv2-field:first-child,
html.bms-pv2 #propertyPanel .prop-field:first-child { margin-top: 2px; }
html.bms-pv2 .pv2-lab,
html.bms-pv2 #propertyPanel .prop-field label { display: block; margin: 0 0 6px; font-size: 15px; font-weight: 700; color: var(--p-text); text-transform: none; letter-spacing: 0; }
html.bms-pv2 .pv2-pills,
html.bms-pv2 #propertyPanel .prop-color-row,
html.bms-pv2 #propertyPanel .prop-pill-row { display: flex; flex-wrap: wrap; gap: 8px !important; }
html.bms-pv2 .pv2-pill,
html.bms-pv2 #propertyPanel .prop-color-pill {
    display: inline-flex; flex-direction: column; align-items: center; justify-content: center; min-height: 48px; margin: 0; padding: 4px 16px !important;
    border: 2px solid var(--p-ink) !important; border-radius: 24px !important; background: var(--p-card) !important; color: var(--p-text) !important;
    font-family: inherit; font-size: 16px !important; font-weight: 700 !important; line-height: 1.2; text-transform: none; letter-spacing: 0;
    cursor: pointer; -webkit-appearance: none; appearance: none; -webkit-tap-highlight-color: transparent;
}
html.bms-pv2 .pv2-pill small { display: block; font-size: 15px; font-weight: 700; }
html.bms-pv2 .pv2-pill.pv2-pill-2 { border-radius: 16px !important; min-height: 58px; }
html.bms-pv2 .pv2-pill[aria-pressed="true"],
html.bms-pv2 #propertyPanel .prop-color-pill[aria-pressed="true"] { background: var(--p-ink) !important; color: #fff !important; }
html.bms-pv2 #propertyPanel .prop-color-pill:disabled { opacity: 1; }
html.bms-pv2 #propertyPanel .prop-size-single { font-size: 15px !important; font-weight: 700; color: var(--p-text) !important; }
html.bms-pv2 .pv2-opt-row { display: grid; grid-template-columns: auto 1fr; gap: 8px; margin-top: 16px; }
html.bms-pv2 .pv2-opt-row .pv2-btn { min-width: 0; white-space: normal; text-align: center; }
html.bms-pv2 .pv2-stepper { display: grid; grid-template-columns: 1fr minmax(96px, auto) 1fr; gap: 8px; align-items: center; }
html.bms-pv2 .pv2-stepper-val { display: flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 10px; border: 2px solid var(--p-field); border-radius: 12px; background: var(--p-card); font-size: 20px; font-weight: 800; }
html.bms-pv2 .pv2-rows { display: grid; gap: 8px; }
html.bms-pv2 .pv2-row-btn {
    display: flex; align-items: center; gap: 12px; width: 100%; min-height: 56px; margin: 0; padding: 0 16px; border: 2px solid var(--p-rule); border-radius: 12px;
    background: var(--p-card); color: var(--p-text); text-align: left;
    font-family: inherit; font-size: 17px; font-weight: 700; line-height: 1.2; text-transform: none; letter-spacing: 0;
    cursor: pointer; -webkit-appearance: none; appearance: none; -webkit-tap-highlight-color: transparent;
}
html.bms-pv2 .pv2-row-btn .pv2-state { margin-left: auto; font-size: 16px; font-weight: 800; }
html.bms-pv2 .pv2-row-btn.pv2-danger { color: var(--p-danger); border-color: var(--p-danger); background: var(--p-danger-bg); }

/* Add fixture */
html.bms-pv2 .pv2-search { display: block; position: relative; flex: none; margin: 0 12px 10px; }
html.bms-pv2 .pv2-search .pv2-ic { position: absolute; left: 14px; top: 14px; }
html.bms-pv2 .pv2-search input {
    display: block; width: 100%; height: 50px; margin: 0; padding: 0 14px 0 44px; border: 2px solid var(--p-field); border-radius: 12px;
    background: var(--p-card); color: var(--p-text); font-family: inherit; font-size: 16px; box-shadow: none; -webkit-appearance: none; appearance: none;
}
html.bms-pv2 .pv2-search input::placeholder { color: var(--p-text2); opacity: 1; }
html.bms-pv2 .pv2-cats { flex: none; display: flex; gap: 8px; overflow-x: auto; -webkit-overflow-scrolling: touch; padding: 0 12px 10px; scrollbar-width: none; }
html.bms-pv2 .pv2-cats::-webkit-scrollbar { display: none; }
/* two whole chips and the rounded edge of the third, at any phone width; a long name takes two lines */
html.bms-pv2 .pv2-cat {
    flex: 0 0 calc(50% - 18px); display: flex; align-items: center; justify-content: center; min-height: 48px; margin: 0; padding: 3px 10px;
    border: 2px solid var(--p-rule); border-radius: 24px; background: var(--p-card); color: var(--p-text); text-align: center;
    font-family: inherit; font-size: 16px; font-weight: 700; line-height: 1.15; text-transform: none; letter-spacing: 0;
    cursor: pointer; -webkit-appearance: none; appearance: none; -webkit-tap-highlight-color: transparent;
}
html.bms-pv2 .pv2-cat[aria-pressed="true"] { background: var(--p-ink); border-color: var(--p-ink); color: #fff; }
html.bms-pv2 .pv2-sheet-tip { flex: none; margin: 0 14px 8px; font-size: 15px; font-weight: 700; color: var(--p-text2); }
html.bms-pv2 .pv2-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
html.bms-pv2 .pv2-card {
    display: flex; flex-direction: column; min-width: 0; margin: 0; padding: 8px 10px 10px; border: 2px solid var(--p-rule); border-radius: 12px;
    background: var(--p-card); color: var(--p-text); text-align: left; font-family: inherit; text-transform: none; letter-spacing: 0;
    cursor: pointer; -webkit-appearance: none; appearance: none; -webkit-tap-highlight-color: transparent;
}
html.bms-pv2 .pv2-card .pv2-ph { display: flex; align-items: center; justify-content: center; height: 112px; margin-bottom: 6px; border-radius: 8px; background: #fff; overflow: hidden; }
html.bms-pv2 .pv2-card .pv2-ph img { display: block; width: 112px; height: 112px; object-fit: contain; }
html.bms-pv2 .pv2-card .pv2-nm { font-size: 15px; font-weight: 700; line-height: 1.25; }
html.bms-pv2 .pv2-card .pv2-pr { margin-top: auto; padding-top: 6px; font-size: 16px; font-weight: 800; }
html.bms-pv2 .pv2-cards .pv2-none { grid-column: 1 / -1; margin: 8px 2px; }

/* the chip's drop-down: store type, room size, what is in it, Change Store Type */
html.bms-pv2 .pv2-drop {
    position: fixed; z-index: 10020; left: 12px; right: 12px; top: 120px; padding: 4px 14px 14px; background: var(--p-card);
    border: 2px solid var(--p-ink); border-radius: 14px; box-shadow: 0 16px 34px rgba(40,30,10,.28); color: var(--p-text);
}
html.bms-pv2 .pv2-facts { margin: 0 0 12px; }
html.bms-pv2 .pv2-facts div { display: flex; justify-content: space-between; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--p-rule-soft); font-size: 16px; }
html.bms-pv2 .pv2-facts dt { margin: 0; font-weight: 700; }
html.bms-pv2 .pv2-facts dd { margin: 0; color: var(--p-text2); text-align: right; }

html.bms-pv2 .pv2-ask {
    position: fixed; z-index: 10040; left: 12px; right: 12px; top: 50%; transform: translateY(-50%); max-width: 420px; margin: 0 auto; padding: 18px 14px 14px;
    background: var(--p-card); border: 2px solid var(--p-ink); border-radius: 16px; box-shadow: 0 18px 40px rgba(40,30,10,.3); color: var(--p-text);
}
html.bms-pv2 .pv2-ask-t { margin: 0; font-size: 20px; line-height: 1.25; font-weight: 800; color: var(--p-text); text-transform: none; letter-spacing: 0; }
html.bms-pv2 .pv2-ask-p { margin: 8px 0 0; font-size: 16px; color: var(--p-text2); }
html.bms-pv2 .pv2-ask-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 16px; }
html.bms-pv2 .pv2-ask-btns .pv2-btn { min-height: 52px; padding: 6px 4px; white-space: normal; text-align: center; }

/* a sheet sideways: it slides in beside the strip, the strip stays in view */
html.bms-pv2 .pv2-side .pv2-sheet,
html.bms-pv2 .pv2-side #propertyPanel.pv2-open {
    left: auto; top: 0; bottom: 0; right: var(--p-strip); width: 392px; max-width: calc(100vw - var(--p-strip) - 48px); height: auto; max-height: none;
    border-top: 0; border-left: 3px solid var(--p-gold); border-radius: 0; box-shadow: -14px 0 34px rgba(40,30,10,.22);
}
html.bms-pv2 .pv2-side .pv2-sheet-head { padding: 6px 10px 6px 14px; }
html.bms-pv2 .pv2-side .pv2-search { margin: 0 10px 8px; }
html.bms-pv2 .pv2-side .pv2-search input { height: 46px; }
html.bms-pv2 .pv2-side .pv2-search .pv2-ic { top: 12px; }
html.bms-pv2 .pv2-side .pv2-cats { padding: 0 10px 8px; }
html.bms-pv2 .pv2-side .pv2-sheet-tip { display: none; }
html.bms-pv2 .pv2-side .pv2-sheet-body { padding: 0 10px 12px; }
html.bms-pv2 .pv2-side .pv2-card .pv2-ph { height: 80px; }
html.bms-pv2 .pv2-side .pv2-card .pv2-ph img { width: 80px; height: 80px; }
html.bms-pv2 .pv2-side .pv2-drop { left: 8px; right: auto; top: 62px; width: 340px; max-height: calc(var(--p-vh) - 70px); overflow-y: auto; }

/* ══════════════════════════════════════════════════
   FORM PIECES — the Save & share box and the quote screen
   ══════════════════════════════════════════════════ */
html.bms-pv2 .pv2-q-field { display: block; margin: 8px 0 0; }
html.bms-pv2 .pv2-inp {
    display: block; width: 100%; height: 48px; margin: 0; padding: 0 14px; border: 2px solid var(--p-field); border-radius: 12px; background: var(--p-card); color: var(--p-text);
    font-family: inherit; font-size: 16px; box-shadow: none; -webkit-appearance: none; appearance: none;
}
html.bms-pv2 .pv2-inp::placeholder { color: var(--p-text2); opacity: 1; }
html.bms-pv2 .pv2-inp.pv2-bad { border: 3px solid var(--p-danger); background: var(--p-danger-bg); }
html.bms-pv2 .pv2-err { display: flex; align-items: flex-start; gap: 6px; margin: 6px 0 0; font-size: 15px; line-height: 1.35; font-weight: 700; color: var(--p-text); }
html.bms-pv2 .pv2-err .pv2-ic { color: var(--p-danger); }
html.bms-pv2 .pv2-share-big { min-height: 56px; font-size: 17px; }
html.bms-pv2 .pv2-sheet-body > .pv2-sheet-note + .pv2-share-big { margin-top: 12px; }
html.bms-pv2 .pv2-or { display: flex; align-items: center; gap: 12px; margin: 14px 0 2px; font-size: 15px; font-weight: 700; color: var(--p-text2); }
html.bms-pv2 .pv2-or::before,
html.bms-pv2 .pv2-or::after { content: ""; flex: 1; height: 2px; background: var(--p-rule); }

/* ── The quote screen: a screen of its own, fields first (O9), consent boxes above Send (O2) ── */
/* above everything this screen adds (the sideways strip is 10030): the quote screen is a screen of its own */
html.bms-pv2 #quoteModal { z-index: 10050; }
html.bms-pv2 #quoteSuccess { z-index: 10051; }
html.bms-pv2 #quoteModal {
    padding: 0; flex-direction: column; align-items: stretch; justify-content: flex-start;
    background: var(--p-paper-lite); -webkit-backdrop-filter: none; backdrop-filter: none; animation: none;
    font-size: 16px; line-height: 1.45; color: var(--p-text);
}
html.bms-pv2 .pv2-q-top { flex: none; display: flex; align-items: center; gap: 10px; min-height: 60px; padding: 6px 12px; background: var(--p-paper-lite); border-bottom: 1px solid var(--p-rule); }
html.bms-pv2 .pv2-q-title { flex: 1; min-width: 0; margin: 0; font-size: 20px; line-height: 1.2; font-weight: 800; letter-spacing: -.2px; text-transform: none; color: var(--p-text); }
html.bms-pv2 .pv2-q-top .pv2-btn { flex: none; padding: 0 12px; gap: 6px; }
html.bms-pv2 #quoteModal .quote-modal {
    flex: 1; min-height: 0; width: auto; max-width: none; max-height: none; margin: 0; padding: 0 12px 24px; border-radius: 0; background: none; box-shadow: none; animation: none;
    overflow-y: auto; -webkit-overflow-scrolling: touch; overscroll-behavior: contain;
}
html.bms-pv2 #quoteModal .quote-modal::before { display: none; }
html.bms-pv2 #quoteModal #modalClose,
html.bms-pv2 #quoteModal .quote-modal > h2,
html.bms-pv2 #quoteModal .quote-modal > p:not(.pv2-q-sum),
html.bms-pv2 #quoteModal #quoteSummary,
html.bms-pv2 #quoteModal #quotePreview { display: none !important; }
/* 15px so the whole line fits on one row at 375px and wider */
html.bms-pv2 .pv2-q-sum { margin: 10px 0 0; padding: 10px 8px; border: 2px solid var(--p-gold-line); border-radius: 12px; background: var(--p-cream); font-size: 15px; line-height: 1.3; font-weight: 800; text-align: center; color: var(--p-text); }
html.bms-pv2 #layoutQuoteForm { margin: 0; }
html.bms-pv2 #layoutQuoteForm .modal-row { display: block; margin: 0; }
html.bms-pv2 #layoutQuoteForm .modal-field { margin: 8px 0 0; }
html.bms-pv2 #layoutQuoteForm .modal-field label { display: block; margin: 0 0 4px; font-size: 15px; font-weight: 700; color: var(--p-text); text-transform: none; letter-spacing: 0; }
html.bms-pv2 #layoutQuoteForm .modal-field input,
html.bms-pv2 #layoutQuoteForm .modal-field textarea {
    display: block; width: 100%; height: 48px; margin: 0; padding: 0 14px; border: 2px solid var(--p-field); border-radius: 12px; background: var(--p-card); color: var(--p-text);
    font-family: inherit; font-size: 16px; box-shadow: none; -webkit-appearance: none; appearance: none;
}
html.bms-pv2 #layoutQuoteForm .modal-field textarea { height: auto; min-height: 96px; padding: 12px 14px; line-height: 1.4; resize: vertical; }
html.bms-pv2 #layoutQuoteForm .modal-field input.pv2-bad { border: 3px solid var(--p-danger); background: var(--p-danger-bg); }
html.bms-pv2 #layoutQuoteForm ::placeholder { color: var(--p-text2); opacity: 1; }
html.bms-pv2 .pv2-fold {
    display: flex; align-items: center; justify-content: space-between; gap: 10px; width: 100%; min-height: 54px; margin: 10px 0 0; padding: 0 12px 0 16px;
    border: 2px solid var(--p-rule); border-radius: 12px; background: var(--p-card); color: var(--p-text); text-align: left;
    font-family: inherit; font-size: 16px; font-weight: 700; text-transform: none; letter-spacing: 0;
    cursor: pointer; -webkit-appearance: none; appearance: none; -webkit-tap-highlight-color: transparent;
}
html.bms-pv2 .pv2-fold[aria-expanded="true"] { border-color: var(--p-ink); }
html.bms-pv2 .pv2-fold[aria-expanded="true"] .pv2-ic { transform: rotate(180deg); }
html.bms-pv2 .pv2-fold-panel { padding-top: 2px; }
/* a consent box: the tick box itself is 44 x 44, its drawn square is 26px. The words are the page's own. */
html.bms-pv2 #layoutQuoteForm .qf-check-item {
    display: flex; align-items: flex-start; gap: 8px; margin: 8px 0 0; padding: 2px 8px 2px 2px; border: 2px solid var(--p-rule); border-radius: 12px;
    background: var(--p-card); cursor: pointer;
}
html.bms-pv2 #layoutQuoteForm .qf-check-item input {
    flex: none; width: 44px; height: 44px; margin: 0; border: 0; border-radius: 10px; cursor: pointer; -webkit-appearance: none; appearance: none;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 26 26'%3E%3Crect x='1.5' y='1.5' width='23' height='23' rx='5' fill='%23fff' stroke='%2326303b' stroke-width='3'/%3E%3C/svg%3E") center/26px 26px no-repeat;
}
html.bms-pv2 #layoutQuoteForm .qf-check-item input:checked {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 26 26'%3E%3Crect x='1.5' y='1.5' width='23' height='23' rx='5' fill='%2326303b' stroke='%2326303b' stroke-width='3'/%3E%3Cpath d='M6.5 13.5l4.5 4.5 8.5-10' fill='none' stroke='%23fff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}
html.bms-pv2 #layoutQuoteForm .qf-check-item > span,
html.bms-pv2 #layoutQuoteForm .qf-check-item input:checked + span { flex: 1; min-width: 0; padding: 11px 0; font-size: 15px; line-height: 1.45; font-weight: 400; color: var(--p-text); }
/* a link inside the sentence still gets a 44px tall tap area */
html.bms-pv2 #layoutQuoteForm .qf-check-item a { display: inline-block; margin: -12px -2px; padding: 12px 2px; font-weight: 800; color: var(--p-text); text-decoration: underline; text-underline-offset: 3px; }
html.bms-pv2 #layoutQuoteForm .qf-check-item.pv2-bad { border: 3px solid var(--p-danger); background: var(--p-danger-bg); }
html.bms-pv2 #layoutQuoteForm .modal-submit {
    display: flex; align-items: center; justify-content: center; width: 100%; min-height: 56px; margin: 12px 0 0; padding: 0 16px;
    border: 2px solid var(--p-gold-line); border-radius: 12px; background: linear-gradient(135deg, var(--p-gold-hi), var(--p-gold)); box-shadow: 0 4px 12px rgba(233,164,0,.35);
    color: var(--p-text); font-family: inherit; font-size: 17px; font-weight: 800; text-transform: none; letter-spacing: 0;
}
html.bms-pv2 #layoutQuoteForm .modal-submit:disabled { background: #EFEADC; border-color: var(--p-rule); color: var(--p-text2); box-shadow: none; opacity: 1; }
html.bms-pv2 #layoutQuoteForm #pv2ErrSend { margin-top: 10px; padding: 10px 14px; border: 2px solid var(--p-danger); border-radius: 12px; background: var(--p-cream); align-items: center; }
html.bms-pv2 #layoutQuoteForm .modal-note { margin: 10px 0 0; font-size: 15px; color: var(--p-text2); text-align: left; }
html.bms-pv2 .pv2-q-folds { padding: 0 0 4px; }
html.bms-pv2 .pv2-q-plan { margin: 10px -12px 0; border-top: 2px solid var(--p-rule); border-bottom: 2px solid var(--p-rule); background: var(--p-canvas); }
html.bms-pv2 .pv2-q-plan img { display: block; width: 100%; height: auto; margin: 0; border: 0; border-radius: 0; }
html.bms-pv2 .pv2-q-folds .qp-list { margin: 0; padding: 0; border: 0; background: none; font-size: 16px; color: var(--p-text); }
html.bms-pv2 .pv2-q-folds .qp-row { display: flex; justify-content: space-between; gap: 10px; padding: 10px 0; border-top: 0; border-bottom: 1px solid var(--p-rule-soft); font-size: 16px; }
html.bms-pv2 .pv2-q-folds .qp-price { font-weight: 800; white-space: nowrap; }
html.bms-pv2 .pv2-q-folds .qp-total { border-bottom: 0; border-top: 2px solid var(--p-ink); font-size: 17px; font-weight: 800; }

/* ── Quote sent ── */
html.bms-pv2 #quoteSuccess { padding: 0; align-items: flex-start; background: var(--p-paper-lite); -webkit-backdrop-filter: none; backdrop-filter: none; animation: none; overflow-y: auto; }
html.bms-pv2 #quoteSuccess .quote-success-content {
    display: flex; flex-direction: column; align-items: center; width: 100%; max-width: none; margin: 0; padding: 52px 20px 24px; border: 0; border-radius: 0; background: none; box-shadow: none;
    text-align: center; color: var(--p-text); animation: none;
}
html.bms-pv2 #quoteSuccess .qs-icon {
    display: flex; align-items: center; justify-content: center; width: 84px; height: 84px; margin: 0; border-radius: 50%;
    background: linear-gradient(135deg, var(--p-gold-hi), var(--p-gold)); border: 3px solid var(--p-gold-line); color: var(--p-text); font-size: 40px; font-weight: 800; line-height: 1;
}
html.bms-pv2 #quoteSuccess h2 { margin: 18px 0 0; font-size: 28px; line-height: 1.15; font-weight: 800; letter-spacing: -.3px; color: var(--p-text); text-transform: none; }
html.bms-pv2 #quoteSuccess p { margin: 12px 0 0; max-width: 34ch; font-size: 17px; color: var(--p-text); }
html.bms-pv2 #quoteSuccess .qs-hours { margin-top: 8px; font-size: 16px; font-weight: 700; color: var(--p-text2); }
html.bms-pv2 #quoteSuccess .qs-actions { display: flex; flex-direction: column-reverse; gap: 12px; width: 100%; margin: 26px 0 0; }
html.bms-pv2 #quoteSuccess .qs-actions .action-btn {
    display: flex; align-items: center; justify-content: center; width: 100%; min-height: 56px; margin: 0; padding: 0 16px; border-radius: 12px;
    font-family: inherit; font-size: 17px; font-weight: 700; text-decoration: none; text-transform: none; letter-spacing: 0; color: var(--p-text);
}
html.bms-pv2 #quoteSuccess .qs-actions .action-btn.primary { border: 2px solid var(--p-gold-line); background: linear-gradient(135deg, var(--p-gold-hi), var(--p-gold)); font-weight: 800; box-shadow: 0 4px 12px rgba(233,164,0,.35); }
html.bms-pv2 #quoteSuccess .qs-actions .action-btn.secondary { border: 2px solid var(--p-ink); background: var(--p-card); }

@media (prefers-reduced-motion: reduce) {
    html.bms-pv2 .configurator-page * { transition: none !important; scroll-behavior: auto !important; }
}
