/* Approved desktop layout; product content remains intact. */
@media(min-width:1024px){
 body.wp-theme-shoptimizer.single-product.jnjui-pdp-fit #page .product-details-wrapper{width:calc(100% - 64px)!important;max-width:1600px!important;grid-template-columns:minmax(0,1fr) minmax(0,1.04fr)!important;gap:24px!important;padding:0!important;margin:0 auto 24px!important;align-items:start!important}
 body.wp-theme-shoptimizer.single-product.jnjui-pdp-fit #page .product-details-wrapper>.summary{padding:24px!important;align-self:start!important;height:auto!important;min-height:0!important}
 body.wp-theme-shoptimizer.single-product.jnjui-pdp-fit #page .product-details-wrapper>.woocommerce-product-gallery{padding:14px!important;align-self:start!important;height:auto!important;min-height:0!important;--jnjui-stage:var(--jnjui-fit-stage,360px)}
 body.wp-theme-shoptimizer.single-product.jnjui-pdp-fit #page .summary h1.product_title{font-size:26px!important;line-height:1.25!important;letter-spacing:-.4px;margin:0 0 6px!important}
 body.wp-theme-shoptimizer.single-product.jnjui-pdp-fit #page .summary .junjubi-ust-meta{min-height:36px!important;margin:0!important}
 body.wp-theme-shoptimizer.single-product.jnjui-pdp-fit #page .summary :is(.jnjui-identity-brand,.jnjui-identity-sku){min-height:36px!important}
 body.wp-theme-shoptimizer.single-product.jnjui-pdp-fit #page .summary>p.price{margin:12px 0 14px!important}
 body.wp-theme-shoptimizer.single-product.jnjui-pdp-fit #page .summary .jnjui-sale-price{gap:4px 10px}
 body.wp-theme-shoptimizer.single-product.jnjui-pdp-fit #page .summary .jnjui-sale-price ins{font-size:32px!important;line-height:1.2!important}
 body.wp-theme-shoptimizer.single-product.jnjui-pdp-fit #page .summary .jnjui-sale-price del{line-height:26px!important}
 body.wp-theme-shoptimizer.single-product.jnjui-pdp-fit #page .summary .jnjui-sale-tag{min-height:26px;padding:3px 10px}
 body.wp-theme-shoptimizer.single-product.jnjui-pdp-fit #page .summary .jnjui-sale-saving{line-height:1.4!important}
 body.wp-theme-shoptimizer.single-product.jnjui-pdp-fit #page .summary .woocommerce-product-details__short-description{font-size:14px!important;line-height:1.55!important;margin:0!important}
 body.wp-theme-shoptimizer.single-product.jnjui-pdp-fit #page .summary .woocommerce-product-details__short-description p{font-size:14px!important;line-height:1.55!important;margin:0!important}
 body.wp-theme-shoptimizer.single-product.jnjui-pdp-fit #page .summary form.cart{margin-top:0!important;margin-bottom:0!important}
 body.wp-theme-shoptimizer.single-product.jnjui-pdp-fit #page .summary form.cart :is(.quantity,.single_add_to_cart_button){min-height:50px!important;height:50px!important}
 body.wp-theme-shoptimizer.single-product.jnjui-pdp-fit #page .summary .jnjpa-compact-tools{margin-top:22px!important;margin-bottom:0!important;padding-top:14px!important;min-height:59px}
 body.wp-theme-shoptimizer.single-product.jnjui-pdp-fit #page .summary>div:empty{margin:0!important;padding:0!important}
 body.wp-theme-shoptimizer.single-product.jnjui-pdp-fit #page .woocommerce-product-gallery>.jnjui-benefits{position:relative;flex:0 0 auto;width:100%;margin:16px 0 0!important;padding:15px 14px!important;border:1px solid #eae5df;border-radius:14px;background:#faf8f5}
 body.wp-theme-shoptimizer.single-product.jnjui-pdp-fit #page .woocommerce-product-gallery .jnjui-benefit-grid{column-gap:20px;row-gap:14px}
 body.wp-theme-shoptimizer.single-product.jnjui-pdp-fit #page .woocommerce-product-gallery .jnjui-benefit p{font:600 12px/1.4 Arial,Helvetica,sans-serif!important}
 body.wp-theme-shoptimizer.single-product.jnjui-pdp-fit #page .woocommerce-product-gallery .jnjui-benefit small{font:400 12px/1.45 Arial,Helvetica,sans-serif!important}
}
@media(min-width:1024px) and (max-height:820px){
 body.wp-theme-shoptimizer.single-product.jnjui-pdp-fit #page .product-details-wrapper>.summary{padding:18px 20px!important}
 body.wp-theme-shoptimizer.single-product.jnjui-pdp-fit #page .summary h1.product_title{font-size:24px!important;margin-bottom:4px!important}
 body.wp-theme-shoptimizer.single-product.jnjui-pdp-fit #page .summary .junjubi-ust-meta,body.wp-theme-shoptimizer.single-product.jnjui-pdp-fit #page .summary :is(.jnjui-identity-brand,.jnjui-identity-sku){min-height:32px!important}
 body.wp-theme-shoptimizer.single-product.jnjui-pdp-fit #page .summary>p.price{margin:10px 0 12px!important}
 body.wp-theme-shoptimizer.single-product.jnjui-pdp-fit #page .summary .jnjui-sale-price ins{font-size:30px!important}
 body.wp-theme-shoptimizer.single-product.jnjui-pdp-fit #page .summary .jnjpa-compact-tools{margin-top:20px!important;padding-top:12px!important;min-height:57px}
 body.wp-theme-shoptimizer.single-product.jnjui-pdp-fit #page .woocommerce-product-gallery>.jnjui-benefits{padding:12px!important}
}
@media(min-width:1024px) and (max-width:1199px){
 body.wp-theme-shoptimizer.single-product.jnjui-pdp-fit #page .product-details-wrapper{width:calc(100% - 40px)!important;grid-template-columns:minmax(0,.85fr) minmax(0,1.15fr)!important;gap:20px!important}
}
@media(min-width:1024px){
 body.wp-theme-shoptimizer.single-product.jnjui-pdp-fit #page .product-details-wrapper{display:grid!important;width:min(1600px,calc(100vw - 64px))!important;max-width:none!important;margin-left:calc((100% - min(1600px,calc(100vw - 64px))) / 2)!important;margin-right:0!important}
 body.wp-theme-shoptimizer.single-product.jnjui-pdp-fit #page .product-details-wrapper>:is(.summary,.woocommerce-product-gallery){width:100%!important;max-width:none!important;min-width:0!important;box-sizing:border-box}
 body.wp-theme-shoptimizer.single-product.jnjui-pdp-fit #page .product-details-wrapper>.summary{min-height:var(--jnjui-fit-card-height,0px)!important}
}
@media(min-width:1024px) and (max-width:1199px){
 body.wp-theme-shoptimizer.single-product.jnjui-pdp-fit #page .product-details-wrapper{width:calc(100vw - 40px)!important;margin-left:calc((100% - (100vw - 40px)) / 2)!important;grid-template-columns:minmax(0,.85fr) minmax(0,1.15fr)!important}
}
@media(min-width:1600px) and (min-height:900px){
 body.wp-theme-shoptimizer.single-product.jnjui-pdp-fit #page .product-details-wrapper>.summary{padding:28px!important}
 body.wp-theme-shoptimizer.single-product.jnjui-pdp-fit #page .summary h1.product_title{font-size:28px!important}
 body.wp-theme-shoptimizer.single-product.jnjui-pdp-fit #page .summary .jnjui-sale-price ins{font-size:36px!important}
 body.wp-theme-shoptimizer.single-product.jnjui-pdp-fit #page .summary .woocommerce-product-details__short-description,body.wp-theme-shoptimizer.single-product.jnjui-pdp-fit #page .summary .woocommerce-product-details__short-description p{font-size:15px!important;line-height:1.55!important}
}
@media(min-width:1024px) and (max-width:1199px){
 body.wp-theme-shoptimizer.single-product.jnjui-pdp-fit #page .summary .jnjpa-compact-tools{grid-template-columns:minmax(0,1.25fr) minmax(0,1fr) minmax(0,1.1fr) 44px!important;gap:4px 6px!important}
 body.wp-theme-shoptimizer.single-product.jnjui-pdp-fit #page .summary .jnjpa-compact-tools .jnjpa-whatsapp{grid-column:auto!important;justify-content:center!important}
 body.wp-theme-shoptimizer.single-product.jnjui-pdp-fit #page .summary .jnjpa-compact-tools .commercekit-wishlist>a>span{position:static!important;width:auto!important;height:auto!important;margin:0!important;overflow:visible!important;clip:auto!important;clip-path:none!important;white-space:nowrap!important}
}
/* Revised desktop rhythm: align both lower sections and distribute spare room above. */
@media(min-width:1280px){
 body.wp-theme-shoptimizer.single-product.jnjui-pdp-balanced #page .product-details-wrapper>.summary{padding-bottom:14px!important}
 body.wp-theme-shoptimizer.single-product.jnjui-pdp-balanced #page .summary h1.product_title{margin-bottom:calc(6px + var(--jnjui-gap-title,0px))!important}
 body.wp-theme-shoptimizer.single-product.jnjui-pdp-balanced #page .summary .junjubi-ust-meta{padding:0 0 var(--jnjui-gap-identity,0px)!important}
 body.wp-theme-shoptimizer.single-product.jnjui-pdp-balanced #page .summary>p.price{margin-top:calc(12px + var(--jnjui-gap-price,0px))!important;margin-bottom:calc(14px + var(--jnjui-gap-description,0px))!important}
 body.wp-theme-shoptimizer.single-product.jnjui-pdp-balanced #page .summary .woocommerce-product-details__short-description{padding-bottom:var(--jnjui-gap-cart,0px)!important}
 body.wp-theme-shoptimizer.single-product.jnjui-pdp-balanced #page .summary .jnjpa-compact-tools{box-sizing:border-box;height:var(--jnjui-lower-height,110px)!important;min-height:var(--jnjui-lower-height,110px)!important;padding-top:0!important;padding-bottom:0!important;align-items:center;align-content:stretch;margin-bottom:0!important}
}
@media(min-width:1280px) and (max-height:820px){
 body.wp-theme-shoptimizer.single-product.jnjui-pdp-balanced #page .summary h1.product_title{margin-bottom:calc(4px + var(--jnjui-gap-title,0px))!important}
 body.wp-theme-shoptimizer.single-product.jnjui-pdp-balanced #page .summary>p.price{margin-top:calc(10px + var(--jnjui-gap-price,0px))!important;margin-bottom:calc(12px + var(--jnjui-gap-description,0px))!important}
}
/* WooCommerce may finish mounting its slider after the reassurance block moves. */
@media(min-width:1024px){
 body.wp-theme-shoptimizer.single-product.jnjui-pdp-fit #page .product-details-wrapper>.woocommerce-product-gallery{display:flex!important;flex-direction:column!important}
 body.wp-theme-shoptimizer.single-product.jnjui-pdp-fit #page .woocommerce-product-gallery>:is(.flex-viewport,.woocommerce-product-gallery__wrapper){order:0}
 body.wp-theme-shoptimizer.single-product.jnjui-pdp-fit #page .woocommerce-product-gallery>.jnjui-benefits{order:10}
}

/* Reserve space for real thumbnails on the left, rather than an empty mirror column. */
@media(min-width:1024px){
 body.wp-theme-shoptimizer.single-product.jnjui-pdp-fit #page .woocommerce-product-gallery:has(>.jnjui-thumb-rail) .woocommerce-product-gallery__image>a{padding:12px 16px 12px 90px!important}
 body.wp-theme-shoptimizer.single-product.jnjui-pdp-fit #page .woocommerce-product-gallery:has(>.jnjui-thumb-rail) .flex-direction-nav{left:92px;right:16px}
}

/* Match the gallery column to its content rather than mirroring the text column. */
@media(min-width:1200px){
 body.wp-theme-shoptimizer.single-product.jnjui-pdp-fit #page .product-details-wrapper{width:min(1480px,calc(100vw - 64px))!important;margin-left:calc((100% - min(1480px,calc(100vw - 64px))) / 2)!important;grid-template-columns:minmax(0,.84fr) minmax(0,1.16fr)!important}
}
