.checkout-stage-shell--coin {
  display: block;
}

.payment-shell [hidden],
.stripe-payment-shell[hidden],
.payment-hero-card[hidden],
.payment-card[hidden],
.checkout-panel [hidden] {
  display: none !important;
}

.checkout-panel--selector {
  background:
    radial-gradient(circle at top right, rgba(196, 122, 245, 0.08), transparent 30%),
    linear-gradient(180deg, rgba(18, 23, 32, 0.96), rgba(11, 15, 22, 0.98));
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 28px 60px rgba(0, 0, 0, 0.24), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.checkout-panel--selector {
  padding-bottom: 18px;
}

.checkout-panel-head {
  align-items: flex-end;
}

.checkout-panel-head .m-sub {
  color: #aab4ca;
  max-width: 42ch;
  font-size: 0.95rem;
  line-height: 1.55;
}

.checkout-payment-mode-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 18px;
}

.checkout-payment-mode {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(20, 26, 38, 0.96), rgba(13, 18, 28, 0.98));
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 18px;
  color: #eef2ff;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 74px;
  padding: 0 60px 0 22px;
  text-align: center;
  transition: border-color .22s ease, transform .22s ease, box-shadow .22s ease, background .22s ease;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.checkout-payment-mode::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.035), transparent 40%, rgba(196, 122, 245, 0.04));
  opacity: 1;
  pointer-events: none;
}

.checkout-payment-mode:hover {
  border-color: rgba(255, 255, 255, 0.16);
  transform: translateY(-1px);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.22);
}

.checkout-payment-mode.selected {
  border-color: rgba(196, 122, 245, 0.72);
  box-shadow: 0 0 0 1px rgba(196, 122, 245, 0.18), 0 18px 38px rgba(0, 0, 0, 0.28);
  background:
    radial-gradient(circle at top right, rgba(196, 122, 245, 0.12), transparent 34%),
    linear-gradient(180deg, rgba(40, 24, 58, 0.98), rgba(17, 22, 32, 1));
}

.checkout-payment-mode__brand-wrap,
.checkout-payment-mode__selected-mark {
  position: relative;
  z-index: 1;
}

.checkout-payment-mode__brand-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-width: 0;
}

.checkout-payment-mode__selected-mark {
  position: absolute;
  right: 18px;
  top: 50%;
  width: 30px;
  height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.09);
  color: rgba(255, 255, 255, 0.28);
  transform: translateY(-50%);
  transition: background .2s ease, color .2s ease, border-color .2s ease, box-shadow .2s ease;
}

.checkout-payment-mode__selected-mark svg {
  width: 16px;
  height: 16px;
}

.checkout-payment-mode.selected .checkout-payment-mode__selected-mark {
  background: rgba(196, 122, 245, 0.2);
  border-color: rgba(196, 122, 245, 0.38);
  color: #f4ddff;
  box-shadow: 0 0 0 1px rgba(196, 122, 245, 0.16);
}

.checkout-brand,
.stripe-method-badges {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  max-width: 100%;
  white-space: nowrap;
}

.stripe-method-badges {
  flex-wrap: wrap;
}

.stripe-method-chip {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  color: #f3f6ff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .01em;
  min-height: 31px;
  padding: 0 11px;
}

.checkout-logo--visa {
  color: #1a1f71;
  font-size: 1.55rem;
  font-style: italic;
  font-weight: 900;
  letter-spacing: -0.08em;
  text-transform: uppercase;
}

.checkout-logo--mastercard {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.checkout-mastercard-mark {
  position: relative;
  width: 34px;
  height: 22px;
}

.checkout-mastercard-circle {
  position: absolute;
  top: 0;
  width: 22px;
  height: 22px;
  border-radius: 999px;
}

.checkout-mastercard-circle--left {
  left: 0;
  background: #eb001b;
}

.checkout-mastercard-circle--right {
  right: 0;
  background: #f79e1b;
  opacity: 0.98;
}

.checkout-mastercard-wordmark {
  color: #f3f5fb;
  font-size: 1.18rem;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.checkout-paypal-mark {
  color: #f6f8fc;
  font-size: 1.42rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  background: linear-gradient(90deg, #ffffff 0%, #9dbdff 32%, #0070e0 70%, #003087 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.checkout-klarna-pill {
  background: #ffb3c7;
  border-radius: 999px;
  color: #0d1017;
  font-size: 1.14rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  padding: 8px 16px;
}

.checkout-brand--google-pay {
  gap: 12px;
}

.checkout-google-pay-mark {
  width: 26px;
  height: 26px;
}

.checkout-pay-wordmark {
  color: #f4f6fb;
  font-size: 1.32rem;
  font-weight: 700;
  letter-spacing: -0.04em;
}

.checkout-brand--apple-pay {
  gap: 10px;
}

.checkout-apple-mark {
  width: 22px;
  height: 22px;
  color: #f5f7fb;
}

.checkout-apple-pay-wordmark {
  color: #f5f7fb;
  font-size: 1.34rem;
  font-weight: 700;
  letter-spacing: -0.04em;
}

.checkout-brand--crypto {
  gap: 12px;
}

.checkout-crypto-mark {
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #f59e0b;
}

.checkout-crypto-mark svg {
  width: 28px;
  height: 28px;
}

.checkout-crypto-wordmark {
  color: #f5f7fb;
  font-size: 1.18rem;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.checkout-coin-shell {
  margin-top: 16px;
}

.checkout-email-continue {
  width: 100%;
  margin-top: 14px;
}

.checkout-account-card {
  display: grid;
  gap: 12px;
}

.checkout-account-actions {
  display: grid;
  gap: 12px;
}

.checkout-account-button {
  width: 100%;
}

.checkout-coin-shell-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.checkout-coin-shell-head h4 {
  font-family: var(--font-h);
  font-size: 1rem;
  font-weight: 700;
}

.checkout-coin-shell-head p {
  color: #9aa6c0;
  font-size: .84rem;
  line-height: 1.5;
  max-width: 30ch;
}

.payment-hero-card--stripe {
  margin-bottom: 14px;
}

.stripe-payment-shell {
  max-width: 720px;
  margin: 0 auto;
}

.stripe-payment-card {
  background: linear-gradient(180deg, #111722, #0b1018);
  border: 1px solid #ffffff12;
  border-radius: 24px;
  box-shadow: 0 24px 52px #00000024;
}

.stripe-payment-card--simple {
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: center;
  text-align: center;
}

.stripe-payment-shell--awaiting .stripe-payment-card > :not(.stripe-awaiting-shell) {
  display: none !important;
}

.stripe-checkout-copy {
  color: #d7e1ff;
  font-size: .94rem;
  line-height: 1.65;
}

.stripe-checkout-copy--minimal {
  max-width: 30ch;
  margin: 0;
}

.stripe-checkout-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 16px;
}

.stripe-checkout-actions--minimal {
  justify-content: center;
  margin-top: 4px;
}

.stripe-checkout-link {
  min-height: 50px;
}

.stripe-payment-status-link {
  background: transparent;
  border: 0;
  color: #9aa6c0;
  cursor: pointer;
  font-size: .85rem;
  font-weight: 600;
  padding: 0;
}

.stripe-payment-status-link:hover {
  color: #eef2ff;
}

.stripe-payment-meta {
  display: none;
}

.stripe-awaiting-shell {
  display: grid;
  gap: 8px;
  place-items: center;
  min-height: 150px;
}

.stripe-awaiting-line {
  color: #c9d3ea;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 1rem;
  font-weight: 600;
}

.stripe-awaiting-dots {
  display: inline-block;
  width: 3ch;
  overflow: hidden;
  letter-spacing: .2em;
  animation: stripe-awaiting-dots 1.2s steps(4, end) infinite;
}

@keyframes stripe-awaiting-dots {
  0% { width: 0ch; }
  100% { width: 3ch; }
}

@media (max-width: 1040px) {
  .checkout-payment-mode-grid {
    grid-template-columns: 1fr;
  }

  .checkout-coin-shell-head {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 720px) {
  .checkout-panel-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .checkout-payment-mode {
    min-height: 68px;
    padding: 0 50px 0 16px;
  }

  .checkout-brand {
    gap: 12px;
  }

  .checkout-logo--visa {
    font-size: 1.34rem;
  }

  .checkout-mastercard-wordmark,
  .checkout-paypal-mark,
  .checkout-pay-wordmark,
  .checkout-apple-pay-wordmark,
  .checkout-crypto-wordmark {
    font-size: 1.08rem;
  }

  .checkout-klarna-pill {
    font-size: 1rem;
    padding: 7px 14px;
  }

  .checkout-mastercard-mark {
    width: 30px;
    height: 20px;
  }

  .checkout-mastercard-circle {
    width: 20px;
    height: 20px;
  }

  .stripe-payment-card--simple {
    padding: 22px 18px;
  }

  .stripe-checkout-actions--minimal {
    width: 100%;
    flex-direction: column;
  }

  .stripe-checkout-actions--minimal .m-btn-primary,
  .stripe-checkout-actions--minimal .m-btn-ghost {
    width: 100%;
  }
}
