html:has(.stripe-checkout-layer) { overflow: hidden; }

.stripe-checkout-layer {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: clamp(12px, 4vw, 48px);
  background: #09282788;
}
.stripe-checkout-panel {
  width: min(100%, 980px);
  min-width: 0;
  margin: auto 0;
  padding: clamp(16px, 3vw, 32px);
  border-radius: 18px;
  background: white;
  color: var(--ink);
  box-shadow: 0 20px 100px #102f3630;
}
.stripe-checkout-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 20px;
}
.stripe-checkout-header h2 { font-size: var(--type-section); }
.stripe-checkout-header button { flex: none; }
.stripe-checkout-panel [data-status] { margin: 12px 0; }
.stripe-checkout-panel [data-error]:empty { display: none; }
.stripe-checkout-panel [data-stripe-mount] { min-width: 0; }
.stripe-payment-element { display: grid; gap: 16px; }
.stripe-payment-element button { justify-self: start; }

@media (max-width: 600px) {
  .stripe-checkout-layer { padding: 0; background: white; }
  .stripe-checkout-panel {
    min-height: 100%;
    padding: max(16px, env(safe-area-inset-top)) 12px max(20px, env(safe-area-inset-bottom));
    border-radius: 0;
    box-shadow: none;
  }
}
