/* More Than Mini: "View in 3D" button on the product gallery and the 3D view dialog.
   Button matches the gallery arrows and counter (mtm-product-gallery-ux); dialog matches the store cards. */
body.single-product .woocommerce-product-gallery .mtm-3d-open{position:absolute;top:14px;left:14px;z-index:31;display:inline-flex;align-items:center;gap:8px;min-height:40px;margin:0;padding:8px 15px 8px 12px;border:1px solid rgba(255,255,255,.78);border-radius:999px;background:rgba(0,0,0,.76);box-shadow:0 4px 18px rgba(0,0,0,.24);color:#fff;font:650 14px/1.2 Inter,system-ui,sans-serif;letter-spacing:.01em;text-transform:none;cursor:pointer;transition:background .18s ease,transform .18s ease}
body.single-product .woocommerce-product-gallery .mtm-3d-open:hover{background:#000;transform:scale(1.04)}
body.single-product .woocommerce-product-gallery .mtm-3d-open:focus-visible{outline:3px solid #f4d76c;outline-offset:3px}
body.single-product .woocommerce-product-gallery .mtm-3d-open svg{flex:none;display:block}

html.mtm-3d-open-page{overflow:hidden}
html body .mtm-3d-dialog{box-sizing:border-box;width:min(760px,calc(100vw - 24px));max-width:none;max-height:calc(100vh - 24px);max-height:calc(100dvh - 24px);margin:auto;padding:0;border:0;border-radius:20px;background:#fff;box-shadow:0 24px 80px rgba(0,0,0,.35);color:#101214;font-family:Inter,system-ui,sans-serif;overflow:auto;overscroll-behavior:contain}
html body .mtm-3d-dialog::backdrop{background:rgba(16,18,20,.62)}
html body .mtm-3d-dialog [hidden]{display:none!important}
html body .mtm-3d-dialog *{box-sizing:border-box}
html body .mtm-3d-dialog .mtm-3d-head{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;padding:18px 18px 12px 22px}
html body .mtm-3d-dialog .mtm-3d-kicker{margin:0 0 3px;color:#5b6168;font-size:12px;font-weight:700;line-height:1.3;letter-spacing:.1em;text-transform:uppercase}
html body .mtm-3d-dialog .mtm-3d-title{margin:0;color:#101214;font-family:inherit;font-size:22px;font-weight:700;line-height:1.2;letter-spacing:-.02em;text-transform:none}
html body .mtm-3d-dialog button{font-family:inherit;text-transform:none;letter-spacing:0;box-shadow:none}
html body .mtm-3d-dialog .mtm-3d-close{flex:none;display:inline-flex;align-items:center;justify-content:center;width:44px;height:44px;min-height:0;margin:0;padding:0;border:1px solid #e3e3e3;border-radius:999px;background:#fff;color:#101214;cursor:pointer}
html body .mtm-3d-dialog .mtm-3d-close:hover{border-color:#101214;background:#101214;color:#fff}
html body .mtm-3d-dialog :is(.mtm-3d-close,.mtm-3d-pick,.mtm-3d-choose):focus-visible{outline:3px solid #101214;outline-offset:3px}
html body .mtm-3d-dialog .mtm-3d-stage{position:relative;margin:0 18px;border-radius:16px;background:radial-gradient(circle at 50% 38%,#fff 0%,#eceef1 72%);overflow:hidden}
html body .mtm-3d-dialog .mtm-3d-viewer{display:block;width:100%;height:min(56vh,520px);background:transparent;--poster-color:transparent;--progress-bar-color:#101214;--progress-bar-height:3px}
html body .mtm-3d-dialog .mtm-3d-status{position:absolute;right:16px;bottom:16px;left:16px;margin:0;color:#5b6168;font-size:14px;line-height:1.4;text-align:center;pointer-events:none}
html body .mtm-3d-dialog .mtm-3d-foot{padding:12px 22px 20px}
html body .mtm-3d-dialog .mtm-3d-hint{margin:0 0 12px;color:#5b6168;font-size:14px;line-height:1.45}
html body .mtm-3d-dialog .mtm-3d-note{margin:0 0 12px;padding:10px 12px;border-radius:10px;background:#f6f6f6;color:#101214;font-size:14px;line-height:1.45}
html body .mtm-3d-dialog .mtm-3d-picks{display:flex;flex-wrap:wrap;gap:8px;margin:0 0 14px}
html body .mtm-3d-dialog .mtm-3d-pick{min-height:40px;margin:0;padding:8px 14px;border:1px solid #c9ccd0;border-radius:999px;background:#fff;color:#101214;font-size:14px;font-weight:600;line-height:1.2;cursor:pointer}
html body .mtm-3d-dialog .mtm-3d-pick:hover{border-color:#101214}
html body .mtm-3d-dialog .mtm-3d-pick[aria-pressed="true"]{border-color:#101214;background:#101214;color:#fff}
html body .mtm-3d-dialog .mtm-3d-choose{display:inline-flex;align-items:center;justify-content:center;min-height:44px;margin:0;padding:10px 20px;border:1px solid #101214;border-radius:999px;background:#101214;color:#fff;font-size:15px;font-weight:600;line-height:1.3;cursor:pointer}
html body .mtm-3d-dialog .mtm-3d-choose:hover{border-color:#2b2f34;background:#2b2f34}

@media (max-width:600px){
body.single-product .woocommerce-product-gallery .mtm-3d-open{top:10px;left:10px;min-height:36px;padding:6px 12px 6px 10px;font-size:13px}
html body .mtm-3d-dialog{width:100vw;height:100vh;height:100dvh;max-height:none;border-radius:0}
html body .mtm-3d-dialog .mtm-3d-head{padding:14px 12px 10px 16px}
html body .mtm-3d-dialog .mtm-3d-title{font-size:20px}
html body .mtm-3d-dialog .mtm-3d-stage{margin:0 12px}
html body .mtm-3d-dialog .mtm-3d-viewer{height:min(56vh,460px)}
html body .mtm-3d-dialog .mtm-3d-foot{padding:12px 16px 24px}
html body .mtm-3d-dialog .mtm-3d-choose{width:100%}
}

@media (prefers-reduced-motion:reduce){
body.single-product .woocommerce-product-gallery .mtm-3d-open{transition:none}
body.single-product .woocommerce-product-gallery .mtm-3d-open:hover{transform:none}
}
