.product-image-viewer{box-sizing:border-box;position:fixed;inset:0;width:100%;max-width:none;height:100vh;height:100dvh;max-height:none;margin:0;padding:max(8px,env(safe-area-inset-top)) env(safe-area-inset-right) calc(56px + env(safe-area-inset-bottom)) env(safe-area-inset-left);border:0;background:transparent;color:#fff;font:14px/1.4 Arial,sans-serif;overscroll-behavior:contain}
.product-image-viewer:not([open]){display:none}
.product-image-viewer[open]{display:block}
.product-image-viewer::backdrop{background:rgb(0 0 0 / 72%);-webkit-backdrop-filter:blur(4px);backdrop-filter:blur(4px)}
.product-image-viewer__stage{position:relative;height:100%;container-type:size}
.product-image-viewer__controls{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);width:min(100%,calc(100cqh * var(--viewer-ratio,1)));aspect-ratio:var(--viewer-ratio,1);pointer-events:none}
.product-image-viewer button{position:absolute;display:grid;place-items:center;width:44px;height:44px;margin:0;padding:0;border:0;border-radius:50%;background:rgb(0 0 0 / 62%);color:#fff;cursor:pointer;pointer-events:auto}
.product-image-viewer [data-viewer-close]{top:6px;right:6px}
.product-image-viewer :is([data-viewer-previous],[data-viewer-next]){top:50%;transform:translateY(-50%)}
.product-image-viewer [data-viewer-previous]{left:6px}
.product-image-viewer [data-viewer-next]{right:6px}
.product-image-viewer button:disabled{opacity:.45;cursor:default}
.product-image-viewer button:focus-visible,.product-image-viewer__track:focus-visible{outline:2px solid #f2cf6d;outline-offset:-3px}
.product-image-viewer svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.product-image-viewer__track{display:flex;height:100%;width:100%;overflow-x:auto;overflow-y:hidden;scroll-snap-type:x mandatory;overscroll-behavior:contain;scrollbar-width:none;touch-action:pan-x pinch-zoom;-webkit-overflow-scrolling:touch}
.product-image-viewer__track::-webkit-scrollbar{display:none}
.product-image-viewer__slide{display:grid;place-items:center;flex:0 0 100%;min-width:0;height:100%;scroll-snap-align:center;scroll-snap-stop:always}
.product-image-viewer__slide :is(img,canvas){display:block;width:100%;height:100%;min-height:0;object-fit:contain;user-select:none;-webkit-user-drag:none}
.product-image-viewer__caption{position:absolute;top:calc(100% + 8px);left:50%;transform:translateX(-50%);padding:3px 12px;background:rgb(0 0 0 / 50%);border-radius:12px;text-align:center;white-space:nowrap}
.product-image-viewer__caption span{display:block;font-size:14px;font-variant-numeric:tabular-nums}
.product-image-viewer__caption small{display:block;color:#fff;font-size:12px}
.product-image-viewer__expand{display:none}
@media(max-width:760px){
  [data-product-image-trigger]{position:relative;cursor:zoom-in}
  [data-product-image-trigger]:focus-visible{outline:2px solid #173b47;outline-offset:3px}
  [data-product-image-trigger]>.product-image-viewer__expand{position:absolute;right:12px;bottom:12px;display:grid;place-items:center;width:36px;height:36px;border:1px solid #c1d4d5;border-radius:50%;background:#fffffff2;color:#173b47;pointer-events:none}
  .product-image-viewer__expand svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
}

.cart-pointer-input .product-image-viewer button:focus:not(:focus-visible){outline:none}

.product-gallery-slide{position:absolute;inset:0;pointer-events:none}
.product-gallery-slide>img{position:absolute;inset:0;display:block;width:100%;height:100%;object-fit:var(--gallery-fit);object-position:var(--gallery-position);background:var(--gallery-surface)}
[data-accessory-stage]{position:relative;overflow:hidden;border-radius:8px;background:#f5f9f8}
[data-relief-gallery-stage],.simple-photo,[data-snowman-stage],[data-catalog-stage],[data-accessory-stage]{position:relative;touch-action:pan-y pinch-zoom}
[data-catalog-stage]{overflow:hidden;background:#f3efea}
