/* WAF 1.4.9: isolated reference-style gallery; native gallery is retained only for PhotoSwipe. */
.single-product .woocommerce-product-gallery.waf-isolated-gallery{position:relative!important;display:block!important;width:100%!important;max-width:100%!important;min-width:0!important;float:none!important;margin:0!important;overflow:visible!important}
.single-product .waf-isolated-gallery>.woocommerce-product-gallery__wrapper,.single-product .waf-isolated-gallery>.flex-control-thumbs,.single-product .waf-isolated-gallery>.woocommerce-product-gallery__trigger{position:fixed!important;left:-100000px!important;top:-100000px!important;width:1px!important;height:1px!important;min-width:1px!important;min-height:1px!important;max-width:1px!important;max-height:1px!important;overflow:hidden!important;opacity:0!important;visibility:hidden!important;pointer-events:none!important;margin:0!important;padding:0!important}
.waf-product-gallery{display:block!important;width:100%!important;max-width:100%!important;min-width:0!important;margin:0!important;padding:0!important;box-sizing:border-box!important}
.waf-gallery-stage{display:flex!important;align-items:center!important;justify-content:center!important;width:100%!important;max-width:100%!important;min-width:0!important;aspect-ratio:1 / 1!important;min-height:300px!important;max-height:680px!important;margin:0 0 18px!important;padding:0!important;border:0!important;background:#fff!important;overflow:hidden!important;cursor:zoom-in!important;box-sizing:border-box!important}
.waf-gallery-stage img{display:block!important;width:100%!important;max-width:100%!important;height:100%!important;max-height:680px!important;margin:0!important;padding:0!important;object-fit:contain!important;object-position:center!important}
.waf-gallery-row{position:relative!important;display:grid!important;grid-template-columns:minmax(0,1fr)!important;width:100%!important;max-width:100%!important;min-width:0!important;margin:0!important;padding:0!important;box-sizing:border-box!important}
.waf-gallery-row.has-overflow{grid-template-columns:30px minmax(0,1fr) 30px!important;gap:8px!important;align-items:center!important}
.waf-gallery-viewport{display:block!important;width:100%!important;max-width:100%!important;min-width:0!important;overflow-x:auto!important;overflow-y:hidden!important;scroll-behavior:smooth!important;scrollbar-width:none!important}.waf-gallery-viewport::-webkit-scrollbar{display:none!important}
.waf-gallery-list{display:flex!important;flex-flow:row nowrap!important;align-items:stretch!important;justify-content:flex-start!important;gap:var(--waf-gallery-gap,10px)!important;width:max-content!important;min-width:100%!important;max-width:none!important;margin:0!important;padding:0!important}
.waf-gallery-thumb{display:block!important;flex:0 0 88px;width:88px;max-width:88px;min-width:48px!important;aspect-ratio:var(--waf-gallery-ratio,1 / 1)!important;margin:0!important;padding:0!important;border:2px solid transparent!important;border-radius:2px!important;background:#fff!important;opacity:.7!important;overflow:hidden!important;cursor:pointer!important;box-sizing:border-box!important}.waf-gallery-thumb img{display:block!important;width:100%!important;height:100%!important;max-width:100%!important;margin:0!important;padding:0!important;object-fit:cover!important;object-position:center!important}.waf-gallery-thumb:hover,.waf-gallery-thumb.is-active{opacity:1!important;border-color:#2563eb!important}
.waf-gallery-arrow{display:none!important;align-items:center!important;justify-content:center!important;width:28px!important;height:38px!important;min-width:28px!important;margin:0!important;padding:0!important;border:0!important;border-radius:3px!important;background:#fff!important;color:#222!important;box-shadow:0 1px 7px rgba(0,0,0,.16)!important;cursor:pointer!important;line-height:1!important}.waf-gallery-row.has-overflow .waf-gallery-arrow{display:inline-flex!important}.waf-gallery-arrow:hover{background:#222!important;color:#fff!important}.waf-gallery-arrow:disabled{opacity:.25!important;cursor:default!important}.pswp{z-index:999999!important}
@media(max-width:1024px){.waf-gallery-stage{min-height:270px!important;max-height:560px!important}}
@media(max-width:600px){.waf-gallery-stage{min-height:230px!important;max-height:460px!important}.waf-gallery-row.has-overflow{grid-template-columns:26px minmax(0,1fr) 26px!important;gap:5px!important}.waf-gallery-arrow{width:24px!important;min-width:24px!important;height:34px!important}}

/* 1.4.10 deterministic thumbnail safeguards */
.waf-gallery-list{display:flex!important;flex-direction:row!important;flex-wrap:nowrap!important;align-items:stretch!important;width:max-content!important;min-width:0!important;max-width:none!important}.waf-gallery-list>.waf-gallery-thumb{display:block!important;float:none!important;clear:none!important;height:auto!important}.waf-gallery-list>.waf-gallery-thumb>img{display:block!important;width:100%!important;height:100%!important}

/* WAF 1.4.11: remove every visible native/FlexSlider remnant after the isolated gallery is ready. */
.single-product .woocommerce-product-gallery.waf-isolated-gallery > .waf-native-gallery-node,
.single-product .woocommerce-product-gallery.waf-isolated-gallery > .woocommerce-product-gallery__wrapper,
.single-product .woocommerce-product-gallery.waf-isolated-gallery > .flex-viewport,
.single-product .woocommerce-product-gallery.waf-isolated-gallery > .flex-control-nav,
.single-product .woocommerce-product-gallery.waf-isolated-gallery > .flex-direction-nav,
.single-product .woocommerce-product-gallery.waf-isolated-gallery .flex-direction-nav,
.single-product .woocommerce-product-gallery.waf-isolated-gallery > a.woocommerce-product-gallery__trigger {
 display:none !important;
 position:absolute !important;
 left:-100000px !important;
 top:-100000px !important;
 width:1px !important;
 height:1px !important;
 min-width:1px !important;
 min-height:1px !important;
 max-width:1px !important;
 max-height:1px !important;
 margin:0 !important;
 padding:0 !important;
 overflow:hidden !important;
 opacity:0 !important;
 visibility:hidden !important;
 pointer-events:none !important;
}
.single-product .woocommerce-product-gallery.waf-isolated-gallery > .waf-product-gallery {
 display:block !important;
 position:relative !important;
 left:auto !important;
 top:auto !important;
 width:100% !important;
 height:auto !important;
 min-width:0 !important;
 max-width:100% !important;
 max-height:none !important;
 opacity:1 !important;
 visibility:visible !important;
 pointer-events:auto !important;
 overflow:visible !important;
}
