html.swn-vto-is-open,
html.swn-vto-is-open body { overflow: hidden; }

.swn-vto-core[hidden],
.swn-vto-core [hidden] { display: none !important; }

.swn-vto-core {
  position: fixed;
  inset: 0;
  z-index: 2147483000;
  display: grid;
  place-items: center;
  padding: 20px;
  --swn-yellow: #f5e642;
  --swn-black: #0d0d0d;
}

.swn-vto-core__scrim {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  background: rgba(13, 13, 13, .58);
  backdrop-filter: blur(3px);
}

.swn-vto-core__panel {
  position: relative;
  z-index: 1;
  width: min(94vw, 980px);
  background: var(--swn-black);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 24px 80px rgba(0, 0, 0, .42);
}

.swn-vto-core__stage {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  min-height: 420px;
  overflow: hidden;
  background: #171717;
}

.swn-vto-core__camera-view,
.swn-vto-core__model-view {
  position: absolute;
  inset: 0;
}

.swn-vto-core__video,
.swn-vto-core__frame,
.swn-vto-core__canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scaleX(-1);
}

.swn-vto-core__video { visibility: hidden; }
.swn-vto-core__frame { z-index: 1; }
.swn-vto-core__canvas { z-index: 2; pointer-events: none; }

.swn-vto-core__model-view {
  z-index: 3;
  background:
    radial-gradient(circle at 50% 38%, rgba(255,255,255,.98) 0, rgba(247,247,247,.98) 40%, rgba(226,226,226,.98) 100%);
}

.swn-vto-core__model-viewer {
  display: block;
  width: 100%;
  height: 100%;
  background: transparent;
  --poster-color: transparent;
}

.swn-vto-core__model-hint {
  position: absolute;
  left: 50%;
  bottom: 25px;
  z-index: 5;
  transform: translateX(-50%);
  max-width: calc(100% - 160px);
  padding: 7px 13px;
  border-radius: 999px;
  background: rgba(13, 13, 13, .62);
  color: #fff;
  font: 500 12px/1.3 Arial, sans-serif;
  text-align: center;
  white-space: nowrap;
  backdrop-filter: blur(8px);
  pointer-events: none;
}

.swn-vto-core__states {
  position: absolute;
  left: 50%;
  bottom: 66px;
  z-index: 7;
  display: inline-flex;
  transform: translateX(-50%);
  padding: 4px;
  gap: 3px;
  border-radius: 999px;
  background: rgba(13, 13, 13, .72);
  backdrop-filter: blur(10px);
}

.swn-vto-core__states button {
  min-width: 88px;
  border: 0;
  border-radius: 999px;
  padding: 9px 14px;
  background: transparent;
  color: rgba(255,255,255,.75);
  cursor: pointer;
  font: 600 13px/1 Arial, sans-serif;
}

.swn-vto-core__states button.is-active {
  background: #fff;
  color: #111;
}

.swn-vto-core__mark {
  position: absolute;
  top: 16px;
  left: 50%;
  z-index: 8;
  width: 52px;
  height: 52px;
  transform: translateX(-50%);
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--swn-yellow);
  color: var(--swn-black);
  font: 700 24px/1 Arial, sans-serif;
  box-shadow: 0 6px 20px rgba(0, 0, 0, .3);
}

.swn-vto-core__close {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 10;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 50%;
  background: rgba(30, 30, 30, .58);
  color: #fff;
  display: grid;
  place-items: center;
  cursor: pointer;
  backdrop-filter: blur(8px);
}

.swn-vto-core__tools {
  position: absolute;
  top: 50%;
  right: 16px;
  z-index: 9;
  display: flex;
  flex-direction: column;
  gap: 9px;
  transform: translateY(-50%);
}

.swn-vto-core__tool {
  width: 52px;
  min-height: 52px;
  border: 0;
  border-radius: 16px;
  padding: 8px 5px;
  background: rgba(13,13,13,.62);
  color: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  cursor: pointer;
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 14px rgba(0,0,0,.16);
}

.swn-vto-core__tool:hover { background: rgba(13,13,13,.78); }
.swn-vto-core__tool span {
  max-width: 46px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font: 600 9px/1.1 Arial, sans-serif;
}

.swn-vto-core__loader,
.swn-vto-core__consent,
.swn-vto-core__error {
  position: absolute;
  inset: 0;
  z-index: 7;
  display: grid;
  place-items: center;
}

.swn-vto-core__loader { background: rgba(13, 13, 13, .32); }
.swn-vto-core__spinner {
  width: 54px;
  height: 54px;
  border: 3px solid rgba(255, 255, 255, .25);
  border-top-color: #fff;
  border-radius: 50%;
  animation: swn-vto-spin .85s linear infinite;
}
@keyframes swn-vto-spin { to { transform: rotate(360deg); } }

.swn-vto-core__hint {
  position: absolute;
  top: 82px;
  left: 50%;
  z-index: 6;
  transform: translateX(-50%);
  padding: 7px 14px;
  border-radius: 999px;
  background: rgba(13, 13, 13, .58);
  color: #fff;
  font-size: 13px;
  backdrop-filter: blur(6px);
}

.swn-vto-core__error {
  z-index: 9;
  padding: 40px;
  text-align: center;
  color: #fff;
  background: rgba(13, 13, 13, .88);
}

.swn-vto-core__consent {
  z-index: 9;
  padding: 24px;
  background: rgba(13, 13, 13, .72);
  backdrop-filter: blur(4px);
}

.swn-vto-core__consent-card {
  width: min(92%, 430px);
  padding: 28px;
  border-radius: 18px;
  background: rgba(20, 20, 20, .97);
  color: #fff;
  text-align: center;
}

.swn-vto-core__consent-card h2 { margin: 0 0 12px; color: inherit; }
.swn-vto-core__consent-card p { margin: 0; color: rgba(255, 255, 255, .75); line-height: 1.5; }
.swn-vto-core__consent-actions { display: flex; gap: 10px; margin-top: 22px; }
.swn-vto-core__primary,
.swn-vto-core__secondary {
  flex: 1;
  border: 0;
  border-radius: 999px;
  padding: 12px 16px;
  cursor: pointer;
  font-weight: 650;
}
.swn-vto-core__primary { background: var(--swn-yellow); color: var(--swn-black); }
.swn-vto-core__secondary { background: #2c2c2c; color: #fff; }

.swn-vto-core__variants {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 20px;
  z-index: 6;
  display: flex;
  justify-content: center;
  gap: 10px;
  padding: 0 78px 0 20px;
  overflow-x: auto;
  scrollbar-width: none;
}
.swn-vto-core__variants::-webkit-scrollbar { display: none; }
.swn-vto-core__variant {
  width: 84px;
  height: 58px;
  flex: 0 0 auto;
  padding: 4px;
  border: 2px solid transparent;
  border-radius: 10px;
  background: rgba(255, 255, 255, .35);
  cursor: pointer;
}
.swn-vto-core__variant img { width: 100%; height: 100%; object-fit: contain; }
.swn-vto-core__variant.is-active { background: #fff; border-color: #fff; }

.swn-vto-core__model-view .swn-vto-core__variants { color: #111; }

.swn-vto-snapshot__tool {
  position: absolute;
  top: calc(50% - 62px);
  right: 16px;
  z-index: 9;
  width: 52px;
  min-height: 52px;
  border: 0;
  border-radius: 16px;
  padding: 8px 5px;
  background: rgba(13,13,13,.62);
  color: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  cursor: pointer;
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 14px rgba(0,0,0,.16);
}
.swn-vto-snapshot__tool:hover { background: rgba(13,13,13,.78); }
.swn-vto-snapshot__tool:disabled { opacity: .55; cursor: wait; }
.swn-vto-snapshot__tool span {
  max-width: 46px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font: 600 9px/1.1 Arial, sans-serif;
}

.swn-vto-snapshot {
  position: absolute;
  inset: 0;
  z-index: 18;
  display: grid;
  place-items: center;
  padding: 14px;
  background: rgba(13,13,13,.72);
  backdrop-filter: blur(8px);
  font-family: Arial, sans-serif;
}

.swn-vto-snapshot__card {
  width: min(90%, 560px);
  max-height: calc(100% - 8px);
  overflow: hidden;
  padding: 18px;
  border-radius: 20px;
  background: rgba(20,20,20,.98);
  color: #fff;
  text-align: center;
  box-shadow: 0 22px 70px rgba(0,0,0,.34);
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
}
.swn-vto-snapshot__card h2 { margin: 0; color: inherit; font: 700 21px/1.2 Arial, sans-serif; }
.swn-vto-snapshot__card p { margin: 6px 0 12px; color: rgba(255,255,255,.72); font: 400 12px/1.35 Arial, sans-serif; }
.swn-vto-snapshot__preview {
  overflow: hidden;
  border-radius: 14px;
  background: #0d0d0d;
  width: 100%;
  height: clamp(190px, 34vh, 285px);
  min-height: 0;
  flex: 0 1 auto;
}
.swn-vto-snapshot__preview img { display: block; width: 100%; height: 100%; object-fit: contain; }
.swn-vto-snapshot__actions { display: flex; gap: 10px; margin-top: 12px; flex: 0 0 auto; }
.swn-vto-snapshot__primary,
.swn-vto-snapshot__secondary {
  flex: 1;
  min-height: 42px;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  font: 700 13px/1 Arial, sans-serif;
}
.swn-vto-snapshot__primary { background: var(--swn-yellow); color: var(--swn-black); }
.swn-vto-snapshot__secondary { background: #303030; color: #fff; }
.swn-vto-snapshot__error { margin-top: 10px; color: #ffb4b4; font: 600 12px/1.35 Arial, sans-serif; }

@media (max-width: 749px) {
  .swn-vto-core { padding: 10px; }
  .swn-vto-core__panel { width: min(94vw, 520px); border-radius: 18px; }
  .swn-vto-core__stage { aspect-ratio: auto; height: 78dvh; min-height: 0; }
  .swn-vto-core__mark { top: 12px; width: 46px; height: 46px; font-size: 21px; }
  .swn-vto-core__close { top: 12px; right: 12px; }
  .swn-vto-core__hint { top: 70px; }
  .swn-vto-core__variant { width: 72px; height: 50px; }
  .swn-vto-core__tools { right: 10px; }
  .swn-vto-core__tool { width: 48px; min-height: 48px; border-radius: 14px; }
  .swn-vto-core__model-hint { bottom: 18px; max-width: calc(100% - 120px); white-space: normal; }
  .swn-vto-core__states { bottom: 72px; }
  .swn-vto-core__states button { min-width: 74px; padding: 8px 11px; }
  .swn-vto-core__variants { padding-right: 66px; }
  .swn-vto-snapshot__tool { right: 10px; width: 48px; min-height: 48px; border-radius: 14px; }
  .swn-vto-snapshot { padding: 10px; }
  .swn-vto-snapshot__card { width: min(96%, 500px); max-height: calc(100% - 6px); padding: 14px; border-radius: 18px; }
  .swn-vto-snapshot__card h2 { font-size: 19px; }
  .swn-vto-snapshot__preview { height: clamp(180px, 39dvh, 300px); }
  .swn-vto-snapshot__actions { flex-direction: column; gap: 8px; margin-top: 10px; }
  .swn-vto-snapshot__primary,
  .swn-vto-snapshot__secondary { min-height: 40px; }
}
