/**
 * Cabine.ai — Virtual Fitting Room v2.0.0
 * https://cabine.ai
 */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;1,300;1,400&family=Jost:wght@300;400;500;600&display=swap');

/* ─────────────────────────────────────────────────────────────
   VARIABLES — scoped to modal and lightbox
───────────────────────────────────────────────────────────── */
.mtg-vf-overlay,
.mtg-vf-lightbox {
  --cab-accent:  #7c3aed;
  --cab-accent2: #ede9fe;
  --w:    #ffffff;
  --b:    #0d0d0d;
  --g1:   #f7f6f4;
  --g2:   #edebe7;
  --g3:   #c9c5bc;
  --g5:   #8c8880;
  --g7:   #44403c;
  --err:  #c0392b;
  --serif: 'Cormorant Garamond', Georgia, serif;
  --sans:  'Jost', 'Helvetica Neue', Arial, sans-serif;
  --ease:  cubic-bezier(0.4, 0, 0.2, 1);
  --spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --t:    220ms;
  --r:    24px;
  --shadow: 0 40px 100px rgba(0,0,0,.22), 0 8px 32px rgba(0,0,0,.10);
}

/* ─────────────────────────────────────────────────────────────
   CTA TRIGGER BUTTON
───────────────────────────────────────────────────────────── */
.cabineai-trigger {
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 100;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 28px;
  background: rgba(8,8,8,.90);
  color: #fff;
  border: none;
  cursor: pointer;
  font-family: 'Jost', 'Helvetica Neue', Arial, sans-serif;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: .20em;
  text-transform: uppercase;
  white-space: nowrap;
  border-radius: 100px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 4px 20px rgba(0,0,0,.32), 0 1px 4px rgba(0,0,0,.18);
  transition: background 220ms, transform 220ms, box-shadow 220ms;
  pointer-events: auto;
}
.cabineai-trigger:hover {
  background: rgba(8,8,8,1);
  transform: translateX(-50%) translateY(-2px);
  box-shadow: 0 12px 32px rgba(0,0,0,.40);
}
.cabineai-trigger:active { transform: translateX(-50%) translateY(0); }
.cabineai-trigger__icon { display: flex; width: 15px; height: 15px; flex-shrink: 0; }
.cabineai-trigger__icon svg { width: 100%; height: 100%; stroke: #fff; }

/* Anchor containers — position relative so CTA is anchored */
.product-cover,
.product__carousel,
.product__images,
.images-container,
.js-images-container { position: relative; }
.product__carousel { overflow: visible !important; }

/* Mobile CTA bar */
.cabineai-trigger.is-mobile-bar {
  position: relative !important; bottom: auto !important; left: auto !important;
  transform: none !important; width: 100%; box-sizing: border-box;
  justify-content: center; padding: 16px 28px; border-radius: 0;
  background: #0a0a0a; backdrop-filter: none; -webkit-backdrop-filter: none;
  box-shadow: 0 -1px 0 rgba(255,255,255,.06); font-size: 11px; letter-spacing: .22em;
}
.cabineai-trigger.is-mobile-bar:hover { transform: none !important; background: #111; }
.cabineai-trigger.is-mobile-bar .cabineai-trigger__icon { width: 16px; height: 16px; }

/* ─────────────────────────────────────────────────────────────
   OVERLAY
───────────────────────────────────────────────────────────── */
.mtg-vf-overlay {
  position: fixed; inset: 0; z-index: 9999;
  background: rgba(6,6,6,.62);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  display: flex; align-items: center; justify-content: center;
  padding: 16px;
  animation: vf-ov-in 280ms ease both;
}
.mtg-vf-overlay[hidden] { display: none; }
@keyframes vf-ov-in { from { opacity:0 } to { opacity:1 } }

/* ─────────────────────────────────────────────────────────────
   MODAL SHELL
───────────────────────────────────────────────────────────── */
.mtg-vf-modal {
  background: #fff;
  width: 100%; max-width: 820px;
  height: min(90vh, 860px);
  border-radius: 24px;
  overflow: hidden;
  display: flex; flex-direction: column;
  box-shadow: 0 40px 100px rgba(0,0,0,.22), 0 8px 32px rgba(0,0,0,.10);
  animation: vf-mo-in 360ms cubic-bezier(0.34,1.56,0.64,1) both;
}
@keyframes vf-mo-in {
  from { opacity:0; transform:translateY(32px) scale(.96) }
  to   { opacity:1; transform:none }
}

/* ─────────────────────────────────────────────────────────────
   HEADER
───────────────────────────────────────────────────────────── */
.vf-header {
  flex-shrink: 0;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 22px; height: 56px;
  background: #fff; border-bottom: 1px solid #edebe7;
  position: relative; z-index: 10;
}
.vf-header__brand { display: flex; align-items: center; gap: 10px; }
.vf-header__logo { width: 28px; height: 28px; flex-shrink: 0; border-radius: 7px; }
.vf-header__title { display: flex; flex-direction: column; gap: 1px; line-height: 1; }
.vf-header__title strong {
  font-family: 'Jost', sans-serif; font-size: 12px; font-weight: 600;
  letter-spacing: .04em; color: #0d0d0d;
}
.vf-header__title small {
  font-family: 'Jost', sans-serif; font-size: 10px; font-weight: 300;
  letter-spacing: .12em; text-transform: uppercase; color: #8c8880;
}
.vf-header__meta { display: flex; align-items: center; gap: 12px; }
.vf-trials-badge {
  font-family: 'Jost', sans-serif; font-size: 10px; font-weight: 400;
  letter-spacing: .06em; color: #8c8880; white-space: nowrap;
}
.vf-close {
  width: 30px; height: 30px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: transparent; border: 1.5px solid #edebe7;
  cursor: pointer; color: #8c8880;
  transition: background 220ms, border-color 220ms, color 220ms;
}
.vf-close svg { width: 12px; height: 12px; stroke: currentColor; }
.vf-close:hover { background: #0d0d0d; border-color: #0d0d0d; color: #fff; }

/* ─────────────────────────────────────────────────────────────
   PROGRESS BAR
───────────────────────────────────────────────────────────── */
.vf-progress { flex-shrink: 0; height: 2px; background: #edebe7; overflow: hidden; }
.vf-progress__bar {
  height: 100%; width: 0%;
  background: #0d0d0d;
  transition: width 600ms cubic-bezier(0.4,0,0.2,1);
}

/* ─────────────────────────────────────────────────────────────
   STEP INDICATORS
───────────────────────────────────────────────────────────── */
.vf-steps { flex-shrink: 0; background: #fff; border-bottom: 1px solid #edebe7; }
.vf-steps__list {
  display: flex; align-items: stretch; list-style: none;
  margin: 0; padding: 0; height: 52px;
}
.vf-steps__item {
  flex: 1; display: flex; align-items: center; justify-content: center;
  gap: 8px; padding: 0 8px; position: relative;
  transition: background 220ms;
}
.vf-steps__item::after {
  content: ''; position: absolute; right: 0; top: 25%; height: 50%;
  width: 1px; background: #edebe7;
}
.vf-steps__item:last-child::after { display: none; }
.vf-steps__dot {
  width: 22px; height: 22px; border-radius: 50%;
  border: 1.5px solid #c9c5bc;
  display: flex; align-items: center; justify-content: center;
  font-family: 'Jost', sans-serif; font-size: 9px; font-weight: 500;
  color: #c9c5bc; flex-shrink: 0;
  transition: all 220ms;
}
.vf-steps__label {
  font-family: 'Jost', sans-serif; font-size: 9.5px; font-weight: 400;
  letter-spacing: .14em; text-transform: uppercase; color: #c9c5bc;
  transition: color 220ms, font-weight 220ms; white-space: nowrap;
}
.vf-steps__item.active { background: #f7f6f4; }
.vf-steps__item.active .vf-steps__dot { border-color: #0d0d0d; background: #0d0d0d; color: #fff; }
.vf-steps__item.active .vf-steps__label { color: #0d0d0d; font-weight: 600; }
.vf-steps__item.done .vf-steps__dot { border-color: #c9c5bc; background: #edebe7; color: #8c8880; }
.vf-steps__item.done .vf-steps__label { color: #8c8880; }

/* ─────────────────────────────────────────────────────────────
   PANEL BODY
───────────────────────────────────────────────────────────── */
.vf-body { flex: 1; min-height: 0; position: relative; overflow: hidden; }

/* ─────────────────────────────────────────────────────────────
   PANELS — shared base
───────────────────────────────────────────────────────────── */
.vf-panel {
  position: absolute; inset: 0; overflow-y: auto; overflow-x: hidden;
  display: flex; flex-direction: column;
  padding: 28px 28px 24px; box-sizing: border-box;
  /* hidden by default */
  opacity: 0; pointer-events: none;
  transform: translateX(24px);
  transition: opacity 280ms cubic-bezier(0.4,0,0.2,1), transform 280ms cubic-bezier(0.4,0,0.2,1);
}
.vf-panel.active { opacity: 1; pointer-events: auto; transform: none; }
.vf-panel.exit   { opacity: 0; transform: translateX(-24px); pointer-events: none; }
.vf-panel__intro {
  font-family: 'Jost', sans-serif; font-size: 12px; font-weight: 300;
  color: #8c8880; letter-spacing: .04em; margin: 0 0 20px; flex-shrink: 0;
}
.vf-panel__actions {
  display: flex; align-items: center; gap: 10px;
  margin-top: auto; padding-top: 20px; flex-shrink: 0;
}

/* ─────────────────────────────────────────────────────────────
   PANEL 1 — Product slider
───────────────────────────────────────────────────────────── */
#mtg-vf-panel-product { padding: 0; }
#mtg-vf-panel-product .vf-panel__intro { padding: 20px 28px 0; margin-bottom: 16px; }
.vf-product-grid { flex: 1; position: relative; overflow: hidden; background: #f7f6f4; min-height: 0; }

/* Slides — injected by JS */
.mtg-vf-slide {
  position: absolute; inset: 0; background: #f7f6f4; cursor: pointer; overflow: hidden;
  opacity: 0; pointer-events: none;
  transform: translateX(48px);
  transition: opacity 360ms ease, transform 360ms ease;
  display: flex; align-items: center; justify-content: center;
}
.mtg-vf-slide--active { opacity: 1; pointer-events: auto; transform: none; z-index: 1; }
.mtg-vf-slide img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; display: block; }
.mtg-vf-slide__num {
  position: absolute; top: 14px; right: 16px; z-index: 2;
  font-family: 'Jost', sans-serif; font-size: 10px; font-weight: 300;
  letter-spacing: .06em; color: rgba(255,255,255,.75);
  background: rgba(0,0,0,.28); backdrop-filter: blur(4px);
  padding: 4px 9px; border-radius: 20px;
}

/* Select pose CTA */
.mtg-vf-select-btn {
  position: absolute; bottom: 24px; left: 50%; transform: translateX(-50%); z-index: 3;
  display: inline-flex; align-items: center; gap: 9px;
  height: 48px; padding: 0 32px;
  background: #0d0d0d; color: #fff; border: none; cursor: pointer;
  font-family: 'Jost', sans-serif; font-size: 9.5px; font-weight: 500;
  letter-spacing: .18em; text-transform: uppercase; white-space: nowrap;
  border-radius: 100px; box-shadow: 0 6px 24px rgba(0,0,0,.30);
  transition: all 220ms ease;
}
.mtg-vf-select-btn svg { width: 13px; height: 13px; stroke: #fff; flex-shrink: 0; transition: transform 220ms; }
.mtg-vf-select-btn:hover { background: #1e1e1e; transform: translateX(-50%) translateY(-2px); box-shadow: 0 12px 32px rgba(0,0,0,.36); }
.mtg-vf-select-btn:hover svg { transform: translateX(3px); }

/* Arrows */
.mtg-vf-slider-arrow {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 4;
  width: 38px; height: 38px; border-radius: 50%;
  background: rgba(255,255,255,.92); border: 1px solid rgba(0,0,0,.06);
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  color: #0d0d0d; box-shadow: 0 2px 12px rgba(0,0,0,.14);
  backdrop-filter: blur(4px); transition: all 220ms;
}
.mtg-vf-slider-arrow--prev { left: 14px; }
.mtg-vf-slider-arrow--next { right: 14px; }
.mtg-vf-slider-arrow svg { width: 17px; height: 17px; stroke: currentColor; }
.mtg-vf-slider-arrow:hover { background: #0d0d0d; color: #fff; }
.mtg-vf-slider-arrow:disabled { opacity: .2; cursor: not-allowed; pointer-events: none; }

/* Dots */
.mtg-vf-slider-dots {
  position: absolute; bottom: 80px; left: 50%; transform: translateX(-50%); z-index: 3;
  display: flex; gap: 5px;
  background: rgba(255,255,255,.8); backdrop-filter: blur(4px);
  padding: 5px 10px; border-radius: 20px;
}
.mtg-vf-dot { width: 5px; height: 5px; border-radius: 50%; background: #c9c5bc; cursor: pointer; transition: background 220ms, width 220ms; }
.mtg-vf-dot.active { background: #0d0d0d; width: 16px; border-radius: 3px; }

/* ─────────────────────────────────────────────────────────────
   PANEL 2 — Upload / Dropzone
───────────────────────────────────────────────────────────── */
.vf-dropzone {
  flex: 1; min-height: 180px; position: relative;
  display: flex; align-items: center; justify-content: center;
  border: 1.5px dashed #c9c5bc; border-radius: 14px;
  background: #f7f6f4; cursor: pointer; overflow: hidden;
  margin-bottom: 16px; outline: none;
  transition: border-color 220ms, background 220ms;
}
.vf-dropzone:hover,
.vf-dropzone:focus-visible,
.vf-dropzone.drag-over { border-color: #0d0d0d; background: #edebe7; }

/* CRITICAL — hide native file input, cover entire dropzone */
.vf-dropzone__input {
  position: absolute; inset: 0; width: 100%; height: 100%;
  opacity: 0; cursor: pointer; z-index: 2;
  font-size: 0; /* prevent any layout leakage */
}
.vf-dropzone__empty {
  display: flex; flex-direction: column; align-items: center;
  gap: 12px; padding: 36px 24px; pointer-events: none; text-align: center;
  position: relative; z-index: 1;
}
.vf-dropzone__icon { display: flex; align-items: center; justify-content: center; }
.vf-dropzone__icon svg { width: 56px; height: 56px; transition: transform 220ms; }
.vf-dropzone:hover .vf-dropzone__icon svg { transform: translateY(-3px); }
.vf-dropzone__label {
  margin: 0; font-family: 'Jost', sans-serif; font-size: 13px; font-weight: 500;
  color: #0d0d0d; letter-spacing: .02em;
}
.vf-dropzone__hint {
  margin: 0; font-family: 'Jost', sans-serif; font-size: 11px; font-weight: 300;
  color: #8c8880; letter-spacing: .02em;
}
.vf-dropzone__preview {
  position: absolute; inset: 0; z-index: 3;
  background: #f7f6f4; display: flex; align-items: center; justify-content: center;
}
.vf-dropzone__preview[hidden] { display: none; }
.vf-dropzone__preview img { max-width: 100%; max-height: 100%; object-fit: contain; display: block; }
.vf-dropzone__remove {
  position: absolute; top: 10px; right: 10px; width: 30px; height: 30px; border-radius: 50%;
  background: rgba(255,255,255,.95); border: 1.5px solid #edebe7; cursor: pointer;
  display: flex; align-items: center; justify-content: center; z-index: 4;
  transition: all 220ms; box-shadow: 0 2px 8px rgba(0,0,0,.12);
}
.vf-dropzone__remove svg { width: 11px; height: 11px; stroke: #0d0d0d; }
.vf-dropzone__remove:hover { background: #0d0d0d; border-color: #0d0d0d; }
.vf-dropzone__remove:hover svg { stroke: #fff; }

.vf-upload-error {
  font-family: 'Jost', sans-serif; font-size: 11.5px; font-weight: 400;
  color: #c0392b; background: #fef2f2; border: 1px solid #fecaca;
  border-radius: 8px; padding: 10px 14px; margin: 0 0 14px; flex-shrink: 0;
}
.vf-upload-error[hidden] { display: none; }

.vf-upload-tips { flex-shrink: 0; margin-bottom: 4px; }
.vf-upload-tips ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.vf-upload-tips li {
  font-family: 'Jost', sans-serif; font-size: 11px; font-weight: 300;
  color: #8c8880; padding-left: 16px; position: relative; letter-spacing: .02em;
}
.vf-upload-tips li::before { content: '—'; position: absolute; left: 0; color: #c9c5bc; font-size: 10px; }

/* ─────────────────────────────────────────────────────────────
   BUTTONS
───────────────────────────────────────────────────────────── */
.vf-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  cursor: pointer; font-family: 'Jost', sans-serif;
  font-size: 9.5px; font-weight: 500; letter-spacing: .18em; text-transform: uppercase;
  white-space: nowrap; border-radius: 100px; border: 1.5px solid transparent;
  transition: all 220ms ease; height: 48px; padding: 0 28px; text-decoration: none;
}
.vf-btn svg { width: 14px; height: 14px; flex-shrink: 0; }
.vf-btn--primary {
  background: #0d0d0d; color: #fff; border-color: #0d0d0d;
  box-shadow: 0 2px 12px rgba(0,0,0,.14); flex: 1;
}
.vf-btn--primary svg { stroke: #fff; }
.vf-btn--primary:hover:not(:disabled) {
  background: #1e1e1e; border-color: #1e1e1e;
  transform: translateY(-1px); box-shadow: 0 8px 24px rgba(0,0,0,.22);
}
.vf-btn--primary:disabled {
  background: #edebe7; color: #c9c5bc; border-color: #edebe7;
  cursor: not-allowed; box-shadow: none;
}
.vf-btn--secondary {
  background: transparent; color: #44403c; border-color: #edebe7;
}
.vf-btn--secondary:hover { border-color: #0d0d0d; color: #0d0d0d; background: #f7f6f4; }
.vf-btn--outline { background: transparent; color: #0d0d0d; border-color: #0d0d0d; }
.vf-btn--outline:hover { background: #0d0d0d; color: #fff; }

/* ─────────────────────────────────────────────────────────────
   PANEL 3 — Loading
───────────────────────────────────────────────────────────── */
.vf-panel--centered {
  align-items: center; justify-content: center;
  text-align: center; gap: 20px; background: #fff;
}
.vf-loading-visual { display: flex; flex-direction: column; align-items: center; gap: 16px; width: 100%; max-width: 280px; }
.vf-spinner { width: 52px; height: 52px; animation: vf-spin 1.1s linear infinite; }
.vf-spinner svg { width: 100%; height: 100%; display: block; }
@keyframes vf-spin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
.vf-gen-bar { width: 100%; height: 3px; background: #edebe7; border-radius: 3px; overflow: hidden; }
.vf-gen-bar__fill { height: 100%; width: 0%; background: #0d0d0d; border-radius: 3px; transition: width 800ms ease; }
.vf-gen-eta { font-family: 'Jost', sans-serif; font-size: 11px; font-weight: 300; color: #8c8880; letter-spacing: .06em; margin: 0; }
.vf-gen-status {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 18px; font-weight: 300; font-style: italic;
  color: #0d0d0d; letter-spacing: .02em; margin: 0;
  max-width: 320px; line-height: 1.4;
  transition: opacity 260ms ease;
}
#mtg-vf-loading-status.fading { opacity: 0; }
.vf-gen-steps { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; justify-content: center; }
.cab-step {
  font-family: 'Jost', sans-serif; font-size: 8.5px; font-weight: 400;
  letter-spacing: .14em; text-transform: uppercase; color: #c9c5bc;
  padding: 4px 10px; border: 1px solid #edebe7; border-radius: 20px;
  transition: all 300ms ease;
}
.cab-step.active { color: #0d0d0d; border-color: #0d0d0d; background: rgba(13,13,13,.04); font-weight: 600; }
.cab-step.done   { color: #c9c5bc; text-decoration: line-through; opacity: .5; }
.vf-loading-disclaimer {
  font-family: 'Jost', sans-serif; font-size: 10px; font-weight: 300;
  color: #c9c5bc; letter-spacing: .06em; margin: 0;
}

/* ─────────────────────────────────────────────────────────────
   PANEL 4 — Result
───────────────────────────────────────────────────────────── */
.vf-panel--result { padding: 0; overflow: hidden; flex-direction: row; background: #111; }
.mtg-vf-result__photo {
  flex: 1; min-width: 0; position: relative; overflow: hidden;
  background: #111; display: flex; align-items: center; justify-content: center;
}
.mtg-vf-result__photo::before {
  content: ''; position: absolute; inset: -24px;
  background-image: var(--img-bg, none);
  background-size: cover; background-position: center;
  filter: blur(22px) brightness(.28) saturate(.6); z-index: 0;
}
.mtg-vf-result__photo img { position: relative; z-index: 1; max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; display: block; }
.vf-result__zoom {
  position: absolute; top: 14px; right: 14px; z-index: 3;
  width: 36px; height: 36px; border-radius: 50%;
  background: rgba(255,255,255,.16); border: 1px solid rgba(255,255,255,.20);
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  backdrop-filter: blur(6px); transition: all 220ms;
}
.vf-result__zoom svg { width: 14px; height: 14px; stroke: #fff; }
.vf-result__zoom:hover { background: rgba(255,255,255,.28); transform: scale(1.08); }
.vf-result__info {
  width: 260px; flex-shrink: 0; background: #fff;
  padding: 28px 24px; display: flex; flex-direction: column; gap: 14px;
  overflow-y: auto; box-shadow: -8px 0 32px rgba(0,0,0,.12);
}
.vf-result__trials {
  font-family: 'Jost', sans-serif; font-size: 10px; font-weight: 300;
  color: #8c8880; letter-spacing: .04em; margin: 0;
}
.vf-result__actions { display: flex; flex-direction: column; gap: 10px; margin-top: auto; }
.vf-result__actions .vf-btn { width: 100%; height: 44px; font-size: 9px; flex: none; }

/* ─────────────────────────────────────────────────────────────
   FOOTER
───────────────────────────────────────────────────────────── */
.vf-footer {
  flex-shrink: 0; display: flex; align-items: center; justify-content: space-between;
  padding: 0 22px; height: 38px; background: #f7f6f4; border-top: 1px solid #edebe7; gap: 16px;
}
.vf-footer__brand {
  display: inline-flex; align-items: center; gap: 5px;
  font-family: 'Jost', sans-serif; font-size: 9.5px; font-weight: 300;
  letter-spacing: .08em; color: #8c8880; text-decoration: none; transition: color 220ms;
}
.vf-footer__brand:hover { color: #0d0d0d; }
.vf-footer__brand svg { width: 58px; height: 14px; }
.vf-footer__privacy {
  display: inline-flex; align-items: center; gap: 5px;
  font-family: 'Jost', sans-serif; font-size: 9px; font-weight: 300;
  letter-spacing: .04em; color: #c9c5bc;
}
.vf-footer__privacy svg { width: 11px; height: 11px; flex-shrink: 0; stroke: #c9c5bc; }

/* ─────────────────────────────────────────────────────────────
   LIGHTBOX
───────────────────────────────────────────────────────────── */
.mtg-vf-lightbox {
  position: fixed; inset: 0; z-index: 99999;
  background: rgba(0,0,0,.96);
  display: flex; align-items: center; justify-content: center;
  animation: vf-lb-in 240ms ease both;
}
.mtg-vf-lightbox[hidden] { display: none; }
@keyframes vf-lb-in { from { opacity:0 } to { opacity:1 } }
.mtg-vf-lightbox img {
  max-width: min(90vw,700px); max-height: calc(100vh - 120px);
  object-fit: contain; border-radius: 6px;
  box-shadow: 0 40px 100px rgba(0,0,0,.6);
  animation: vf-lb-img 300ms cubic-bezier(0.34,1.56,0.64,1) both;
}
@keyframes vf-lb-img { from { opacity:0; transform:scale(.92) } to { opacity:1; transform:scale(1) } }
.mtg-vf-lightbox__close {
  position: absolute; top: 20px; right: 20px;
  width: 42px; height: 42px; border-radius: 50%;
  background: rgba(255,255,255,.10); border: 1px solid rgba(255,255,255,.18);
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  transition: all 200ms;
}
.mtg-vf-lightbox__close svg { width: 16px; height: 16px; stroke: #fff; }
.mtg-vf-lightbox__close:hover { background: rgba(255,255,255,.22); transform: scale(1.08); }

/* ─────────────────────────────────────────────────────────────
   RESPONSIVE — mobile
───────────────────────────────────────────────────────────── */
@media (max-width: 640px) {
  .mtg-vf-overlay { padding: 0; align-items: flex-end; }
  .mtg-vf-modal {
    max-width: 100%; height: 92vh; border-radius: 20px 20px 0 0;
    animation: vf-mo-mob-in 340ms cubic-bezier(0.34,1.56,0.64,1) both;
  }
  @keyframes vf-mo-mob-in { from { opacity:0; transform:translateY(40px) } to { opacity:1; transform:none } }
  .vf-header { padding: 0 16px; height: 50px; }
  .vf-header__title small { display: none; }
  .vf-steps__list { height: 44px; }
  .vf-steps__label { font-size: 8px; letter-spacing: .10em; }
  .vf-steps__dot { width: 18px; height: 18px; font-size: 8px; }
  .vf-panel { padding: 20px 16px 16px; }
  .vf-panel__actions { flex-wrap: wrap; }
  .vf-btn--primary, .vf-btn--secondary { width: 100%; flex: none; }
  /* Result stacks vertically */
  .vf-panel--result { flex-direction: column; overflow-y: auto; }
  .mtg-vf-result__photo { height: 46vw; min-height: 200px; flex: none; }
  .vf-result__info { width: 100%; padding: 20px 16px; box-shadow: 0 -6px 24px rgba(0,0,0,.12); }
  .vf-result__info::before {
    content: ''; display: block; width: 36px; height: 3px;
    background: #edebe7; border-radius: 2px; margin: 0 auto 12px;
  }
  .mtg-vf-lightbox img { max-width: 100vw; max-height: calc(100vh - 90px); border-radius: 0; }
  .vf-footer { display: none; }
}
