/* Version 4 only: V3 look, one persistent offer, black footer. */
body.pxp-version-4 .pxp-v3-dock {visibility:visible;}
body.pxp-version-4 .pxp-v3-dock.is-visible {pointer-events:auto;opacity:1;}
body.pxp-version-4 .pxp-section-hero .pxp-product-by,
body.pxp-version-4 .pxp-hero-float {display:none!important}
body.pxp-version-4 .pxp-section-hero .pxp-hero-copy {padding-bottom:clamp(10px,2vw,24px)}
body.pxp-version-4 .pxp-section-hero .pxp-hero-sub {max-width:760px;margin-left:auto;margin-right:auto}
body.pxp-version-4 .pxp-section-hero .pxp-hero-media {margin-top:clamp(12px,3vw,26px)}
/* Full images on V4's hero gallery, never crop vertical screenshots. */
body.pxp-version-4 .pxp-section-hero .pxp-slider-window {height:clamp(280px,64vh,720px)!important;aspect-ratio:auto!important;overflow:hidden;}
body.pxp-version-4 .pxp-section-hero .pxp-slider-track {height:100%;}
body.pxp-version-4 .pxp-section-hero .pxp-slide {display:flex;justify-content:center;align-items:center;height:100%;}
body.pxp-version-4 .pxp-section-hero .pxp-slide img {display:block;max-width:100%;width:100%;height:100%!important;object-fit:contain!important;}
body.pxp-version-4 .pxp-footer {background:#0c111b!important;border-top:1px solid #283347!important;box-shadow:none!important;padding-bottom:calc(var(--pxp-v3-dock-occupied,125px) + 24px)!important;}
body.pxp-version-4 .pxp-footer,
body.pxp-version-4 .pxp-footer p,
body.pxp-version-4 .pxp-footer span,
body.pxp-version-4 .pxp-footer strong,
body.pxp-version-4 .pxp-footer h2 {color:#e7ecf5!important;}
body.pxp-version-4 .pxp-footer .pxp-footer-brand p,
body.pxp-version-4 .pxp-footer .pxp-footer-bottom,
body.pxp-version-4 .pxp-footer small {color:#a9b6c8!important;}
body.pxp-version-4 .pxp-footer a {color:#e7ecf5!important;text-decoration:none;}
body.pxp-version-4 .pxp-footer a:hover {color:#fff!important;}
body.pxp-version-4 .pxp-footer-bottom {border-top:1px solid #30394a!important;}
body.pxp-version-4 .pxp-footer-brand img {max-width:64px;max-height:64px;object-fit:contain;}
@media(max-width:620px){
  body.pxp-version-4 .pxp-section-hero .pxp-slider-window {height:clamp(290px,62vh,650px)!important;}
  body.pxp-version-4 .pxp-section-hero .pxp-slider-window {border-radius:14px;}
  body.pxp-version-4 .pxp-footer {padding-bottom:calc(var(--pxp-v3-dock-occupied,105px) + 16px)!important;}
}

/* V4 hero sliders can exchange their vertical positions independently of media order. */
body.pxp-version-4 .pxp-section-hero .pxp-hero-second-slider { margin-top:clamp(12px,3vw,26px); }
/* V4 price editor: independent of the V3 offer, with or without comparison. */
body.pxp-version-4 .pxp-v4-offer[data-theme="light"] .pxp-v3-dock-ref-content {
  grid-template-areas:"badge saving" "old old" "price price";
  align-content:center;row-gap:4px;
}
body.pxp-version-4 .pxp-v4-offer[data-theme="light"] .pxp-v3-dock-ref-content:has(.pxp-v3-dock-ref-save) {
  grid-template-areas:"badge saving" "old old" "price price";
}
body.pxp-version-4 .pxp-v4-offer[data-theme="light"] .pxp-v3-dock-ref-content:not(:has(.pxp-v3-dock-ref-save)) {
  grid-template-areas:"badge badge" "old old" "price price";
}
body.pxp-version-4 .pxp-v4-offer[data-theme="light"] .pxp-v3-dock-ref-save {
  justify-self:start;margin:0;white-space:nowrap;
}
body.pxp-version-4 .pxp-v4-offer .pxp-v3-dock-discount {white-space:nowrap;}
body.pxp-version-4 .pxp-v4-offer .pxp-v3-dock-assurance {line-height:1.3;}
@media (max-width:359px) {
  body.pxp-version-4 .pxp-v4-offer[data-theme="light"] .pxp-v3-dock-ref-content:has(.pxp-v3-dock-ref-save) {
    grid-template-areas:"badge" "saving" "old" "price";
    grid-template-columns:minmax(0,1fr);
  }
}
