/* Scoped presentation. Native MegaProduct calculations and fields remain untouched. */
body#product .vd-pdp-v59 .vd-gallery-single-v59 .vd-product-gallery__thumbs{display:none!important}
@media(min-width:1024px){
 body#product .vd-pdp-v59 .vd-gallery-side-v59{display:grid!important;grid-template-columns:80px minmax(0,1fr)!important;gap:12px;align-items:start}
 body#product .vd-pdp-v59 .vd-gallery-side-v59>.vd-product-gallery__row{grid-column:1/-1}
 body#product .vd-pdp-v59 .vd-gallery-side-v59 .vd-product-gallery__row{display:grid!important;grid-template-columns:80px minmax(0,1fr)!important;gap:12px;align-items:start}
 body#product .vd-pdp-v59 .vd-gallery-side-v59 .vd-product-gallery__cover{grid-column:2;grid-row:1;width:100%!important;max-width:100%!important}
 body#product .vd-pdp-v59 .vd-gallery-side-v59 .vd-product-gallery__thumbs{grid-column:1;grid-row:1;width:80px!important;max-width:80px!important;margin:0!important;padding:0!important}
 body#product .vd-pdp-v59 .vd-gallery-side-v59 #product-images-thumbs{width:80px!important;min-height:0!important;max-height:440px!important;margin:0!important}
 /* Warehouse positions .swiper-vertical absolutely; keep this slider in normal flow. */
 body#product #main-product-wrapper.vd-pdp-v59 .vd-gallery-side-v59 #product-images-thumbs{position:relative!important;inset:auto!important;float:none!important}
 body#product #main-product-wrapper.vd-pdp-v59 .vd-gallery-side-v59 .vd-product-gallery__thumbs>.js-qv-mask{width:100%!important;max-width:100%!important;height:auto!important;min-height:0!important;margin:0!important;padding:0!important}
 body#product #main-product-wrapper.vd-pdp-v59 .vd-gallery-side-v59 #product-images-thumbs .swiper-wrapper{flex-direction:column!important}
 body#product #main-product-wrapper.vd-pdp-v59 .vd-gallery-side-v59 #product-images-thumbs .swiper-slide{width:80px!important;height:80px!important;margin-bottom:10px!important;flex-shrink:0}
 body#product .vd-pdp-v59 .vd-gallery-side-v59 .thumb-container{min-height:0!important;height:80px!important}
 body#product .vd-pdp-v59 .vd-gallery-side-v59 .thumb-container img{height:76px!important;width:76px!important;object-fit:contain}
}
@media(max-width:1023px){
 body#product .vd-pdp-v59 .vd-product-gallery,body#product .vd-pdp-v59 .vd-product-gallery__row{display:flex!important;flex-direction:column!important;gap:10px}
 body#product .vd-pdp-v59 .vd-product-gallery__cover{order:0;width:100%!important;max-width:100%!important}
 body#product .vd-pdp-v59 .vd-product-gallery__thumbs{order:1;width:100%!important;max-width:100%!important}
 body#product #main-product-wrapper.vd-pdp-v59 #product-images-thumbs .swiper-wrapper{flex-direction:row!important}
}
/* :has hides the misleading initial price before JS starts; the class is a fallback. */
body#product .vd-pdp-v59:has(#megaproduct) .product-prices,
body#product .vd-mega-v59 .product-prices,
body#product .vd-mega-v59 .vd-payment-discount,
body#product .vd-mega-v59 .vd-product-buy .col-add-btn,
body#product .vd-mega-v59 .vd-product-buy .col-add-compare,
body#product .vd-mega-v59 .vd-product-buy__compare-slot,
body#product .vd-mega-v59 [paypal-messaging-banner],
body#product .vd-mega-step-qty-v59 .product-add-to-cart .col-add-qty,
body#product .vd-mega-v59 #mpQtySlider .mpslider{display:none!important}
body#product .vd-mega-v59 .product-add-to-cart{padding:0!important;margin:0!important;border:0!important}
body#product .vd-mega-v59 #megaproduct{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;margin:14px 0 18px;padding:22px;background:#f5f8fc;border:1px solid #d5e2ef;border-radius:12px;clear:both}
body#product .vd-mega-v59 #megaproduct>*{min-width:0;grid-column:1/-1}
body#product .vd-mega-v59 #megaproduct>.mp-measures{grid-column:auto;display:grid;grid-template-columns:minmax(0,1fr) auto;gap:6px;margin:0;padding:0;float:none;width:auto}
body#product .vd-mega-v59 #megaproduct label{display:block;grid-column:1/-1;font-size:15px;font-weight:600;color:#143c68;margin:0 0 6px}
body#product .vd-mega-v59 #megaproduct .mp-measure,
body#product .vd-mega-v59 #id_step_quantity{box-sizing:border-box;width:100%!important;min-width:0;height:46px;padding:10px;border:1px solid #aebfd1;border-radius:6px;background:#fff;font-size:17px;color:#20364d}
body#product .vd-mega-v59 #megaproduct .typemeasure{align-self:center;font-size:14px}
body#product .vd-mega-v59 .vd-mp-heading-v59 h2{font-size:23px;margin:0 0 7px;color:#06428f}
body#product .vd-mega-v59 .vd-mp-heading-v59 p{margin:0;font-size:14px;color:#52677c}
body#product .vd-mega-v59 #mpQtySlider{display:block!important;float:none;width:130px;max-width:100%;margin:0;padding:0}
body#product .vd-mega-v59 #btnCalculePrice,
body#product .vd-mega-v59 #btnAddCalculePrice{display:flex;align-items:center;justify-content:center;gap:8px;box-sizing:border-box;width:100%;padding:14px 18px;min-height:48px;border:0;border-radius:7px;background:#06428f;color:#fff;font-size:17px;font-weight:700;text-align:center;cursor:pointer}
body#product .vd-mega-v59 #btnCalculePrice:focus-visible,
body#product .vd-mega-v59 #btnAddCalculePrice:focus-visible{outline:3px solid #f5b719;outline-offset:3px}
body#product .vd-mega-v59 #calculePrice[hidden]{display:none!important}
body#product .vd-mega-v59 #calculePrice{padding:18px;margin:0;border:1px solid #c6d7e8;border-radius:8px;background:#fff}
body#product .vd-mega-v59 #calculePrice h3{font-size:20px;color:#06428f;margin:0 0 12px}
body#product .vd-mega-v59 #calculePriceData{width:100%!important;min-height:0!important;padding:0;border:0}
body#product .vd-mega-v59 #calculePrice table{width:100%;font-size:14px;table-layout:fixed}
body#product .vd-mega-v59 #calculePrice td{padding:7px 5px;overflow-wrap:anywhere}
body#product .vd-mega-v59 #mp-total{font-size:26px;font-weight:700;color:#c51612}
@media(max-width:767px){body#product .vd-mega-v59 #megaproduct{padding:16px;gap:14px;grid-template-columns:1fr}body#product .vd-mega-v59 .vd-mp-heading-v59 h2{font-size:21px}}

/* V60: compact native quantity in both shop configurations. */
body#product .vd-mega-v59 #megaproduct>.vd-mp-native-qty-v59,
body#product .vd-mega-v59 #megaproduct>#mpQtySlider{width:130px!important;max-width:130px!important;justify-self:start;padding:0!important;flex:0 0 auto!important}
body#product .vd-mega-v59 .vd-mp-native-qty-v59 .qty,
body#product .vd-mega-v59 .vd-mp-native-qty-v59 .bootstrap-touchspin{width:130px!important;max-width:130px!important}
body#product .vd-mega-v59 .vd-mp-native-qty-v59 #quantity_wanted{width:100%!important;height:46px;padding:10px 32px 10px 10px;box-sizing:border-box;border:1px solid #aebfd1;border-radius:6px;background:white;font-size:17px;color:#20364d}
body#product .vd-mega-v59 .vd-heart-v60{font-size:0!important;line-height:1;font-style:normal}
body#product .vd-mega-v59 .vd-heart-v60::before{content:'♡';font:26px/1 Arial,sans-serif;color:#06428f}
body#product .vd-mega-v59 .vd-heart-filled-v60::before{content:'♥'}
body#product .vd-mp-dialog-v60{box-sizing:border-box;max-width:calc(100vw - 24px)!important;border:1px solid #d5e2ef;border-radius:12px;box-shadow:0 12px 48px #16345340;background:white}
body#product .vd-mp-dialog-v60 #calculePriceData{max-height:75vh!important;overflow:auto!important;box-sizing:border-box}
body#product .vd-mp-dialog-v60 #btnAddCalculePrice{display:block;padding:14px 18px;border-radius:7px;background:#06428f;color:white;text-align:center;font-weight:700}

/* Native TouchSpin geometry, including late initialization. */
body#product .vd-mega-v59 #megaproduct .bootstrap-touchspin{position:relative!important;display:block!important;width:130px!important;height:46px!important}
body#product .vd-mega-v59 #megaproduct .bootstrap-touchspin input{width:100%!important;height:46px!important;padding-right:34px!important;margin:0!important}
body#product .vd-mega-v59 #megaproduct .input-group-btn-vertical{position:absolute!important;right:0!important;top:0!important;width:30px!important;height:46px!important;display:flex!important;flex-direction:column!important}
body#product .vd-mega-v59 #megaproduct .input-group-btn-vertical button{position:relative!important;display:flex!important;align-items:center;justify-content:center;width:30px!important;height:23px!important;min-height:0!important;padding:0!important;margin:0!important;line-height:1!important;border:1px solid #aebfd1!important;border-radius:0!important;background:#f5f8fc!important;color:#163b63!important;box-shadow:none!important}
body#product .vd-mega-v59 #megaproduct .input-group-btn-vertical button i{display:none!important}
body#product .vd-mega-v59 #megaproduct .bootstrap-touchspin-up:after{content:'+';font:16px/1 Arial}
body#product .vd-mega-v59 #megaproduct .bootstrap-touchspin-down:after{content:'−';font:16px/1 Arial}
body#product .vd-mp-dialog-v60 .ui-dialog-titlebar{background:#f5f8fc!important;border:0!important;min-height:44px;border-radius:10px 10px 0 0}
body#product .vd-mp-dialog-v60 .ui-dialog-titlebar-close{position:absolute!important;right:8px!important;top:8px!important;margin:0!important;width:32px!important;height:32px!important;padding:0!important;background:white!important;border:1px solid #d5e2ef!important;border-radius:50%!important}
body#product .vd-mp-dialog-v60 .ui-dialog-titlebar-close span{display:none!important}
body#product .vd-mp-dialog-v60 .ui-dialog-titlebar-close:after{content:'×';color:#173958;font:26px/28px Arial}
body#product .vd-mp-dialog-v60 #btnAddCalculePrice i{display:none!important}
body#product .vd-mp-dialog-v60 #btnAddCalculePrice{font-family:Arial,sans-serif!important}
body#product .vd-mega-v59 .product-info-row{display:grid!important;grid-template-columns:minmax(0,1fr) minmax(0,1fr)!important;gap:28px!important}
body#product .vd-mega-v59 .product-info-row>.col-product-image,body#product .vd-mega-v59 .product-info-row>.col-product-info{width:100%!important;max-width:100%!important;min-width:0!important;flex:none!important;padding:0!important}
body#product .vd-mega-v59 .vd-foam-trust-bottom-v61{width:100%!important;max-width:none!important;margin-top:24px;position:static!important}
body#product .vd-mega-v59 .vd-foam-trust-v61{padding:20px!important;border:1px solid #d5e2ef;border-radius:12px;background:#f5f8fc;width:100%!important}
.vd-foam-benefits-v61{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:18px;text-align:center}
.vd-foam-benefits-v61>div{display:flex;flex-direction:column;gap:6px;color:#174775}
.vd-foam-benefits-v61 small{font-size:13px;line-height:1.5;color:#52677c}
@media(max-width:767px){body#product .vd-mega-v59 .product-info-row{grid-template-columns:minmax(0,1fr)!important}.vd-foam-benefits-v61{grid-template-columns:repeat(2,minmax(0,1fr))}}
