/* v9 true preview */
.tp-stage{position:relative;z-index:1;width:100%;max-width:880px;margin:0 auto}
.tp-tabs{display:flex;gap:.35rem;justify-content:safe center;flex-wrap:nowrap;margin:0 0 1rem;overflow-x:auto;max-width:100%;min-width:0;width:100%;box-sizing:border-box;padding-inline:.15rem;-webkit-overflow-scrolling:touch;scrollbar-width:thin}
.tp-tab{white-space:nowrap;flex:0 0 auto;font:600 10px/1 system-ui,sans-serif;letter-spacing:.16em;text-transform:uppercase;color:rgba(243,238,228,.75);
 background:rgba(0,0,0,.28);border:1px solid rgba(243,238,228,.25);padding:.6rem .9rem;border-radius:999px;cursor:pointer}
.tp-tab.is-on{background:rgba(243,238,228,.92);color:#1a1410;border-color:transparent}
.tp-canvas-wrap{width:100%}
.tp-canvas{display:block;width:100%;border-radius:2px}
.tp-canvas[data-tp-canvas="wall"],.tp-canvas[data-tp-canvas="edge"]{box-shadow:0 18px 50px rgba(0,0,0,.35)}
.tp-canvas[data-tp-canvas="edge"]{background:#E9E4DA}
.tp-dims{margin:.9rem 0 .2rem;text-align:center;font:500 12px/1.4 system-ui,sans-serif;letter-spacing:.06em;color:rgba(243,238,228,.9)}
.tp-scale-note{margin:0;text-align:center;font:italic 1rem/1.4 "Cormorant Garamond",Georgia,serif;color:rgba(243,238,228,.7)}
.product-stage .render-honest{position:relative;z-index:1}
.tp-group{display:grid;gap:.5rem}
.tp-seg{display:grid;grid-template-columns:repeat(3,1fr);gap:.45rem}
.tp-opt,.tp-size{font:inherit;text-align:left;background:#fff;border:1px solid rgba(26,20,16,.18);padding:.6rem .65rem;cursor:pointer;color:var(--ink,#1a1410);border-radius:3px;line-height:1.25}
.tp-opt{font-size:.82rem}
.tp-opt small{display:block;font-size:.7rem;color:var(--mute,#6f665c);margin-top:.2rem}
.tp-opt.is-on,.tp-size.is-on{border-color:var(--ink,#1a1410);box-shadow:inset 0 0 0 1px var(--ink,#1a1410);background:#FBF8F2}
.tp-sizes{display:grid;grid-template-columns:repeat(auto-fill,minmax(6.6rem,1fr));gap:.45rem}
.tp-size b{display:block;font-size:.86rem;font-weight:600}
.tp-size span{display:block;font-size:.82rem}
.tp-size em{display:inline-block;margin-top:.25rem;font-style:normal;font-size:.62rem;letter-spacing:.08em;text-transform:uppercase;padding:.12rem .35rem;border-radius:2px}
.tp-size.is-native em{background:#E3EFE1;color:#1F5A2A}
.tp-size.is-upscaled-pending em,.tp-size.is-upscaled-approved em{background:#F5EBD3;color:#7A5410}
.tp-size.is-held{opacity:.62}
.tp-size.is-held em{background:#EEE7E4;color:#6B3B2E}
.tp-class{font-size:.78rem;color:var(--mute,#6f665c);margin:.1rem 0 0}
.tp-frame-filter{font-size:.78rem;color:var(--mute,#6f665c);margin:.1rem 0 .3rem}
.frame-real[hidden]{display:none!important}
.tp-buy{margin:0 0 .4rem}
.tp-status{font-size:.82rem;margin:0 0 .6rem;padding:.45rem .6rem;border-left:3px solid #999;background:#fff}
.tp-status.is-native{border-color:#2E7D3A}
.tp-status.is-upscaled-pending,.tp-status.is-upscaled-approved{border-color:#B07A12}
.tp-status.is-held{border-color:#8E3B2A}
.tp-receive{margin:0 0 1.6rem;padding:1rem 1.1rem;background:#fff;border:1px solid rgba(26,20,16,.1);max-width:30rem}
.tp-receive h2{font:400 1.25rem/1.2 "Playfair Display",Georgia,serif;margin:0 0 .6rem}
.tp-receive ul{margin:0 0 .6rem;padding-left:1.1rem;font-size:.86rem;line-height:1.45}
.tp-receive li{margin:.2rem 0}
.tp-receive-note{font-size:.75rem;color:var(--mute,#6f665c);margin:0}
@media (max-width:860px){
 .tp-seg{grid-template-columns:1fr}
 .tp-tab{padding:.55rem .7rem;letter-spacing:.1em}
}
.tp-canvas[hidden]{display:none!important}
.product-stage:has(.tp-stage){flex-direction:column;justify-content:flex-start;align-items:stretch;gap:.6rem;padding-top:6.2rem}
.product-stage:has(.tp-stage) .render-honest{text-align:center;max-width:40rem;margin:0 auto}
.product-stage:has(.tp-stage) .tp-stage{flex-shrink:0}
.product-stage:has(.tp-stage) .render-honest{position:static;transform:none;left:auto;right:auto;bottom:auto;margin:.2rem auto 0}
.tp-signup{margin:1.6rem 0 0;padding:1rem 1.1rem;border:1px dashed rgba(26,20,16,.25);max-width:30rem}
.tp-signup h2{font:400 1.1rem/1.2 "Playfair Display",Georgia,serif;margin:0 0 .6rem}
.tp-signup-form{display:flex;gap:.5rem;margin:0 0 .5rem}
.tp-signup-form input{flex:1;min-width:0;padding:.7rem;border:1px solid rgba(26,20,16,.25);background:#fff;font:inherit}
.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0)}
/* v9 mobile: keep the stage inside the viewport (canvas intrinsic width was widening the grid track) */
.product-stage:has(.tp-stage),.product-label{min-width:0;max-width:100%}
.tp-canvas-wrap,.tp-canvas{max-width:100%}
.tp-stage{min-width:0}
/* v9.1 customer-clean picker: dimensions + price only */
.tp-sizes{grid-template-columns:repeat(auto-fill,minmax(9.2rem,1fr))}
.tp-size{font-size:.9rem;font-weight:500;white-space:nowrap;text-align:center}
.tp-soon{grid-column:1/-1;margin:0;font-size:.92rem;color:rgba(26,20,16,.75)}
.tp-stage-price{display:flex;flex-wrap:wrap;justify-content:center;align-items:baseline;gap:.35rem .7rem;margin:.75rem 0 .2rem;text-align:center;color:#F3EEE4}
.tp-stage-sum{font-size:.82rem;letter-spacing:.02em;opacity:.85}
.tp-stage-price strong{font:500 1.35rem/1 "Playfair Display",Georgia,serif;color:#fff}
.frame-real .tp-frame-price{display:block;font-size:.72rem;font-weight:600;margin-top:.15rem;color:var(--ink,#1a1410)}
[data-add-cart-v9][disabled]{opacity:.45;cursor:not-allowed}
/* ---- v9.2 UX: simple steps, big targets, clear selection, one price line, sticky bar ---- */
.tp-step{font-weight:600;letter-spacing:.12em}
.tp-opt,.tp-size{min-height:48px;font-size:.95rem;position:relative}
.tp-seg{display:grid;gap:.5rem}
.tp-opt small{display:block;font-size:.78rem;opacity:.7;margin-top:.15rem}
.tp-opt.is-on,.tp-size.is-on{background:#1a1410;color:#F3EEE4;border-color:#1a1410;box-shadow:none}
.tp-opt.is-on small{opacity:.8;color:#F3EEE4}
.tp-opt.is-on::after,.tp-size.is-on::after{content:"✓";position:absolute;right:.6rem;top:50%;transform:translateY(-50%);font-size:.85rem}
.tp-size{padding-right:1.6rem}
.tp-sizes{grid-template-columns:repeat(auto-fill,minmax(10rem,1fr))}
.frame-real{min-height:48px}
.frame-real.is-on{outline:3px solid #1a1410;outline-offset:-3px}
.frame-real .tp-frame-price{font-size:.8rem}
/* one consistent price line under the preview: summary truncates, price never wraps */
.tp-stage-price{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:baseline;gap:.75rem;max-width:34rem;margin:.8rem auto .2rem;padding:0 .25rem;text-align:left}
.tp-stage-sum{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;min-width:0}
.tp-stage-price strong{white-space:nowrap}
.tp-stage-price strong[hidden]{display:none}
.tp-dims{font-size:.8rem;opacity:.8;text-align:center;margin:.1rem 0 0}
/* buy box */
.tp-buy{border:1px solid rgba(26,20,16,.15);background:#fff;padding:1rem;border-radius:4px;margin:1.2rem 0}
.tp-buy-sum{margin:0 0 .2rem;font-size:.9rem;opacity:.8}
.tp-buy .price{margin:.1rem 0 .3rem;font-size:2rem}
.tp-buy .btn-add{display:block;width:100%;min-height:52px;margin:.8rem 0 .4rem;font-size:.9rem}
.btn-add.is-added,[data-sticky-add].is-added{background:#1F5A2A;border-color:#1F5A2A}
.tp-added{margin:.2rem 0;font-size:.9rem}
.tp-preview-note{font-size:.78rem;opacity:.7;margin:.3rem 0 0}
.tp-receive h2{font-size:1.15rem}
.tp-receive li{margin:.2rem 0}
/* coming soon */
.tp-soon-box{border:1px solid rgba(26,20,16,.15);background:#fff;padding:1.1rem 1rem;border-radius:4px;margin:1.2rem 0}
.tp-soon-box h2{margin:0 0 .4rem;font-size:1.3rem}
.tp-soon-box p{margin:0}
/* sticky price + add bar (phones only, after the buy box scrolls away) */
.tp-sticky{display:none}
@media (max-width:820px){
 .tp-sticky{display:flex;position:fixed;left:0;right:0;bottom:0;z-index:60;gap:.75rem;align-items:center;justify-content:space-between;
 padding:.6rem .9rem calc(.6rem + env(safe-area-inset-bottom));background:#1a1410;color:#F3EEE4;box-shadow:0 -6px 18px rgba(0,0,0,.25);
 transform:translateY(110%);transition:transform .2s ease}
 .tp-sticky.is-shown{transform:none}
 .tp-sticky-txt{min-width:0;display:flex;flex-direction:column}
 .tp-sticky-txt span{font-size:.78rem;opacity:.8;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
 .tp-sticky-txt strong{font-size:1.15rem}
 .tp-sticky .btn-stripe{min-height:46px;padding:0 1.3rem;background:#F3EEE4;color:#1a1410;border-color:#F3EEE4;white-space:nowrap}
 body{padding-bottom:4.5rem}
 .product-label{padding-bottom:5.5rem;scroll-margin-top:5rem}
 .product-stage:has(.tp-stage){padding-bottom:5.2rem}
}
/* v9.2: one frame name line, primary actions, bigger cart controls */
.tp-pickers .cadre-reel{display:none!important}
.tp-pickers .frame-live-label + .frame-live-label{display:none}
.tp-pickers .frame-live-label{margin:.2rem 0 .6rem}
.tp-buy .btn-add{background:#1a1410;border-color:#1a1410;color:#F3EEE4}
.tp-sticky .btn-stripe[data-sticky-add]{background:#F3EEE4;color:#1a1410;border-color:#F3EEE4}
.tp-sticky .btn-stripe[data-sticky-add].is-added{background:#2F7A3E;color:#fff;border-color:#2F7A3E}
.cart-qty button{min-width:44px;min-height:44px;font-size:1.1rem;border:1px solid rgba(26,20,16,.3);background:#fff;border-radius:3px}
.cart-qty [data-cart-qty]{display:inline-block;min-width:2rem;text-align:center;font-weight:600}
.cart-remove{min-height:44px}
.btn-stripe:not([disabled]):not([aria-disabled="true"]){opacity:1;cursor:pointer}
[data-tp-frames] .cadre-reel{display:none!important}
[data-tp-frames] .frame-live-label + .frame-live-label{display:none}
.tp-soon-page .tp-stage-price{display:none}
html[lang] [data-tp-frames] .frame-live-label .cadre-reel[data-en],html[lang] [data-tp-frames] .frame-live-label .cadre-reel[data-fr]{display:none!important}

/* v9.3 cart: one clean column per line, totals on their own lines, one clear primary action */
.cart-line{align-items:start}
.cart-line img{width:84px;border:5px solid #1A1410}
.cart-line strong{font-weight:600}
.cart-line p{margin:.25rem 0}
.cart-qty{display:flex;align-items:center;gap:.4rem;flex-wrap:nowrap;white-space:nowrap}
.cart-unit{color:rgba(26,20,16,.7);font-size:.95rem}
.cart-line-total{font-size:1.1rem}
.cart-subtotal{display:flex;justify-content:space-between;align-items:baseline;font-size:1.25rem;margin:1.2rem 0 .2rem;max-width:40rem}
.cart-note{color:rgba(26,20,16,.7);font-size:.95rem;margin:0 0 .6rem}
.cart-actions .btn-pay{order:-1;flex:1 1 100%;min-height:52px;font-size:1rem}
.cart-actions .btn-stripe{min-height:48px}
@media (min-width:820px){.cart-actions .btn-pay{flex:0 0 auto;min-width:16rem}}

/* v9.4 contract summary before payment (Québec CPA 54.4) */
.contract{border:1px solid rgba(196,165,116,.7);background:#fff;padding:1rem 1.1rem;margin:1.4rem 0;max-width:40rem;font-size:.95rem;line-height:1.5}
.contract h2{font-size:1.15rem;margin:0 0 .6rem}
.contract ul{padding-left:1.1rem;margin:.4rem 0}
.contract p{margin:.4rem 0}
.contract-accept{display:flex;gap:.6rem;align-items:flex-start;font-weight:600;margin:.8rem 0 .4rem;cursor:pointer}
.contract-accept input{width:22px;height:22px;flex:0 0 22px;margin-top:.1rem}
.contract-links{font-size:.9rem}
.linklike{background:none;border:0;padding:0;color:inherit;text-decoration:underline;cursor:pointer;font:inherit}
.btn-pay[disabled]{opacity:.45;cursor:not-allowed}
@media print{body.print-contract *{visibility:hidden}body.print-contract .contract,body.print-contract .contract *{visibility:visible}body.print-contract .contract{position:absolute;top:0;left:0;border:0}}
/* Fix 18.6 (Elwood 24 Nov 22:12): light walls (White Gallery #EDE8E0, Home Office #C9BBA8) — the caption under the frame
   was white on cream. Deep turquoise there (contrast 8.2:1 on cream, 5.3:1 on the office taupe). Dark rooms unchanged. */
.product-stage.room--gallery,.product-stage.room--office{--stage-ink:#064A4E}
.room--gallery .tp-stage-price,.room--office .tp-stage-price,
.room--gallery .tp-stage-sum,.room--office .tp-stage-sum,
.room--gallery .tp-stage-price strong,.room--office .tp-stage-price strong,
.room--gallery .tp-dims,.room--office .tp-dims,
.room--gallery .tp-preview-note,.room--office .tp-preview-note{color:var(--stage-ink);opacity:1;text-shadow:none}
.room--gallery .tp-tab,.room--office .tp-tab{color:var(--stage-ink);background:rgba(255,255,255,.55);border-color:rgba(6,74,78,.45)}
.room--gallery .tp-tab.is-on,.room--office .tp-tab.is-on{background:var(--stage-ink);color:#F3EEE4;border-color:transparent}
.room--gallery .tp-scene span,.room--office .tp-scene span{color:var(--stage-ink)}

/* v5s: compact size chips next to frame combos and in the sticky buy bar */
.tp-combo-sizes{margin:.7rem 0 0}
.tp-combo-sizes .picker-label{margin:0 0 .4rem}
.tp-size-chips,.tp-sticky-sizes{display:flex;flex-wrap:wrap;gap:.35rem}
.tp-size-chip{flex:0 0 auto;font:600 12px/1.1 system-ui,sans-serif;letter-spacing:.02em;color:inherit;background:rgba(255,255,255,.06);border:1px solid rgba(26,20,16,.28);border-radius:999px;padding:.4rem .7rem;min-height:36px;cursor:pointer}
.tp-size-chip.is-on{background:#1a1410;color:#F3EEE4;border-color:#1a1410}
.tp-size-chip:focus-visible{outline:2px solid currentColor;outline-offset:2px}
.tp-size-note{margin:.4rem 0 0;font-size:.8rem;line-height:1.3;opacity:.85}
.product-label .tp-size-chip{background:#fff;color:#1a1410;border-color:rgba(26,20,16,.28)}
.product-label .tp-size-chip.is-on{background:#1a1410;color:#F3EEE4;border-color:#1a1410}
@media (max-width:820px){
 .tp-sticky{flex-direction:column;align-items:stretch;gap:.4rem}
 .tp-sticky-row{display:flex;align-items:center;justify-content:space-between;gap:.75rem;min-width:0}
 .tp-sticky-sizes{flex-wrap:wrap;overflow:visible;width:100%;padding-bottom:0}
 .tp-sticky-sizes .tp-size-chip{background:rgba(243,238,228,.1);color:#F3EEE4;border-color:rgba(243,238,228,.35);min-height:32px;padding:.3rem .65rem;font-size:11px}
 .tp-sticky-sizes .tp-size-chip.is-on{background:#F3EEE4;color:#1a1410;border-color:#F3EEE4}
 body{padding-bottom:7.6rem}
 .product-label{padding-bottom:8.4rem}
 .product-stage:has(.tp-stage){padding-bottom:8rem}
}


/* v5t: hide legacy '2. Size' list; chips under combinations stay. Sticky size chips only in In-the-room view. */
.tp-group:has([data-tp-sizes]){display:none!important}
.tp-sticky-sizes{display:none!important}
.tp-sticky.is-wall-view .tp-sticky-sizes{display:flex!important;flex-wrap:wrap;overflow:visible;width:100%;padding-bottom:0}
.tp-canvas-wrap{position:relative}
.tp-wall-fade{position:absolute;inset:0;width:100%;height:100%;pointer-events:none;opacity:1;transition:opacity .35s ease}

/* v5v-sticky-clearance: keep ADD / price clear of a bottom-right overlay */
@media (max-width:860px){
  .tp-sticky{z-index:70;padding-right:4.2rem;}
}
