.vv-checkout {
  --checkout-ink: #0b0b1f;
  --checkout-accent: #4b2af2;
  --checkout-line: #e8e2f1;
  position: fixed;
  inset: 0;
  box-sizing: border-box;
  width: min(810px, calc(100vw - 32px));
  height: fit-content;
  max-height: calc(100dvh - 32px);
  margin: auto;
  padding: 0;
  border: 1px solid var(--checkout-line);
  border-radius: 28px;
  background: #fcfbfe;
  color: var(--checkout-ink);
  box-shadow: 0 26px 85px #130a3838;
  overscroll-behavior: contain;
  scrollbar-width: thin;
}

.vv-checkout::backdrop {
  background: #0b0b1f56;
  backdrop-filter: blur(7px);
}

.vv-checkout [hidden] { display: none !important; }

.vv-checkout-shell { padding: clamp(18px, 4vw, 34px); }

.vv-checkout-header {
  position: relative;
  display: grid;
  justify-items: center;
  padding-bottom: 25px;
  text-align: center;
}

.vv-checkout .vv-cart-close {
  position: absolute;
  top: 0;
  right: 0;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  cursor: pointer;
  background: #fff;
}

.vv-checkout-marks {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 59px;
  margin: 0 0 13px;
}

.vv-checkout-mark {
  display: grid;
  place-items: center;
  width: 41px;
  height: 41px;
  border: 1px solid #dcd0f7;
  border-radius: 12px;
  color: #422497;
  background: #efe7ff;
  box-shadow: 0 5px 14px #35216c15;
  font: 600 18px/1 Outfit, sans-serif;
}

.vv-checkout-mark-pr { --mark-turn: -12deg; transform: translate(4px, 4px) rotate(var(--mark-turn)); }
.vv-checkout-mark-ae { --mark-turn: 12deg; transform: translate(-4px, 4px) rotate(var(--mark-turn)); }

.vv-checkout-mark-v {
  z-index: 1;
  width: 52px;
  height: 52px;
  border-radius: 16px;
  background: #fff;
}

.vv-checkout-mark-v img { object-fit: contain; }
.vv-checkout .vv-checkout-kicker { margin: 0; color: #563cb2; font-size: 10px; }
.vv-checkout h2 { margin: 8px 0 16px; font-size: clamp(30px, 6vw, 45px); }
.vv-checkout h2:focus { outline: none; }

.vv-checkout-steps {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 4px;
  margin: 0;
  padding: 4px;
  list-style: none;
  border-radius: 100px;
  background: #f0edf6;
  font: 500 12px/1.2 Inter, sans-serif;
}

.vv-checkout-steps li {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: inherit;
  color: #514865;
}

.vv-checkout-steps li span { font-variant-numeric: tabular-nums; }
.vv-checkout-steps [aria-current] { background: #fff; color: #422497; box-shadow: 0 1px 4px #2b154017; }

.vv-checkout-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  align-items: start;
  gap: 20px;
}

.vv-checkout .vv-cart-content { display: grid; gap: 10px; min-height: 0; padding: 0; }

.vv-checkout .vv-cart-item {
  align-items: start;
  gap: 11px;
  padding: 14px;
  border: 1px solid var(--checkout-line);
  border-radius: 16px;
  background: #fff;
}

.vv-checkout .vv-cart-item p { color: #615774; }
.vv-checkout .vv-cart-item button { color: #615774; cursor: pointer; }
.vv-checkout .vv-cart-item button:hover { color: var(--checkout-accent); }
.vv-checkout .vv-cart-upgrade { margin: 0; cursor: pointer; }

.vv-checkout .vv-cart-empty,
.vv-checkout-review {
  padding: clamp(14px, 3vw, 22px);
  border: 1px solid var(--checkout-line);
  border-radius: 18px;
  background: #fff;
}

.vv-checkout-review h3,
.vv-checkout-summary h3 { margin: 0; font: 500 19px/1.25 Outfit, sans-serif; }

.vv-checkout-review-items { margin: 9px 0 16px; padding: 0; list-style: none; }
.vv-checkout-review-items li {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 9px;
  padding: 10px 0;
  border-bottom: 1px solid var(--checkout-line);
  font: 500 13px/1.4 Inter, sans-serif;
}
.vv-checkout-review-items li > :last-child { white-space: nowrap; }
.vv-checkout-review .vv-cart-app { width: 32px; height: 32px; border-radius: 8px; font-size: 14px; }
.vv-checkout-next { padding: 13px; border-radius: 12px; background: #f5f2fc; font: 500 13px/1.5 Inter, sans-serif; }
.vv-checkout-next p { margin: 5px 0 0; color: #615774; font-weight: 400; }

.vv-checkout-summary {
  padding: clamp(14px, 3vw, 22px);
  border: 1px solid #e5dbfc;
  border-radius: 18px;
  background: linear-gradient(155deg, #f4eeff, #fbf9ff 75%);
}

.vv-checkout .vv-cart-total { gap: 8px; padding-top: 14px; border-top: 1px solid #e0d5f7; }
.vv-checkout .vv-cart-total strong { white-space: nowrap; font-size: clamp(22px, 4vw, 30px); }
.vv-checkout .vv-cart-disclaimer { margin: 10px 0 15px; color: #615774; }

.vv-checkout .vv-checkout-action,
.vv-checkout .vv-cart-inquiry {
  display: flex;
  justify-content: space-between;
  gap: 6px;
  box-sizing: border-box;
  width: 100%;
  min-height: 46px;
  margin: 0;
  padding: 10px 15px;
  font-size: 13px;
  cursor: pointer;
}

.vv-checkout .vv-cart-continue { width: fit-content; margin: 14px auto 0; color: #514865; }
.vv-checkout .vv-checkout-back { padding: 4px 0; border: 0; background: transparent; cursor: pointer; }
.vv-checkout :is(button, a):focus-visible { outline: 2px solid var(--checkout-accent); outline-offset: 3px; }

@media (max-width: 660px) {
  .vv-checkout { width: calc(100vw - 20px); max-height: calc(100dvh - 20px); border-radius: 21px; }
  .vv-checkout-layout { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .vv-checkout-header { padding-bottom: 17px; }
}

@media (prefers-reduced-motion: no-preference) {
  .vv-checkout[open] { animation: vv-checkout-open 340ms cubic-bezier(.17,.77,.28,1.04) both; }
  .vv-checkout[open]::backdrop { animation: vv-checkout-fade 260ms ease-out both; }
  .vv-checkout[open] .vv-checkout-mark { animation: vv-checkout-mark 520ms cubic-bezier(.2,.72,.27,1.23) both; }
  .vv-checkout[open] .vv-checkout-mark-pr { animation-delay: 80ms; }
  .vv-checkout[open] .vv-checkout-mark-ae { animation-delay: 130ms; }
  .vv-checkout[open] :is(.vv-checkout-review, .vv-cart-item, .vv-cart-empty) { animation: vv-checkout-step 270ms ease-out both; }
  .vv-checkout[open] .vv-cart-item + .vv-cart-item { animation-delay: 45ms; }
  .vv-checkout[open][data-view=review] .vv-cart-inquiry { animation: vv-checkout-step 220ms 60ms ease-out both; }
}

@keyframes vv-checkout-open {
  from { opacity: 0; transform: translateY(15px) scale(.97); }
  to { opacity: 1; transform: none; }
}

@keyframes vv-checkout-fade { from { opacity: 0; } }

@keyframes vv-checkout-mark {
  from { opacity: 0; scale: .66; translate: 0 11px; }
  to { opacity: 1; scale: 1; translate: none; }
}

@keyframes vv-checkout-step {
  from { opacity: 0; translate: 0 9px; }
  to { opacity: 1; translate: none; }
}
