[hidden] {
  display: none !important;
}
.stripe-fields {
  margin: 24px 0;
  min-height: 190px;
}
.consent-label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 20px 0;
  font-size: 14px;
  line-height: 1.6;
  color: #414b60;
}
.consent-label input {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  margin: 4px 0;
  accent-color: #3c59e7;
}
.text-action {
  display: inline-block;
  border: 0;
  background: none;
  color: #3c59e7;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
  padding: 8px 0;
  font-size: 16px;
}
.payment-input {
  width: 100%;
  min-width: 0;
}
.payment-input:focus {
  outline: 2px solid #3c59e7;
  outline-offset: 1px;
}
#express-checkout-element {
  margin: 18px 0;
}
.purchase-success {
  max-width: 580px;
  margin: 0 auto 70px;
  padding: 36px;
  border: 1px solid #dce7df;
  border-radius: 18px;
  background: #f8fcfa;
  text-align: center;
}
.success-symbol {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #e4f4eb;
  color: #287752;
  font-size: 28px;
  margin: 0 auto 18px;
}
.purchase-success p {
  margin: 16px 0;
}
.purchase-success .text-action {
  margin-top: 14px;
}
.checkout-pay-button[href] {
  display: flex;
  text-decoration: none;
}
.actual-file {
  display: block !important;
}
.actual-file .preview-file-row {
  display: flex;
  min-height: 90px;
  padding: 22px !important;
}
.actual-file .preview-file-details {
  min-width: 0;
}
.actual-file .preview-file-details h2 {
  overflow-wrap: anywhere;
}
.billing-home {
  margin-left: auto;
  color: #3c59e7;
}
.billing-main {
  max-width: 920px;
  padding-top: 40px;
  padding-bottom: 60px;
}
.billing-main h1 {
  font-size: 42px;
  letter-spacing: -1.7px;
  margin: 10px 0 20px;
}
.billing-main h1 span {
  color: #3c59e7;
}
.billing-panel {
  background: #fff;
  border: 1px solid #e1e6ef;
  border-radius: 16px;
  padding: 28px;
  margin: 24px 0;
  box-shadow: 0 10px 25px #24345506;
}
.billing-panel h2 {
  font-size: 24px;
  margin-bottom: 14px;
  letter-spacing: -0.5px;
}
.billing-panel p {
  color: #626a7c;
  font-size: 16px;
  line-height: 1.6;
}
.billing-panel form {
  margin-top: 20px;
}
.billing-panel label {
  display: block;
  font-size: 16px;
  margin: 16px 0 8px;
}
.billing-panel input {
  height: 50px;
  border: 1px solid #dbe1ed;
  border-radius: 8px;
  background: #fafbfe;
  padding: 12px;
  font: inherit;
}
.billing-panel .checkout-pay-button {
  max-width: 440px;
}
.billing-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
  flex-wrap: wrap;
}
.status-pill {
  font-size: 14px;
  border-radius: 20px;
  background: #eef2ff;
  color: #3c59e7;
  padding: 5px 12px;
}
.billing-account-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.billing-facts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin: 12px 0 24px;
}
.billing-facts dt {
  font-size: 14px;
  color: #697386;
}
.billing-facts dd {
  margin: 5px 0 0;
  font-size: 18px;
}
.billing-actions {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  margin-top: 24px;
}
.secondary-button {
  border: 1px solid #d8dfed;
  border-radius: 8px;
  background: white;
  color: #3c59e7;
  font: inherit;
  font-size: 16px;
  padding: 11px 16px;
  cursor: pointer;
}
.table-scroll {
  overflow: auto;
}
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 16px;
  text-align: left;
}
th,
td {
  padding: 15px 8px;
  border-bottom: 1px solid #edf0f6;
  white-space: nowrap;
}
th {
  color: #697386;
  font-size: 14px;
}
#billing-status {
  font-size: 16px;
  color: #47598b;
  min-height: 26px;
}
.cancel-dialog {
  max-width: 480px;
  width: calc(100% - 32px);
  border: 1px solid #dfe4ef;
  border-radius: 16px;
  padding: 28px;
  color: #202534;
}
.cancel-dialog::backdrop {
  background: #17233d77;
}
.cancel-dialog h2 {
  font-size: 25px;
}
.cancel-dialog p {
  font-size: 16px;
  margin: 16px 0;
}
.cancel-dialog .text-action {
  display: block;
  margin: 10px auto 0;
}
@media (max-width: 600px) {
  .billing-main {
    padding-top: 26px;
  }
  .billing-main h1 {
    font-size: 32px;
    letter-spacing: -1px;
  }
  .billing-panel {
    padding: 20px;
    margin: 20px 0;
  }
  .billing-facts {
    grid-template-columns: 1fr;
    gap: 18px;
  }
  .billing-actions {
    gap: 12px 20px;
  }
  .purchase-success {
    padding: 25px 20px;
  }
  .consent-label {
    font-size: 14px;
  }
  .checkout-header .brand {
    font-size: 22px;
  }
}

/* Conventional checkout: native wallets followed by a collapsible card choice. */
#checkout-form > .payment-total { margin: 0 0 20px; padding: 0 0 18px; border-top: 0; border-bottom: 1px solid #e8ebf2; }
.payment-methods h3 { margin: 0 0 12px; color: #1f293b; font-size: 15px; font-weight: 650; }
.payment-methods #express-checkout-element { margin: 0 0 12px; }
.card-method-button { display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; min-height: 48px; padding: 10px 14px; border: 1px solid transparent; border-radius: 8px; background: #535761; color: #fff; font: 650 15px/1.3 Arial, sans-serif; text-align: left; cursor: pointer; }
.card-method-button:hover { background: #404550; }
.card-method-button:focus-visible { outline: 3px solid #3c59e7; outline-offset: 3px; }
.card-method-button[aria-expanded="true"] { background: #f1f3fe; border-color: #3c59e7; color: #273a94; }
.card-method-button:disabled { opacity: .55; cursor: wait; }
.card-method-button .card-brands { gap: 4px; }
.card-method-button .card-brand { width: 33px; height: 22px; }
#card-payment-panel .stripe-fields { margin: 22px 0; }
@media (max-width: 365px) { .card-method-button { gap: 8px; padding-inline: 10px; font-size: 14px; } .card-method-button .card-brand { width: 29px; } }

.payment-method-stage { position: relative; }
#payment-methods[data-state="loading"] .payment-method-stage { min-height: 150px; }
#payment-methods[data-state="loading"] #payment-method-options,
#payment-methods[data-state="error"] #payment-method-options { visibility: hidden; }
#payment-method-loading { position: absolute; inset: 0; color: #687187; font-size: 13px; line-height: 1.5; }
.payment-method-skeleton { display: block; height: 48px; margin-top: 12px; border-radius: 8px; background: linear-gradient(100deg, #f0f2f7 20%, #e5e9f2 50%, #f0f2f7 80%); background-size: 200% 100%; animation: payment-loading 1.5s ease-in-out infinite; }
@keyframes payment-loading { to { background-position: -200% 0; } }
@media (prefers-reduced-motion: reduce) { .payment-method-skeleton { animation: none; } }

/* Conventional checkout terms stay in the plan, with one action agreement. */
.plan-terms { margin-top: 18px; color: #414b60; font-size: 16px; line-height: 1.6; }
.plan-terms p { margin: 0 0 7px; font: inherit; }
.plan-terms p:last-child { margin-bottom: 0; }
.plan-terms strong { font-weight: 600; color: #202534; }
.payment-agreement { margin: 0 0 14px; color: #515b70; font-size: 14px; line-height: 1.55; }
#card-payment-panel .payment-agreement { margin-top: 18px; }

/* Keep introductory price hierarchy while easing the two longer terms. */
.plan-terms #plan-recurring,.plan-terms #plan-cancellation{font-size:15px}

/* File and payment transitions in the conventional checkout. */
#checkout-file .preview-original { font-size: 14px; }
#checkout-file .preview-original span { line-height: 1.5; }
#checkout-file[aria-busy="true"] .preview-file-row { opacity: .65; }
.checkout-payment-progress { display: flex; align-items: center; gap: 14px; margin: 20px 0; padding: 18px; border: 1px solid #cbd5ff; border-radius: 12px; background: #f2f5ff; color: #263e99; }
.checkout-payment-progress strong { display: block; font-size: 17px; line-height: 1.4; }
.checkout-payment-progress p { margin: 6px 0 0; font-size: 14px; line-height: 1.5; color: #50608a; }
.checkout-spinner, #pay-button[aria-busy="true"]::before { content: ""; display: inline-block; flex: 0 0 auto; width: 24px; height: 24px; border: 3px solid #cbd5ff; border-top-color: #3c59e7; border-radius: 50%; animation: checkout-spin .85s linear infinite; }
#pay-button[aria-busy="true"] { display: flex; align-items: center; justify-content: center; gap: 12px; opacity: 1; background: #3c59e7; color: white; cursor: progress; }
#pay-button[aria-busy="true"]::before { width: 19px; height: 19px; border-color: #ffffff55; border-top-color: white; }
#result-file-name { overflow-wrap: anywhere; }
#result-file-help { font-size: 14px; color: #66746c; }
@keyframes checkout-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .checkout-spinner, #pay-button[aria-busy="true"]::before { animation: none; } }

/* Staging offer refresh: same brand, compact access/price hierarchy. */
.checkout-offer-refresh .plan-offer { padding: 22px; border-color: #cdd5f7; background: #f1f3ff; }
.checkout-offer-refresh .plan-offer-main { align-items: center; gap: 16px; }
.checkout-offer-refresh .plan-offer .eyebrow { font-size: 12px; line-height: 1.5; letter-spacing: .8px; color: #5365a4; margin-bottom: 6px; }
.checkout-offer-refresh .plan-offer h2 { font-size: 28px; line-height: 1.2; max-width: none; color: #253767; letter-spacing: -.7px; }
.checkout-offer-refresh .plan-price strong { font-size: 44px; color: #304ed7; }
.checkout-offer-refresh .plan-price > span { font-size: 14px; color: #536185; }
.checkout-offer-refresh .plan-terms { margin-top: 18px; }
.checkout-offer-refresh .plan-terms p { line-height: 1.6; }
.checkout-offer-refresh #checkout-file .file-ready-bar { background: #f1f3f7; color: #526075; }
.checkout-offer-refresh #checkout-file[data-file-state="ready"] .file-ready-bar { background: #cdeee0; color: #155b42; font-weight: 650; }
.checkout-offer-refresh #checkout-file[data-file-state="ready"] #file-ready-label::before { content: "✓"; display: grid; place-items: center; flex: 0 0 24px; width: 24px; height: 24px; border-radius: 50%; background: #227653; color: white; font-size: 16px; }
.checkout-offer-refresh #file-ready-label { min-width: 0; }
.checkout-offer-refresh .file-ready-bar .format-badge { flex-shrink: 0; }
.checkout-offer-refresh .payment-methods { margin-top: 20px; }
@media (max-width: 600px) {
  .checkout-offer-refresh .plan-offer { padding: 18px 16px; }
  .checkout-offer-refresh .plan-offer-main { gap: 12px; }
  .checkout-offer-refresh .plan-offer .eyebrow { font-size: 10px; letter-spacing: .5px; }
  .checkout-offer-refresh .plan-offer h2 { font-size: 22px; }
  .checkout-offer-refresh .plan-price strong { font-size: 36px; }
  .checkout-offer-refresh .plan-price > span { font-size: 12px; }
  .checkout-offer-refresh .plan-terms { margin-top: 16px; }
}
