.mx-vto-root {
  --mx-vto-accent: #c45c7a;
  --mx-vto-btn-bg: #fff;
  --mx-vto-btn-text: var(--mx-vto-accent);
  --mx-vto-btn-border: var(--mx-vto-accent);
  --mx-vto-panel-bg: #fff7f5;
  --mx-vto-head-bg: #2a1f24;
  --mx-vto-head-text: #fff;
  --mx-vto-radius: 18px;
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: 8px;
  margin: 0 0 12px;
}
.mx-vto-root:empty,
.mx-vto-root:not(:has(*)) {
  display: none !important;
  margin: 0 !important;
  padding: 0 !important;
  gap: 0 !important;
  height: 0 !important;
  min-height: 0 !important;
  overflow: hidden !important;
}
.mx-vto-trigger {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border: 1.5px solid var(--mx-vto-btn-border, var(--mx-vto-accent, #c45c7a));
  border-radius: 999px;
  background: var(--mx-vto-btn-bg, #fff);
  color: var(--mx-vto-btn-text, var(--mx-vto-accent, #c45c7a));
  font: inherit;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.2;
  cursor: pointer;
  transition: background .15s ease, color .15s ease, border-color .15s ease;
}
.mx-vto-trigger__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 0;
}
.mx-vto-trigger__icon svg {
  display: block;
  width: 16px;
  height: 16px;
}
.mx-vto-trigger:hover,
.mx-vto-root[data-mx-vto-btn-style="solid"] .mx-vto-trigger {
  background: var(--mx-vto-accent, #c45c7a);
  color: #fff;
  border-color: var(--mx-vto-accent, #c45c7a);
}
body.mx-vto-lock { overflow: hidden; }
.mx-vto-overlay {
  position: fixed;
  inset: 0;
  z-index: 2147483646;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: rgba(18, 15, 12, .72);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
}
.mx-vto-overlay.is-open { display: flex; }
.mx-vto-panel {
  position: relative;
  z-index: 1;
  width: min(100%, 440px);
  max-height: 92vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  border-radius: var(--mx-vto-radius, 18px);
  background: var(--mx-vto-panel-bg, #fff7f5);
  box-shadow: 0 18px 50px rgba(0,0,0,.28);
  animation: mx-vto-rise .28s cubic-bezier(.2,.8,.2,1);
}
@keyframes mx-vto-rise {
  from { opacity: 0; transform: translateY(12px) scale(.98); }
  to { opacity: 1; transform: none; }
}
.mx-vto-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 12px;
  background: var(--mx-vto-head-bg, #2a1f24);
  color: var(--mx-vto-head-text, #fff);
}
.mx-vto-head__text { min-width: 0; }
.mx-vto-head strong {
  display: block;
  color: inherit;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.35;
}
.mx-vto-head small {
  display: block;
  margin-top: 4px;
  opacity: .78;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.5;
}
.mx-vto-close {
  flex: 0 0 30px;
  width: 30px;
  height: 30px;
  border: 0;
  border-radius: 50%;
  background: rgba(255,255,255,.12);
  color: inherit;
  font-size: 18px;
  font-weight: 500;
  line-height: 1;
  cursor: pointer;
}
.mx-vto-stage {
  position: relative;
  aspect-ratio: 3 / 2;
  overflow: hidden;
  background: #111;
}
.mx-vto-video,
.mx-vto-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.mx-vto-video { opacity: 0; pointer-events: none; }
.mx-vto-status {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 12px;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(0,0,0,.62);
  color: #fff;
  font-size: 13px;
  text-align: center;
  backdrop-filter: blur(4px);
}
.mx-vto-status[data-kind="error"] { background: rgba(140,24,40,.82); }
.mx-vto-body {
  overflow: auto;
  padding: 14px 16px 16px;
}
.mx-vto-label {
  margin-bottom: 10px;
  color: rgba(0,0,0,.68);
  font-size: 14px;
  font-weight: 500;
}
/* Shade dots — match PDP color dots (ring + circle) */
.mx-vto-shades {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 10px 12px;
  margin-bottom: 14px;
}
.mx-vto-shade {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  max-width: 64px;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  cursor: pointer;
}
.mx-vto-shade__dot {
  box-sizing: border-box;
  width: 32px;
  height: 32px;
  padding: 2px;
  border: 2px solid transparent;
  border-radius: 999px;
  background-color: var(--mx-vto-swatch, #c45c7a);
  background-clip: content-box;
  box-shadow: inset 0 0 0 1px rgba(22, 22, 22, .12);
  flex: 0 0 32px;
  transition: border-color .15s ease;
}
.mx-vto-shade:hover .mx-vto-shade__dot {
  border-color: rgba(22, 22, 22, .28);
}
.mx-vto-shade.is-on .mx-vto-shade__dot {
  border-color: var(--mx-vto-accent, #c45c7a);
  box-shadow:
    inset 0 0 0 1px rgba(22, 22, 22, .08),
    0 0 0 2px color-mix(in srgb, var(--mx-vto-accent, #c45c7a) 22%, transparent);
}
.mx-vto-shade__name {
  max-width: 64px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: rgba(0,0,0,.72);
  font-size: 12px;
  font-weight: 500;
  line-height: 1.2;
  text-align: center;
}
.mx-vto-shade.is-on .mx-vto-shade__name {
  color: var(--mx-vto-accent, #c45c7a);
}
.mx-vto-intensity {
  display: grid;
  gap: 6px;
  margin-bottom: 12px;
  font-size: 14px;
  font-weight: 500;
}
.mx-vto-intensity input {
  width: 100%;
  accent-color: var(--mx-vto-accent, #c45c7a);
}
.mx-vto-apply {
  width: 100%;
  padding: 10px 12px;
  border: 0;
  border-radius: 999px;
  background: var(--mx-vto-accent, #c45c7a);
  color: #fff;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
}
.mx-vto-empty {
  margin: 0 0 12px;
  color: rgba(0,0,0,.72);
  font-size: 12px;
  font-weight: 500;
}
@media (max-width: 480px) {
  .mx-vto-panel { max-height: 96vh; }
  .mx-vto-stage { aspect-ratio: 4 / 5; }
}
