.payment-page h1 {
  font-weight: 800;
  letter-spacing: -0.045em;
}
.payment-page .lead {
  max-width: 650px;
  line-height: 1.6;
}
.payment-note {
  display: flex;
  gap: 16px;
  padding: 20px;
  background: #edf4ff;
  border: 1px solid #dce8fc;
  border-radius: 20px;
  margin: 24px 0;
}
.payment-note > span {
  color: #1967d2;
  width: 32px;
  flex-shrink: 0;
}
.payment-note p {
  margin: 0;
  line-height: 1.6;
  font-size: 14px;
}
.payment-empty {
  padding: 30px 24px;
  text-align: center;
  border: 2px dashed #dce2eb;
  border-radius: 24px;
  margin: 24px 0;
}
.payment-empty p {
  max-width: 420px;
  margin: 12px auto;
  color: #5f6878;
  line-height: 1.6;
}
.payment-empty-icon {
  width: 56px;
  margin: 0 auto 20px;
  color: #1a73e8;
}
.payment-card-list {
  display: grid;
  gap: 18px;
  margin: 24px 0;
}
.payment-card {
  display: grid;
  grid-template-columns: 230px 1fr;
  gap: 26px;
  padding: 20px;
  border: 1px solid #dfe5ef;
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 6px 22px #182b4910;
}
.payment-card-face {
  display: grid;
  grid-template-columns: 32px 1fr;
  align-items: center;
  gap: 18px;
  padding: 20px;
  border-radius: 18px;
  background: linear-gradient(135deg, #1650ad, #192d53);
  color: white;
  min-height: 140px;
}
.payment-card-face strong {
  text-align: right;
  font-size: 11px;
}
.payment-card-face b {
  grid-column: 1/-1;
  font-size: 22px;
  letter-spacing: 0.12em;
}
.payment-card-face small {
  grid-column: 1/-1;
  opacity: 0.85;
}
.payment-card-detail {
  align-self: center;
  min-width: 0;
}
.payment-card-detail h2 {
  font-size: 19px;
  margin: 0 0 8px;
  font-weight: 750;
}
.payment-card-detail p {
  font-size: 14px;
  line-height: 1.6;
  color: #5f6878;
  overflow-wrap: anywhere;
}
.payment-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
}
.payment-card-actions button {
  font-size: 13px;
  text-align: left;
  min-height: 44px;
}
.payment-add {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 22px;
  margin: 24px 0;
}
.payment-add p {
  width: 100%;
  margin: 0;
}
.payment-consent {
  padding: 24px;
  border: 2px solid #1a73e8;
  background: #f7faff;
  border-radius: 20px;
  margin: 20px 0;
}
.payment-consent h2 {
  font-size: 22px;
}
.payment-consent p {
  line-height: 1.7;
}
.payment-consent .text-button {
  margin: 12px;
}
.payment-checkout {
  padding-bottom: 60px !important;
}
.payment-form {
  min-height: 480px;
  margin: 28px 0;
  background: #fff;
  border-radius: 20px;
  overflow: hidden;
}
.payment-checkout > .text-button {
  display: block;
  margin: 12px 0;
  min-height: 44px;
  text-align: left;
}
.payment-security {
  font-size: 13px;
  line-height: 1.6;
  color: #59667c;
  max-width: 650px;
}
.payment-page [data-payment-message]:empty {
  display: none;
}
.payment-form iframe {
  max-width: 100%;
}
.payment-account-shortcut {
  display: block;
  margin: 20px 0;
  color: #1a73e8;
  font-weight: 700;
}
@media (max-width: 600px) {
  .payment-card {
    grid-template-columns: 1fr;
    padding: 16px;
    gap: 20px;
  }
  .payment-card-face {
    max-width: 100%;
    min-height: 145px;
  }
  .payment-page h1 {
    font-size: 36px;
  }
  .payment-note {
    padding: 16px;
  }
  .payment-add > .button {
    width: 100%;
  }
  .payment-form {
    margin: 20px -8px;
    border-radius: 8px;
  }
  .payment-consent {
    padding: 18px;
  }
  .payment-consent > .button {
    width: 100%;
    white-space: normal;
  }
  .payment-card-detail h2 {
    font-size: 19px;
  }
}

.payment-form[data-state="loading"]{min-height:100px;background:#f4f7fc}
.payment-form[data-state="error"]{display:none}
.payment-page [aria-busy="true"]{cursor:progress}

.payment-checkout>.payment-retry{margin:20px 0;min-height:48px}

.payment-page [hidden]{display:none!important}

.payment-success-dialog { border: 1px solid #dce6f5; border-radius: 28px; padding: 32px; width: min(440px, calc(100vw - 32px)); box-sizing: border-box; text-align: center; box-shadow: 0 24px 80px #17335830; color: #19283e; }
.payment-success-dialog::backdrop { background: #172b4d66; backdrop-filter: blur(4px); }
.payment-success-mark { margin: 0 auto 20px; width: 68px; height: 68px; display: grid; place-items: center; border-radius: 50%; color: #138143; background: #e5f5eb; font-size: 36px; font-weight: 800; animation: payment-success-pop .35s ease-out; }
.payment-success-dialog h2 { margin: 0 0 10px; }
.payment-success-dialog p { margin: 0 0 24px; line-height: 1.6; }
.payment-success-dialog .button { width: 100%; }
@keyframes payment-success-pop { from { transform: scale(.7); opacity: 0; } to { transform: scale(1); opacity: 1; } }
@media(prefers-reduced-motion:reduce) { .payment-success-mark { animation: none; } }
