body.checkout-open { overflow: hidden; }

.checkout-overlay {
  position: fixed;
  inset: 0;
  z-index: 900;
  background: rgba(5, 10, 14, .68);
  opacity: 0;
  pointer-events: none;
  transition: opacity 240ms ease;
  backdrop-filter: blur(3px);
}

.checkout-overlay.is-open { opacity: 1; pointer-events: auto; }

.checkout-drawer {
  position: fixed;
  z-index: 910;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(580px, 100vw);
  display: flex;
  flex-direction: column;
  background: #0b1116;
  color: #fff;
  box-shadow: -30px 0 80px rgba(0, 0, 0, .32);
  transform: translateX(103%);
  visibility: hidden;
  transition: transform 320ms cubic-bezier(.22, 1, .36, 1), visibility 0s linear 320ms;
}

.checkout-drawer.is-open {
  transform: translateX(0);
  visibility: visible;
  transition-delay: 0s;
}

.checkout-drawer__header {
  position: relative;
  flex: 0 0 auto;
  padding: 30px 78px 26px 34px;
  border-bottom: 1px solid rgba(255, 255, 255, .11);
  background: #11252f;
}

.checkout-drawer__eyebrow {
  display: block;
  margin-bottom: 10px;
  color: #d5c29a;
  font-size: 9px;
  font-weight: 850;
  letter-spacing: .2em;
  text-transform: uppercase;
}

.checkout-drawer__header h2 {
  margin: 0;
  color: #fff;
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 38px;
  font-weight: 400;
  letter-spacing: -.035em;
  line-height: 1.05;
}

.checkout-drawer__price { margin: 9px 0 0; color: rgba(255, 255, 255, .63); font-size: 13px; }

.checkout-drawer__close {
  position: absolute;
  top: 25px;
  right: 26px;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255, 255, 255, .24);
  background: transparent;
  color: #fff;
  font-size: 25px;
  font-weight: 300;
  line-height: 1;
  cursor: pointer;
}

.checkout-drawer__close:hover,
.checkout-drawer__close:focus-visible { border-color: #d5c29a; color: #d5c29a; }

.checkout-drawer__body {
  position: relative;
  flex: 1 1 auto;
  overflow-y: auto;
  padding: 22px 18px 36px;
  background: #0b1116;
}

.checkout-mount { width: 100%; min-height: 590px; }
.checkout-mount iframe { width: 100% !important; max-width: 100% !important; }

.checkout-loading {
  position: absolute;
  inset: 30px 24px auto;
  display: flex;
  align-items: center;
  gap: 12px;
  color: rgba(255, 255, 255, .62);
  font-size: 12px;
  pointer-events: none;
}

.checkout-loading[hidden] { display: none; }
.checkout-loading::before {
  content: '';
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255, 255, 255, .18);
  border-top-color: #d5c29a;
  border-radius: 50%;
  animation: checkout-spin .75s linear infinite;
}

.checkout-fallback {
  margin: 14px 8px 0;
  color: rgba(255, 255, 255, .48);
  font-size: 11px;
  line-height: 1.6;
  text-align: center;
}
.checkout-fallback a { color: #d5c29a; text-decoration: underline; text-underline-offset: 3px; }

.price-card button.button { width: 100%; font-family: inherit; cursor: pointer; }

@keyframes checkout-spin { to { transform: rotate(360deg); } }

@media (prefers-reduced-motion: reduce) {
  .checkout-drawer, .checkout-overlay { transition: none; }
  .checkout-loading::before { animation: none; }
}

@media (max-width: 620px) {
  .checkout-drawer__header { padding: 23px 68px 20px 22px; }
  .checkout-drawer__header h2 { font-size: 32px; }
  .checkout-drawer__close { top: 18px; right: 18px; }
  .checkout-drawer__body { padding: 12px 6px 28px; }
}
