
.vtw-open{margin:12px 0}
.vtw-modal{display:none;position:fixed;inset:0;z-index:999999;background:#05090c;align-items:center;justify-content:center;padding:0}
.vtw-modal.is-open{display:flex}
.vtw-dialog{position:relative;width:100%;height:100%;height:100dvh;max-width:100vw;max-height:100dvh;background:#10171d;color:white;overflow:hidden;padding:0;margin:0;border-radius:0;box-sizing:border-box}
.vtw-stage{position:relative;width:100%;height:100%;background:#111;overflow:hidden}
.vtw-video,.vtw-canvas{position:absolute;inset:0;width:100%;height:100%}
.vtw-video{object-fit:cover;opacity:0;transform:scaleX(-1)}
.vtw-stage.vtw-live .vtw-video{opacity:1}
.vtw-canvas{pointer-events:none}
.vtw-topbar{position:absolute;z-index:3;top:0;left:0;right:0;padding:calc(12px + env(safe-area-inset-top,0px)) 16px 12px;display:flex;align-items:center;justify-content:space-between;background:linear-gradient(#0009,transparent)}
.vtw-title{background:#0009;border-radius:25px;padding:8px 14px;color:#fff;font-size:13px;font-weight:700;letter-spacing:.07em}
.vtw-close{position:static;display:grid;place-items:center;width:44px;height:44px;border:0;border-radius:50%;background:#000a;color:#fff;font-size:30px;line-height:1;cursor:pointer}
.vtw-status{position:absolute;z-index:2;top:76px;left:16px;right:16px;max-width:420px;margin:auto;text-align:center;padding:8px 12px;background:#0008;color:white;border-radius:12px;font-size:13px}
.vtw-status.vtw-ready{display:none}
.vtw-status.vtw-error{background:#581c1ccc}
.vtw-bottom{position:absolute;z-index:3;bottom:0;left:0;right:0;padding:16px 16px calc(16px + env(safe-area-inset-bottom,0px));background:linear-gradient(transparent,#000b 22%,#000c)}
.vtw-fit-controls{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;background:#0009;border-radius:16px;padding:14px 12px}
.vtw-fit-controls label{font-size:13px;color:#fff;font-weight:600;min-width:0}
.vtw-fit-controls output{float:right;font-weight:400;color:#fff}
.vtw-fit-controls input{display:block;width:100%;margin:12px 0 2px;accent-color:#6bb9cc}
.vtw-controls{display:flex;justify-content:center;gap:12px;margin-top:12px}
.vtw-controls button{border:1px solid #ffffff75;background:#0009;color:#fff;border-radius:30px;padding:9px 15px;font-size:12px;cursor:pointer}
@media(min-width:900px){.vtw-dialog{max-width:580px;height:min(95vh,900px);max-height:95vh;border-radius:18px}.vtw-modal{background:#000d;padding:16px}}

/* v1.5: compact mobile controls and on-device selfie preview */
.vtw-title{font-size:12px;letter-spacing:.055em}
.vtw-selfie{background:#68bbd1!important;color:#071820!important;border-color:#68bbd1!important;font-weight:700!important}
.vtw-selfie-preview[hidden]{display:none!important}
.vtw-selfie-preview{position:absolute;inset:0;z-index:6;background:#080d12;display:flex;flex-direction:column;align-items:center;justify-content:center;padding:16px;box-sizing:border-box}
.vtw-selfie-preview img{max-width:100%;max-height:calc(100% - 100px);object-fit:contain;border-radius:8px}
.vtw-selfie-actions{display:flex;gap:8px;flex-wrap:wrap;justify-content:center;margin-top:14px}
.vtw-selfie-actions button{background:#142a34;color:#fff;border:1px solid #6bb9cc;border-radius:25px;padding:10px 14px;font-size:13px}
@media(max-width:430px){.vtw-bottom{padding:10px 10px calc(12px + env(safe-area-inset-bottom,0px))}.vtw-fit-controls{padding:10px;gap:8px}.vtw-controls{gap:7px;margin-top:9px}.vtw-controls button{padding:9px 11px;font-size:11px}.vtw-title{font-size:11px}}

/* v3.9: temporary reflection calibration slider. */
.vtw-fit-controls{grid-template-columns:repeat(2,minmax(0,1fr))}
.vtw-fit-controls .vtw-reflection-control{grid-column:1/-1}
.vtw-reflection-control input{margin-top:5px}


/* v4.10: bottom-right photo overlay, independent of sale badge and zoom. */
.vtw-button-host{position:relative}
.vtw-button-host > button.vtw-gallery-open{
 position:absolute!important;top:auto!important;left:auto!important;
 right:var(--vtw-right,20px)!important;bottom:var(--vtw-bottom,20px)!important;
 z-index:20;margin:0!important;display:inline-flex!important;flex-direction:row!important;
 align-items:center!important;justify-content:center!important;gap:7px;
 width:auto!important;max-width:var(--vtw-max-width,calc(100% - 40px));
 padding:8px 14px!important;min-height:0!important;height:auto!important;
 border-radius:999px;white-space:nowrap!important;line-height:1.2!important;
 font-size:12px!important;box-shadow:none!important;text-shadow:none!important;box-sizing:border-box;
}
.vtw-gallery-open .vtw-try-icon{display:block!important;width:24px!important;height:24px!important;flex:none;color:inherit}
.vtw-gallery-open span{display:inline-block!important;white-space:nowrap!important;line-height:1.2!important}
.vtw-button-host > button.vtw-gallery-open.vtw-compact{padding:6px 8px!important;gap:4px;font-size:10px!important}
.vtw-gallery-open.vtw-compact .vtw-try-icon{width:18px!important;height:18px!important}
