#checkoutModal {
  width: min(calc(100% - 28px), 460px);
  max-height: calc(100% - 28px);
  padding: 0;
  border: 0;
  border-radius: 9px;
  background: var(--checkout-surface);
  color: var(--checkout-text);
  box-shadow: 0 16px 45px rgba(0, 0, 0, .3);
}
#checkoutModal::backdrop { background: rgba(15, 32, 28, .76); }
.checkout-dialog { position: relative; padding: 30px; }
.checkout-dialog h2 { margin: 0 34px 8px 0; color: var(--checkout-primary); font-size: 1.85rem; letter-spacing: -.025em; }
.checkout-intro { margin: 0 0 20px; }
.checkout-close {
  position: absolute;
  top: 10px;
  right: 12px;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 4px;
  color: var(--checkout-text);
  background: none;
  font-size: 1.8rem;
  line-height: 1;
  cursor: pointer;
}
.checkout-close:hover { background: var(--fog); }
.checkout-group { min-width: 0; margin: 0 0 13px; }
.checkout-group label, .checkout-field-label { display: block; margin: 0 0 4px; font-weight: 600; }
.checkout-group input, .checkout-card-field {
  width: 100%;
  min-height: 48px;
  border: 1px solid #91a69b;
  border-radius: 5px;
  background: #fff;
}
.checkout-group input { padding: 10px 12px; font: inherit; }
.checkout-card-field:focus-within { outline: 2px solid var(--checkout-primary); outline-offset: 1px; }
.checkout-card-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px; }
#payBtn { width: 100%; min-height: 48px; border: 0; border-radius: 5px; background: var(--checkout-primary); color: white; font-weight: 700; cursor: pointer; }
#payBtn:hover:enabled { filter: brightness(1.12); }
#payBtn:disabled { opacity: .58; cursor: not-allowed; }
#checkoutStatus { min-height: 24px; margin: 10px 0 0; }
#checkoutStatus[data-kind="error"] { color: #a52519; }
#checkoutStatus[data-kind="success"] { color: #206243; }
@media (max-width: 480px) { .checkout-dialog { padding: 20px; } }
