.woocommerce-product-gallery .woocommerce-product-gallery__image, .woocommerce-product-gallery .wp3dp-preview-image { position: relative !important; overflow: hidden; }
.wp3dp-launch { position: absolute; z-index: 12; right: 14px; bottom: 14px; display: inline-flex; align-items: center; gap: .5rem; border: 1px solid rgba(255,255,255,.55); border-radius: 999px; background: rgba(22,25,25,.9); color: #fff; padding: .72rem 1rem; font: 700 .76rem/1 inherit; letter-spacing: .02em; box-shadow: 0 10px 28px rgba(0,0,0,.28); cursor: pointer; backdrop-filter: blur(10px); transition: transform .18s ease, background .18s ease, box-shadow .18s ease; }
.wp3dp-launch:not(.wp3dp-mounted) { display: none !important; }
.wp3dp-launch:hover, .wp3dp-launch:focus-visible { color: #fff; background: #111; transform: translateY(-2px); box-shadow: 0 14px 30px rgba(0,0,0,.35); }
.wp3dp-launch:focus-visible, .wp3dp-colour-option:focus-visible, .wp3dp-close:focus-visible { outline: 3px solid #7ee1cc; outline-offset: 3px; }
.wp3dp-launch-icon { display: grid; width: 1.05rem; height: 1.05rem; place-items: center; border: 1px solid #9be5d5; border-radius: 3px; color: #9be5d5; font-size: .78rem; line-height: 1; transform: rotate(45deg); }
.wp3dp-launch-icon::first-letter { transform: rotate(-45deg); }

.wp3dp-modal { position: fixed; inset: 0; z-index: 999999; display: grid; place-items: center; padding: 24px; opacity: 0; visibility: hidden; transition: opacity .24s ease, visibility .24s ease; }
.wp3dp-modal.is-open { opacity: 1; visibility: visible; }
.wp3dp-modal__backdrop { position: absolute; inset: 0; background: rgba(10,13,13,.74); backdrop-filter: blur(10px); }
.wp3dp-modal__panel { position: relative; width: min(1120px, 100%); height: min(700px, calc(100vh - 48px)); display: grid; grid-template-rows: auto minmax(0, 1fr); overflow: hidden; background: #1d2522; border: 1px solid rgba(255,255,255,.18); border-radius: 18px; box-shadow: 0 30px 100px rgba(0,0,0,.56); transform: translateY(14px) scale(.98); transition: transform .24s cubic-bezier(.2,.8,.2,1); }
.is-open .wp3dp-modal__panel { transform: none; }
.wp3dp-modal__header { display: flex; justify-content: space-between; gap: 1rem; align-items: center; padding: 1.2rem 1.45rem; background: #1d2522; border-bottom: 1px solid rgba(255,255,255,.1); }
.wp3dp-modal__header h2 { margin: 0; color: #f8f7f2; font-size: 1.1rem; font-weight: 700; line-height: 1.25; }
.wp3dp-eyebrow, .wp3dp-section-label { margin: 0 0 .28rem; color: #9aa8a0; font-size: .65rem; font-weight: 800; letter-spacing: .13em; line-height: 1.2; text-transform: uppercase; }
.wp3dp-eyebrow { color: #8edbc7; }
.wp3dp-close { display: grid; width: 2.45rem; height: 2.45rem; flex: 0 0 auto; place-items: center; border: 1px solid rgba(255,255,255,.13); border-radius: 8px; background: rgba(255,255,255,.05); color: #f9faf7; cursor: pointer; transition: border-color .16s ease, background .16s ease; }
.wp3dp-close svg { width: 1rem; height: 1rem; fill: none; stroke: currentColor; stroke-linecap: round; stroke-width: 1.7; }
.wp3dp-close:hover { border-color: rgba(162,226,208,.72); background: rgba(162,226,208,.13); }
.wp3dp-modal__body { min-height: 0; display: grid; grid-template-columns: minmax(0, 1.8fr) minmax(300px, .7fr); }
.wp3dp-canvas-wrap { position: relative; min-height: 440px; overflow: hidden; background: radial-gradient(ellipse at 48% 38%, #40514a 0%, #26322e 48%, #121816 100%); }
.wp3dp-canvas-wrap::after { position: absolute; z-index: 0; inset: auto -25% -36% -25%; height: 45%; border-top: 1px solid rgba(255,255,255,.1); background: linear-gradient(180deg, rgba(0,0,0,0), rgba(0,0,0,.5)); content: ''; pointer-events: none; }
#wp3dp-canvas { position: relative; z-index: 1; display: block; width: 100%; height: 100%; touch-action: none; outline: 0; }
.wp3dp-stage-label, .wp3dp-canvas-hint { position: absolute; z-index: 2; margin: 0; color: rgba(255,255,255,.78); font-size: .68rem; font-weight: 700; letter-spacing: .06em; }
.wp3dp-stage-label { top: 1.15rem; left: 1.15rem; display: inline-flex; gap: .4rem; align-items: center; padding: .45rem .65rem; border: 1px solid rgba(255,255,255,.12); border-radius: 999px; background: rgba(13,17,16,.32); backdrop-filter: blur(6px); text-transform: uppercase; }
.wp3dp-stage-label span { color: #9be5d5; }
.wp3dp-canvas-hint { bottom: 1.15rem; left: 50%; transform: translateX(-50%); white-space: nowrap; opacity: .72; }
.wp3dp-loading, .wp3dp-error { position: absolute; z-index: 3; top: 50%; left: 50%; margin: 0; transform: translate(-50%, -50%); color: rgba(255,255,255,.88); font-size: .86rem; }
.wp3dp-loading[hidden], .wp3dp-error[hidden] { display: none !important; }
.wp3dp-error { max-width: 25rem; text-align: center; color: #ffb5ad; }

.wp3dp-details { display: flex; flex-direction: column; justify-content: center; gap: 2.2rem; padding: clamp(1.65rem, 3.5vw, 3rem); background: #202925; border-left: 1px solid rgba(255,255,255,.1); }
.wp3dp-details h3 { margin: 0; color: #f7f7f2; font-size: 1.35rem; line-height: 1.15; }
.wp3dp-copy { margin: .75rem 0 0; color: #bdc5bd; font-size: .84rem; line-height: 1.65; }
.wp3dp-colour-heading { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; }
.wp3dp-colour-heading output { color: #f5f5ef; font-size: .75rem; font-weight: 700; }
.wp3dp-colour-switcher { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: .85rem; }
.wp3dp-colour-option { position: relative; width: 2rem; height: 2rem; border: 1px solid rgba(30,35,33,.18); border-radius: 50%; background: var(--wp3dp-colour); box-shadow: inset 0 0 0 2px rgba(255,255,255,.34); cursor: pointer; transition: transform .16s ease, box-shadow .16s ease; }
.wp3dp-colour-option:hover { transform: scale(1.1); }
.wp3dp-colour-option.is-active { box-shadow: 0 0 0 2px #202925, 0 0 0 4px #a2e2d0, inset 0 0 0 2px rgba(255,255,255,.4); transform: scale(1.04); }
.wp3dp-colour-option::after { position: absolute; bottom: calc(100% + .55rem); left: 50%; z-index: 4; padding: .35rem .5rem; border-radius: 4px; background: #232927; color: #fff; content: attr(aria-label); font-size: .64rem; font-weight: 700; opacity: 0; pointer-events: none; transform: translate(-50%, 3px); transition: opacity .14s ease, transform .14s ease; white-space: nowrap; }
.wp3dp-colour-option:hover::after, .wp3dp-colour-option:focus-visible::after { opacity: 1; transform: translate(-50%, 0); }
.wp3dp-material-note { display: flex; gap: .65rem; align-items: flex-start; padding-top: 1.2rem; border-top: 1px solid rgba(255,255,255,.12); color: #aeb9b0; font-size: .72rem; line-height: 1.55; }
.wp3dp-material-note > span:first-child { color: #4ebba5; font-size: 1.25rem; line-height: .75; }
body.wp3dp-modal-open { overflow: hidden; }

@media (max-width: 740px) { .wp3dp-modal { padding: 0; } .wp3dp-modal__panel { width: 100%; max-height: 100%; height: 100%; border: 0; border-radius: 0; } .wp3dp-modal__body { grid-template-columns: 1fr; grid-template-rows: minmax(0, 1fr) auto; overflow: auto; } .wp3dp-canvas-wrap { min-height: min(58vh, 500px); } .wp3dp-details { gap: 1.35rem; padding: 1.4rem 1.25rem 1.6rem; } .wp3dp-copy { margin-top: .45rem; } .wp3dp-material-note { display: none; } }
@media (max-width: 420px) { .wp3dp-launch { right: 10px; bottom: 10px; padding: .62rem .8rem; } .wp3dp-modal__header { padding: 1rem 1.1rem; } .wp3dp-modal__header h2 { max-width: 15rem; font-size: .96rem; } .wp3dp-canvas-hint { display: none; } }
