/* Checkout shares the account portal palette and typography. Hosted card fields
   use only the payment provider's supported theme options. */
#securePaymentModal {
  z-index: 12010; padding: 24px; background: rgba(3, 7, 14, .78);
  backdrop-filter: blur(12px); font-family: "Segoe UI", system-ui, sans-serif;
}
#securePaymentModal .secure-payment-box {
  width: 100%; max-width: 540px; height: auto;
  max-height: calc(100dvh - 48px); padding: 20px 22px 16px;
  display: flex; flex-direction: column; overflow: hidden;
  border: 1px solid #263342; border-radius: 20px; background: #0e151f;
  box-shadow: 0 32px 100px #0008; text-align: left;
}
#securePaymentModal .secure-payment-header {
  display: flex; align-items: center; justify-content: space-between;
  flex-shrink: 0; gap: 20px; margin-bottom: 14px;
}
#securePaymentModal .checkout-wordmark {
  display: flex; align-items: center; gap: 12px; color: #eef5fc;
  font-size: 15px; font-weight: 800; letter-spacing: .15em;
}
#securePaymentModal .checkout-wordmark span {
  border-left: 1px solid #344252; padding-left: 12px;
  color: #8b9fb4; font-size: 10px; font-weight: 600; letter-spacing: .12em;
}
#securePaymentModal .modal-close {
  position: static; width: 32px; height: 32px; padding: 0; flex-shrink: 0;
  display: grid; place-items: center; color: #8b9fb4;
  border: 1px solid transparent; border-radius: 8px; background: transparent;
}
#securePaymentModal .modal-close:hover { background: #ffffff08; border-color: #344252; color: white; }
#securePaymentModal .checkout-summary {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 0 0 16px; margin-bottom: 14px; flex-shrink: 0;
  border-bottom: 1px solid #2a3847;
}
#securePaymentModal .checkout-summary-copy { min-width: 0; }
#securePaymentModal .checkout-eyebrow { color: #8fa7bb; font-size: 10px; font-weight: 600; letter-spacing: .11em; }
#securePaymentModal #paymentPlanTitle {
  margin: 0 0 5px; color: #edf3fa; font: 600 18px/1.3 "Segoe UI", system-ui, sans-serif;
  letter-spacing: -.025em;
}
#securePaymentModal #paymentPlanSummary { margin: 0; font-size: 12px; line-height: 1.6; color: #94a7bb; }
#securePaymentModal #paymentPrice { flex-shrink: 0; white-space: nowrap; color: #d0e9f3; font-size: 25px; font-weight: 600; letter-spacing: -.04em; }
#securePaymentModal .secure-payment-body {
  position: relative; width: 100%; min-height: 240px; max-height: min(400px, calc(100dvh - 280px)); flex: 1 1 auto;
  overflow: auto; scrollbar-width: thin; scrollbar-color: #344758 transparent;
  border-radius: 10px; background: #0e151f;
}
#securePaymentModal .secure-payment-embed { width: 100%; }
#securePaymentModal .payment-iframe-loader {
  position: absolute; inset: 0; z-index: 2; display: flex; flex-direction: column;
  align-items: center; justify-content: center; padding: 24px; text-align: center; background: #0e151f;
}
#securePaymentModal .payment-spinner {
  width: 30px; height: 30px; margin-bottom: 16px;
  border: 2px solid #263342; border-top-color: #67d5ee; border-radius: 50%;
  animation: fxlateCheckoutSpin .9s linear infinite;
}
#securePaymentModal .payment-loader-text { color: #e7eff8; font-size: 13px; font-weight: 600; }
#securePaymentModal .payment-loader-subtext { color: #8fa4b9; font-size: 12px; margin-top: 7px; }
#securePaymentModal .checkout-status-row {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px;
  align-items: center; padding: 12px 0; flex-shrink: 0;
}
#securePaymentModal #paymentDeliveryStatus { margin: 0; color: #a2b6c8; font-size: 12px; line-height: 1.6; }
#securePaymentModal .btn-aion-pill {
  min-height: 36px; height: auto; padding: 9px 13px; border-radius: 8px !important;
  border: 1px solid #314253 !important; background: #182432 !important; color: #d3dfec !important;
  font: 600 11px/1.3 "Segoe UI", system-ui, sans-serif;
  box-shadow: none !important; text-shadow: none !important; transform: none !important;
}
#securePaymentModal .btn-aion-pill:hover { background: #213245 !important; border-color: #638399 !important; }
#securePaymentModal .btn-aion-pill:disabled { opacity: .5; cursor: wait; }
#securePaymentModal .secure-payment-footer {
  display: flex; flex-direction:column; gap:10px; padding-top: 12px; flex-shrink: 0;
  border-top: 1px solid #263342;
}
#securePaymentModal #directCheckoutLink { color: #8fa7bb; text-decoration: none; font-size: 11px; }
#securePaymentModal #directCheckoutLink:hover { color: #b9edf6; }
#securePaymentModal .checkout-legal-links{display:flex;flex-wrap:wrap;gap:8px 16px;font-size:11px;}
#securePaymentModal .checkout-legal-links a{color:#94adbf;text-decoration:underline;text-underline-offset:3px;}
#securePaymentModal button:focus-visible, #securePaymentModal a:focus-visible { outline: 2px solid #8fe4f3; outline-offset: 3px; }
@keyframes fxlateCheckoutSpin { to { transform: rotate(360deg); } }
@media (max-width: 600px) {
  #securePaymentModal { padding: 12px; }
  #securePaymentModal .secure-payment-box { height:auto; max-height: calc(100dvh - 24px); padding: 18px 16px 14px; border-radius: 15px; }
  #securePaymentModal .secure-payment-header { margin-bottom: 14px; }
  #securePaymentModal .checkout-summary { padding: 0 0 14px; margin-bottom: 12px; gap: 14px; }
  #securePaymentModal #paymentPlanTitle { font-size: 16px; }
  #securePaymentModal #paymentPrice { font-size: 24px; }
  #securePaymentModal #paymentPlanSummary { font-size: 11px; }
  #securePaymentModal .checkout-status-row { gap: 12px; padding: 14px 0; }
  #securePaymentModal #paymentDeliveryStatus { font-size: 11px; }
}
@media (prefers-reduced-motion: reduce) { #securePaymentModal .payment-spinner { animation: none; } }
