/* Page-local v3 content hierarchy. Shared preview rules and form styles are retained. */
@layer ojmPreviewTypography {
  body[data-ojm-preview="v2"] #ojm-bathroom-v56 h1 {font-size:46px!important;line-height:1.15!important}
  body[data-ojm-preview="v2"] #ojm-bathroom-v56 h2 {font-size:32px!important;line-height:1.25!important}
  body[data-ojm-preview="v2"] #ojm-bathroom-v56 h3 {font-size:24px!important;line-height:1.3!important}
  body[data-ojm-preview="v2"] #ojm-bathroom-v56 :is(p,li,dt,dd,input,select,textarea) {font-size:16px!important}
  body[data-ojm-preview="v2"] #ojm-bathroom-v56 :is(figcaption,.v3-image-caption,label) {font-size:15px!important;line-height:1.6!important}
  body[data-ojm-preview="v2"] #ojm-bathroom-v56 :is(.hero-highlights li,.eyebrow,.intent-kicker) {font-size:13px!important;line-height:1.5!important}
  body[data-ojm-preview="v2"] #ojm-bathroom-v56 #faq summary {font-size:17px!important;line-height:1.6!important}
  @media(max-width:767px) {
    body[data-ojm-preview="v2"] #ojm-bathroom-v56 h1 {font-size:34px!important;line-height:1.18!important}
    body[data-ojm-preview="v2"] #ojm-bathroom-v56 h2 {font-size:28px!important}
    body[data-ojm-preview="v2"] #ojm-bathroom-v56 h3 {font-size:23px!important;line-height:1.35!important}
  }
}
#ojm-bathroom-v56 {--bath-body:16px;--bath-h1:46px;--bath-h2:32px;--bath-h3:24px;--bath-space:44px}
#ojm-bathroom-v56 :is(h2,h3) {text-wrap:balance}
#ojm-bathroom-v56 :is(p,li,dd,figcaption) {overflow-wrap:break-word}
#ojm-bathroom-v56 .hero-size-workspace .hero-heading {margin-bottom:18px}
#ojm-bathroom-v56 .hero-size-workspace .product-intro #product-title {margin:8px 0 0;max-width:22ch}
#ojm-bathroom-v56 .hero-size-workspace .product-description {margin-bottom:8px;max-width:55ch}
#ojm-bathroom-v56 .hero-size-workspace .hero-highlights {gap:6px;margin-top:8px}
#ojm-bathroom-v56 .hero-size-workspace .hero-highlights li {padding:5px 9px;border-radius:3px;box-shadow:none;cursor:default}
#ojm-bathroom-v56 .hero-size-workspace .product-shortcuts {margin-top:14px;gap:18px}
#ojm-bathroom-v56 .hero-size-workspace .hero-selection {gap:32px}
#ojm-bathroom-v56 #hero-render {aspect-ratio:auto;height:clamp(280px,48svh,480px)}
#ojm-bathroom-v56 .render-window img {object-fit:contain}
#ojm-bathroom-v56 .v3-image-caption,
#ojm-bathroom-v56 .v3-demo-figure figcaption {display:block;width:100%;max-width:70ch;margin:12px 0 0;color:#48584d;line-height:1.6}
#ojm-bathroom-v56 .v3-size-tip {padding:10px 12px;border-left:3px solid #58715e;background:#edf2e9;color:#23392b;font-weight:600;margin:12px 0 8px;max-width:100%}
#ojm-bathroom-v56 .display-unit-label {gap:14px;margin:10px 0}
#ojm-bathroom-v56 #display-unit {min-width:0;flex:1;max-width:100%}
#ojm-bathroom-v56 .bath-light-decisions {grid-template-columns:repeat(2,minmax(0,1fr));gap:28px}
#ojm-bathroom-v56 .bath-light-compare-grid {gap:28px;margin-block:24px 28px}
#ojm-bathroom-v56 .bath-light-compare-grid figcaption strong {display:block;margin-bottom:6px}
#ojm-bathroom-v56 :is(.bath-light-crop,.ab-render-crop) img {width:200%;max-width:none;height:100%;object-fit:contain}
#ojm-bathroom-v56 .bath-fit-note {margin:24px 0 0;max-width:100%}
#ojm-bathroom-v56 .bath-fit-grid h3 {margin-top:0}
#ojm-bathroom-v56 .ab-render-grid {gap:28px}
#ojm-bathroom-v56 .ab-render-panel {min-width:0}
#ojm-bathroom-v56 .ab-render-panel h3 {margin-bottom:12px}
#ojm-bathroom-v56 .ab-diagram > figcaption {margin-top:18px;max-width:78ch}
#ojm-bathroom-v56 .v3-placement-details {padding-top:14px;margin-block:14px;border-top:1px solid #c9d2ca}
#ojm-bathroom-v56 .v3-placement-details > summary {min-height:44px;cursor:pointer;color:#29483f}
#ojm-bathroom-v56 .v3-placement-details fieldset {margin-top:18px}
#ojm-bathroom-v56 .feature-split {gap:28px;padding:28px;margin-block:32px;min-height:0;align-items:start}
#ojm-bathroom-v56 .feature-copy {padding:12px 0;min-width:0}
#ojm-bathroom-v56 .raster-demo {display:flex;flex-direction:column;align-items:center;gap:10px}
#ojm-bathroom-v56 .v3-demo-figure {width:100%;max-width:420px;margin:0}
#ojm-bathroom-v56 .v3-demo-figure .render-frame {aspect-ratio:auto;height:clamp(240px,32svh,350px);flex:none}
#ojm-bathroom-v56 .v3-demo-figure figcaption {margin-bottom:8px}
#ojm-bathroom-v56 .raster-demo .mirror-touch-hint {max-width:100%;text-align:center;margin:0;white-space:normal}
#ojm-bathroom-v56 .raster-demo .mirror-touch-control {flex:none;margin:0}
#ojm-bathroom-v56 .bath-after-shower {max-width:850px;margin-block:24px}
#ojm-bathroom-v56 .bath-after-shower figcaption {max-width:78ch}
#ojm-bathroom-v56 .bath-demister header {max-width:74ch}
#ojm-bathroom-v56 .v3-order-note {margin-top:24px;padding:24px;border-left:3px solid #58715e;background:#edf2e9}
#ojm-bathroom-v56 .v3-order-note p {margin-bottom:0;max-width:78ch}
#ojm-bathroom-v56 .spec-row {min-width:0}
#ojm-bathroom-v56 #panel-warranty p {max-width:74ch}
@media(max-height:760px) {#ojm-bathroom-v56 .raster-workspace .hero-preview {position:static}}
@media(max-width:767px) {
  #ojm-bathroom-v56 {--bath-body:16px;--bath-h1:34px;--bath-h2:28px;--bath-h3:23px;--bath-space:32px}
  /* Bound the flex item before flattening the old grids. Auto cross-axis margins
     and the carousel's intrinsic width must not size the whole hero. */
  #ojm-bathroom-v56 #site-main > .wrap:first-child {width:100%;max-width:100%;min-width:0;box-sizing:border-box}
  #ojm-bathroom-v56 .raster-workspace {display:flex;flex-direction:column;align-items:stretch;gap:12px;width:100%;max-width:100%;min-width:0;box-sizing:border-box}
  #ojm-bathroom-v56 .raster-workspace :is(.hero-heading,.product-intro,.hero-selection) {display:contents}
  #ojm-bathroom-v56 .raster-workspace .hero-heading > .eyebrow {order:0;margin:0}
  #ojm-bathroom-v56 .hero.hero-size-workspace.raster-workspace .product-intro #product-title {order:1;align-self:stretch;margin:0;width:100%;max-width:100%;min-width:0;white-space:normal}
  #ojm-bathroom-v56 .raster-workspace .hero-preview {order:2;position:static;align-self:stretch;min-width:0;width:100%;max-width:100%;box-sizing:border-box}
  #ojm-bathroom-v56 .raster-workspace .hero-options {order:3;width:100%;max-width:100%;min-width:0;box-sizing:border-box}
  #ojm-bathroom-v56 .raster-workspace .product-description {order:4;margin:8px 0 0;width:100%;max-width:100%;min-width:0}
  #ojm-bathroom-v56 .raster-workspace .hero-highlights {order:5;margin:0;gap:6px;width:100%;max-width:100%;min-width:0;flex-wrap:wrap}
  #ojm-bathroom-v56 .raster-workspace .hero-highlights li {min-width:0;max-width:100%;white-space:normal}
  #ojm-bathroom-v56 .raster-workspace .product-shortcuts {order:6;margin:0;flex-wrap:wrap;width:100%;max-width:100%;min-width:0}
  #ojm-bathroom-v56 .raster-workspace #product-icon-strip {order:7;margin-top:8px}
  #ojm-bathroom-v56 .raster-workspace :is(#size-gallery,.render-stage,#size-config,.size-group,.combined-sizes,.size-quote-action,#product-panels) {min-width:0;max-width:100%;box-sizing:border-box}
  #ojm-bathroom-v56 .raster-workspace :is(#size-gallery,.render-stage,#size-config,.size-group) {width:100%}
  #ojm-bathroom-v56 .raster-workspace .size-group {min-inline-size:0}
  #ojm-bathroom-v56 .raster-workspace #size-gallery .gallery-strip {display:grid;grid-template-columns:28px minmax(0,1fr) 28px;gap:8px;width:100%;min-width:0;max-width:100%;box-sizing:border-box}
  #ojm-bathroom-v56 .raster-workspace #size-gallery .thumbs {min-width:0;max-width:100%;width:auto;overflow-x:auto}
  #ojm-bathroom-v56 .raster-workspace :is(#hero-image-note,.v3-size-tip,.size-group .hint,#quote-size-label,.display-unit-label) {width:100%;max-width:100%;min-width:0;box-sizing:border-box;white-space:normal}
  #ojm-bathroom-v56 #hero-render {height:clamp(220px,31svh,280px);max-height:none}
  #ojm-bathroom-v56 .render-caption {max-width:calc(100% - 20px);top:10px;left:10px}
  #ojm-bathroom-v56 .v3-image-caption {margin-top:10px}
  #ojm-bathroom-v56 .hero-preview .gallery-strip {margin-bottom:0}
  #ojm-bathroom-v56 .bath-light-decisions {grid-template-columns:1fr;gap:20px}
  #ojm-bathroom-v56 .feature-split {padding:20px;gap:18px;margin-block:24px}
  #ojm-bathroom-v56 .feature-copy {padding:0}
  #ojm-bathroom-v56 .v3-demo-figure {max-width:100%}
  #ojm-bathroom-v56 .v3-demo-figure .render-frame {height:260px}
  #ojm-bathroom-v56 .v3-order-note {padding:20px}
  #ojm-bathroom-v56 .bath-fit-note {padding:18px}
  #ojm-bathroom-v56 .bath-after-shower {margin-block:20px}
}
