/* Photos, zoom and their native layout remain owned by WooCommerce. */
.woocommerce-product-gallery.alter-wc-gallery-trigger-top-right,
.woocommerce-product-gallery.alter-wc-gallery-trigger-next-to-zoom{position:relative}
.woocommerce-product-gallery.alter-wc-gallery-trigger-top-right>.woocommerce-product-gallery__trigger{translate:0 var(--alter-wc-zoom-offset,0px)}
.woocommerce-product-gallery .alter-wc-gallery-3d-overlay{position:absolute;z-index:6;box-sizing:border-box;display:flex;align-items:center;justify-content:center;width:40px;height:40px;margin:0;padding:0;border:0;border-radius:50%;background:#fff;color:#202521;font:inherit;cursor:pointer;box-shadow:0 1px 4px #00000014}
.woocommerce-product-gallery .alter-wc-gallery-3d-overlay svg{display:none}
.woocommerce-product-gallery .alter-wc-gallery-3d-overlay[hidden]{display:none!important}
.woocommerce-product-gallery .alter-wc-gallery-3d-overlay span{font-family:inherit;font-size:12px;font-weight:600;line-height:1}
.woocommerce-product-gallery .alter-wc-gallery-3d-overlay[aria-pressed=true]{background:#edf5ef;color:#23654e;box-shadow:inset 0 0 0 2px #33765b}
.woocommerce-product-gallery .alter-wc-gallery-3d-overlay:focus-visible{outline:2px solid #33765b;outline-offset:3px}
.woocommerce-product-gallery .alter-wc-gallery-3d-thumb button,
.woocommerce-product-gallery .alter-wc-gallery-photo-thumb button{box-sizing:border-box;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:5px;width:100%;aspect-ratio:1;padding:8px;border:1px solid #d9ddda;border-radius:3px;background:#f6f7f6;color:#27352c;font:inherit;cursor:pointer;line-height:1.2}
.woocommerce-product-gallery .alter-wc-gallery-3d-thumb button{font-size:14px;font-weight:600}
.woocommerce-product-gallery .alter-wc-gallery-3d-thumb svg{display:block;width:28px;height:28px;fill:none;stroke:currentColor;stroke-width:1.5}
.woocommerce-product-gallery .alter-wc-gallery-3d-thumb button[aria-pressed=true]{border-color:#33765b;box-shadow:inset 0 0 0 1px #33765b;background:#edf5ef}
.woocommerce-product-gallery .alter-wc-gallery-photo-thumb button{padding:0;overflow:hidden;background:transparent}
.woocommerce-product-gallery .alter-wc-gallery-photo-thumb button img{width:100%;height:100%;object-fit:cover;opacity:1}
.woocommerce-product-gallery ol.alter-wc-gallery-thumbnails{display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;list-style:none;padding:0!important;margin:12px 0 0!important;overflow:hidden}
.woocommerce-product-gallery ol.alter-wc-gallery-thumbnails li{float:none!important;width:auto!important;margin:0!important;padding:0}
.woocommerce-product-gallery.alter-wc-gallery-showing-3d>.flex-viewport,
.woocommerce-product-gallery.alter-wc-gallery-showing-3d>.woocommerce-product-gallery__wrapper{visibility:hidden}
.woocommerce-product-gallery.alter-wc-gallery-showing-3d>.woocommerce-product-gallery__trigger{visibility:hidden;pointer-events:none}
.alter-wc-gallery-stage{position:absolute;z-index:5;box-sizing:border-box;overflow:hidden;background:#fff;border:1px solid #e1e3df;border-radius:3px;color:#242720;font-family:inherit}
/* Opening 3D moves focus here; Safari's pointer focus must not frame the embed. */
.alter-wc-gallery-stage:focus:not(:focus-visible){outline:none}
.alter-wc-gallery-stage:focus-visible{outline:2px solid #33765b;outline-offset:-3px}
.alter-wc-gallery-stage--pointer-focus:focus{outline:none}
.alter-wc-gallery-stage[hidden]{display:none!important}
.alter-wc-gallery-stage__content{height:100%;position:relative;--alter-embed-height:100%}
.alter-wc-gallery-stage__content>.alter-wc-embed,.alter-wc-gallery-stage__content>.alter-wc-embed-wrap{height:100%;--alter-embed-height:100%!important}
.alter-wc-gallery-stage .alter-wc-embed__iframe{width:100%;height:100%!important;border:0;display:block}
.alter-wc-gallery-stage__status{position:absolute;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:14px;padding:24px;text-align:center;font-size:14px;background:#fff}
.alter-wc-gallery-stage__status button{font:inherit;padding:8px 16px;border:1px solid currentColor;border-radius:3px;background:#fff;color:#27352c;cursor:pointer}
.alter-wc-gallery-stage button:focus-visible,.woocommerce-product-gallery .alter-wc-gallery-3d-thumb button:focus-visible,.woocommerce-product-gallery .alter-wc-gallery-photo-thumb button:focus-visible{outline:2px solid #33765b;outline-offset:-3px}
