.payment-methods-dialog {
  width: min(680px, calc(100vw - 24px));
  max-height: calc(100vh - 24px);
  border: 0;
  border-radius: 18px;
  padding: 0;
  color: #2f2f36;
  box-shadow: 0 28px 80px rgba(0, 0, 0, .24);
}
.payment-methods-dialog::backdrop { background: rgba(20, 20, 24, .56); backdrop-filter: blur(4px); }
.payment-methods-shell { padding: 26px; background: #fff; }
.payment-methods-header { display: flex; justify-content: space-between; gap: 18px; align-items: flex-start; }
.payment-methods-header p { margin: 0 0 3px; color: #ea1d2c; font-size: 12px; font-weight: 900; text-transform: uppercase; letter-spacing: .08em; }
.payment-methods-header h2 { margin: 0; font-size: 25px; }
.payment-methods-close { width: 38px; height: 38px; border: 0; border-radius: 999px; background: #f5f5f5; font-weight: 900; }
.payment-methods-intro { margin: 10px 0 20px; color: #777; line-height: 1.5; }
.saved-cards-list { display: grid; gap: 10px; }
.saved-card-item { display: grid; grid-template-columns: 54px minmax(0, 1fr) auto; gap: 13px; align-items: center; padding: 14px; border: 1px solid #ececec; border-radius: 13px; background: linear-gradient(135deg, #fff, #fafafa); }
.saved-card-brand { width: 54px; height: 38px; border-radius: 8px; display: grid; place-items: center; background: #24242a; color: #fff; font-size: 11px; font-weight: 900; letter-spacing: .04em; }
.saved-card-details { min-width: 0; display: grid; gap: 3px; }
.saved-card-details strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.saved-card-details span { color: #888; font-size: 13px; }
.remove-saved-card { border: 0; background: transparent; color: #ea1d2c; font-weight: 800; }
.saved-cards-empty { padding: 24px 14px; border: 1px dashed #ddd; border-radius: 13px; text-align: center; color: #777; }
.saved-cards-empty b { display: block; color: #333; margin-bottom: 4px; }
.saved-cards-loader { min-height: 74px; display: flex; align-items: center; justify-content: center; gap: 10px; color: #777; font-weight: 700; }
.saved-cards-loader::before { content: ""; width: 22px; height: 22px; border: 3px solid #eee; border-top-color: #ea1d2c; border-radius: 50%; animation: savedCardSpin .75s linear infinite; }
.saved-cards-actions { display: flex; justify-content: flex-end; margin-top: 16px; }
.saved-card-toggle, .saved-card-submit { border: 0; border-radius: 9px; min-height: 44px; padding: 0 18px; font-weight: 900; }
.saved-card-toggle { background: #fff1f2; color: #ea1d2c; }
.add-card-panel { margin-top: 18px; border-top: 1px solid #eee; padding-top: 18px; }
.add-card-panel h3 { margin: 0 0 4px; }
.add-card-panel > p { margin: 0 0 16px; color: #777; }
.save-card-form { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.save-card-form label { display: grid; gap: 6px; color: #555; font-size: 13px; font-weight: 800; }
.save-card-form .full { grid-column: 1 / -1; }
.saved-card-secure-field, .save-card-form input, .save-card-form select { min-height: 46px; width: 100%; border: 1px solid #ddd; border-radius: 8px; padding: 11px 12px; background: #fff; }
.saved-card-secure-field { padding: 12px; }
.saved-card-hidden-selects { position: absolute; width: 1px; height: 1px; overflow: hidden; opacity: 0; pointer-events: none; }
.saved-card-submit { grid-column: 1 / -1; background: #ea1d2c; color: #fff; margin-top: 4px; }
.saved-card-submit.is-processing { opacity: .75; }
.saved-card-security { grid-column: 1 / -1; margin: 0; color: #777; font-size: 12px; line-height: 1.45; }
.saved-cards-message { min-height: 20px; margin: 14px 0 0; font-size: 13px; font-weight: 800; color: #c62828; }
.saved-cards-message.success { color: #2e7d32; }
.account-payment-btn { margin-bottom: 9px; background: #fff1f2 !important; color: #ea1d2c !important; border: 1px solid #ffd9dc !important; }
@keyframes savedCardSpin { to { transform: rotate(360deg); } }
@media (max-width: 620px) {
  .payment-methods-shell { padding: 21px 16px; }
  .save-card-form { grid-template-columns: 1fr; }
  .save-card-form .full, .saved-card-submit, .saved-card-security { grid-column: auto; }
  .saved-card-item { grid-template-columns: 48px minmax(0, 1fr); }
  .remove-saved-card { grid-column: 2; justify-self: start; padding: 0; }
}
