:root {
  --checkout-pink: #ff4b91;
  --checkout-surface: #0c0b0c;
  --checkout-muted: #9d969a;
}

body.checkout-open {
  overflow: hidden;
}

.checkout-overlay {
  position: fixed;
  z-index: 10000;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .35s cubic-bezier(.16, 1, .3, 1);
}

.checkout-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

.checkout-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, .78);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.checkout-dialog {
  position: relative;
  z-index: 1;
  width: min(510px, 100%);
  max-height: min(780px, calc(100vh - 48px));
  overflow: auto;
  padding: 38px;
  border: 1px solid rgba(255, 255, 255, .11);
  border-radius: 24px;
  color: #fff;
  background:
    radial-gradient(circle at 92% 4%, rgba(255, 75, 145, .15), transparent 34%),
    linear-gradient(145deg, #181517, #080808);
  box-shadow: 0 40px 120px rgba(0, 0, 0, .45);
  transform: translateY(24px) scale(.98);
  transition: transform .4s cubic-bezier(.16, 1, .3, 1);
}

.checkout-overlay.open .checkout-dialog {
  transform: none;
}

.checkout-close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, .13);
  border-radius: 50%;
  color: #aaa3a7;
  background: rgba(255, 255, 255, .04);
  cursor: pointer;
}

.checkout-close:hover,
.checkout-close:focus-visible {
  color: #fff;
  border-color: rgba(255, 255, 255, .35);
  outline: none;
}

.checkout-eyebrow {
  margin-bottom: 13px;
  color: #ff7caf;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.checkout-title {
  margin: 0 42px 9px 0;
  font-size: clamp(30px, 6vw, 43px);
  line-height: 1;
  letter-spacing: -.055em;
  font-weight: 500;
}

.checkout-subtitle {
  margin: 0 0 25px;
  color: var(--checkout-muted);
  font-size: 13px;
  line-height: 1.55;
}

.checkout-trust {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 27px;
}

.checkout-trust-item {
  min-width: 0;
  padding: 13px 11px;
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 13px;
  background: rgba(255, 255, 255, .035);
}

.checkout-trust-item strong,
.checkout-trust-item span {
  display: block;
}

.checkout-trust-item strong {
  margin-bottom: 5px;
  font-size: 10px;
}

.checkout-trust-item span {
  color: #8e878b;
  font-size: 8px;
  line-height: 1.35;
}

.checkout-field {
  margin-bottom: 16px;
}

.checkout-label {
  display: block;
  margin-bottom: 8px;
  color: #8e878b;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: .075em;
  text-transform: uppercase;
}

.checkout-input,
.checkout-card-element {
  width: 100%;
  min-height: 48px;
  padding: 14px 15px;
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 11px;
  color: #fff;
  background: rgba(255, 255, 255, .045);
  outline: none;
  transition: border-color .25s ease, background .25s ease;
}

.checkout-input::placeholder {
  color: #625d60;
}

.checkout-input:focus,
.checkout-card-element:focus-within {
  border-color: rgba(255, 103, 162, .65);
  background: rgba(255, 255, 255, .065);
}

.checkout-summary {
  margin: -8px 0 23px;
  color: #918a8e;
  font-size: 11px;
}

.checkout-consent {
  display: grid;
  grid-template-columns: 18px 1fr;
  gap: 11px;
  align-items: start;
  margin: 18px 0;
  color: #aaa3a7;
  font-size: 10px;
  line-height: 1.55;
}

.checkout-consent input {
  width: 16px;
  height: 16px;
  margin: 1px 0 0;
  accent-color: var(--checkout-pink);
}

.checkout-consent a,
.checkout-legal a {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.checkout-action {
  width: 100%;
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 999px;
  color: #080808;
  background: #fff;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: transform .3s cubic-bezier(.16, 1, .3, 1), opacity .25s ease;
}

.checkout-action:hover {
  transform: translateY(-2px);
}

.checkout-action:disabled {
  cursor: wait;
  opacity: .55;
  transform: none;
}

.checkout-back {
  margin: 0 0 19px;
  padding: 0;
  border: 0;
  color: #8f888c;
  background: none;
  font-size: 11px;
  cursor: pointer;
}

.checkout-back:hover {
  color: #fff;
}

.checkout-errors {
  min-height: 19px;
  margin-top: 9px;
  color: #ff8ca5;
  font-size: 10px;
  line-height: 1.45;
}
.checkout-errors a {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.checkout-secure {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 15px;
  color: #777074;
  font-size: 9px;
  letter-spacing: .035em;
}

.checkout-secure::before {
  content: "✓";
  width: 18px;
  height: 18px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #52d397;
  background: rgba(82, 211, 151, .08);
}

.checkout-legal {
  margin: 17px 0 0;
  color: #716b6e;
  text-align: center;
  font-size: 9px;
  line-height: 1.55;
}

.checkout-success {
  padding: 30px 0 15px;
  text-align: center;
}

.checkout-success-icon {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  margin: 0 auto 24px;
  border: 1px solid rgba(82, 211, 151, .25);
  border-radius: 50%;
  color: #52d397;
  background: rgba(82, 211, 151, .08);
  font-size: 20px;
}

.checkout-success h3 {
  margin: 0 0 12px;
  font-size: 29px;
  letter-spacing: -.045em;
}

.checkout-success p {
  margin: 0;
  color: #aaa3a7;
  font-size: 12px;
  line-height: 1.65;
}

.checkout-unavailable {
  margin-top: 20px;
  padding: 14px;
  border: 1px solid rgba(255, 140, 165, .2);
  border-radius: 12px;
  color: #d9b5bf;
  background: rgba(255, 90, 130, .055);
  font-size: 11px;
  line-height: 1.5;
}

@media (max-width: 560px) {
  .checkout-overlay {
    padding: 12px;
  }

  .checkout-dialog {
    max-height: calc(100vh - 24px);
    padding: 31px 22px 26px;
    border-radius: 20px;
  }

  .checkout-trust {
    grid-template-columns: 1fr;
  }

  .checkout-trust-item {
    display: grid;
    grid-template-columns: .85fr 1.15fr;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
  }

  .checkout-trust-item strong {
    margin: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .checkout-overlay,
  .checkout-dialog,
  .checkout-action {
    transition: none;
  }
}
