/* Native product gallery, shared with the existing storefront layout. */
[data-sa-native-gallery] .product-gallery__carousel-item[hidden],
[data-sa-native-gallery] .product-gallery__thumbnail[hidden],
[data-sa-native-gallery] .product-gallery__zoom-notice[hidden],
.sa-gallery-zoom [hidden]{display:none!important}
[data-sa-native-gallery] .product-gallery__carousel{touch-action:pan-y}
[data-sa-native-gallery] .product-gallery__carousel--zoomable .product-gallery__image{cursor:zoom-in}
[data-sa-native-gallery] .product-gallery__zoom-notice:not([hidden]){display:block!important;cursor:zoom-in;min-height:44px}
[data-sa-native-gallery] .product-gallery__thumbnail:focus-visible,
.sa-gallery-zoom button:focus-visible{outline:2px solid currentColor;outline-offset:3px}
.sa-gallery-hover-host{position:relative}
.sa-gallery-hover-pane{position:absolute;inset:0;z-index:2;pointer-events:none;background-color:#fff;background-repeat:no-repeat;overflow:hidden}
.sa-gallery-zoom:not([open]){display:none!important}
.sa-gallery-zoom[open]{display:grid;grid-template-rows:auto minmax(0,1fr) auto;gap:12px;position:fixed;inset:0;margin:0;padding:16px;width:100vw;max-width:none;height:100vh;height:100dvh;max-height:none;box-sizing:border-box;border:0;background:#fff;color:#1d1d1f;overflow:hidden}
.sa-gallery-zoom::backdrop{background:rgba(0,0,0,.6)}
html.sa-gallery-zoom-open{overflow:hidden}
.sa-gallery-zoom__bar,.sa-gallery-zoom__controls{display:flex;align-items:center;justify-content:center;gap:12px}
.sa-gallery-zoom__bar{justify-content:flex-end}
.sa-gallery-zoom button{display:inline-flex;align-items:center;justify-content:center;min-width:44px;min-height:44px;border:1px solid #dedee0;border-radius:3px;background:#fff;color:#1d1d1f;font-size:20px;line-height:1;cursor:pointer}
.sa-gallery-zoom button:disabled{opacity:.4;cursor:default}
.sa-gallery-zoom button svg{width:16px;height:16px}
.sa-gallery-zoom__viewport{display:flex;align-items:center;justify-content:center;overflow:hidden;touch-action:none;user-select:none;min-height:0;min-width:0;cursor:zoom-in}
.sa-gallery-zoom__viewport[data-sa-zoomed=true]{cursor:grab}
.sa-gallery-zoom__viewport img{display:block;max-width:100%;max-height:100%;width:auto;height:auto;object-fit:contain;transform-origin:center;pointer-events:none;user-select:none}
.sa-gallery-zoom__count{min-width:52px;text-align:center;font-variant-numeric:tabular-nums}
@media(min-width:1000px){[data-sa-native-gallery].product-gallery--with-thumbnails .product-gallery__carousel-wrapper{flex:1 1 0;min-width:0}}
