@font-face {
  font-family: 'InterVariable';
  src: url('/fonts/InterVariable.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

/* Customer pages share a calm, readable surface. Admin styling stays independent. */
.client-space {
  --customer-ink: #142541;
  --customer-muted: #51647f;
  --customer-blue: #1764e8;
  --customer-violet: #6149e9;
  --customer-border: #dbe3ef;
  --customer-surface: #ffffff;
  color-scheme: light;
  margin: 0;
  color: var(--customer-ink);
  background: #f3f6fc;
  background-image: radial-gradient(ellipse at 2% 5%, #e4efff 0, transparent 42%), radial-gradient(ellipse at 98% 12%, #eeebff 0, transparent 39%);
  font-family: 'InterVariable', Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 18px;
  line-height: 1.6;
  letter-spacing: -.012em;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  overflow-x: clip;
}

.client-space *, .client-space *::before, .client-space *::after { box-sizing: border-box; }
.client-space img, .client-space svg { max-width: 100%; }
.client-space p { color: var(--customer-muted); line-height: 1.65; }
.client-space .muted, .client-space .field-info { color: var(--customer-muted); font-size: 16px; line-height: 1.65; }
.client-space h1, .client-space h2, .client-space h3 { color: var(--customer-ink); font-weight: 720; letter-spacing: -.045em; }
.client-space a { color: #175bbd; text-underline-offset: 4px; }
.client-space button, .client-space input, .client-space select, .client-space textarea { font-family: inherit; }
.client-space button, .client-space a, .client-space summary { -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
.client-space button:focus-visible, .client-space .button:focus-visible,
.client-space a:focus-visible, .client-space summary:focus-visible {
  outline: 3px solid var(--customer-blue);
  outline-offset: 4px;
}
.client-space h1[tabindex='-1']:focus, .client-space h2[tabindex='-1']:focus,
.client-space #client-payment:focus, .client-space #payment:focus { outline: none; }

.client-space .customer-skip-link {
  position: fixed;
  top: 12px;
  left: 16px;
  z-index: 100;
  padding: 14px 20px;
  border-radius: 14px;
  background: var(--customer-ink);
  color: white;
  text-decoration: none;
  transform: translateY(-150%);
}
.client-space .customer-skip-link:focus { transform: translateY(0); }

.client-space header {
  width: 100%;
  max-width: 1224px;
  min-height: 92px;
  margin: 0 auto;
  padding: 24px 32px;
  gap: 16px;
  flex-wrap: wrap;
}
.client-space .customer-header { flex-wrap: nowrap; }
.client-space header .brand {
  min-width: 0;
  gap: 12px;
  color: #14233e;
  font-size: 24px;
  font-weight: 780;
  letter-spacing: -.8px;
  text-decoration: none;
  white-space: nowrap;
}
.client-space header .brand img { width: 34px; height: 40px; object-fit: contain; }
.client-space header .pill {
  max-width: none;
  padding: 8px 13px;
  border: 1px solid #dce7f3;
  background: #ecf3fa;
  color: #385978;
  font-size: 13px;
  line-height: 1.45;
  font-weight: 600;
  text-align: center;
}
.client-space .public-nav { gap: 20px; font-size: 16px; flex-wrap: wrap; }
.client-space .public-nav a { display: inline-flex; align-items: center; min-height: 44px; color: var(--customer-muted); }

.client-space .client-layout {
  width: 100%;
  max-width: 1224px;
  margin: 0 auto;
  padding: 42px 32px 64px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 560px);
  gap: 72px;
  align-items: start;
}
.client-space .client-layout > section { min-width: 0; }
.client-space .client-layout > .client-intro { position: sticky; top: 32px; padding-top: 18px; }
.client-space .client-intro .eyebrow { font-size: 13px; letter-spacing: .1em; color: #516b90; font-weight: 650; }
.client-space .tiny-dot { width: 6px; height: 6px; background: #2979ea; box-shadow: 0 0 0 4px #e1ecff; }
.client-space .client-layout .client-intro h1 { font-size: clamp(40px, 4.1vw, 54px); line-height: 1.12; margin: 22px 0 22px; letter-spacing: -.055em; font-weight: 740; }
.client-space .client-layout .client-intro h1 span { color: #3164d3; background: none; -webkit-text-fill-color: currentColor; }
.client-space .client-layout .client-intro > p { max-width: 380px; font-size: 18px; line-height: 1.75; }
.client-space .intro-points { display: grid; gap: 20px; margin: 25px 0 0; max-width: 400px; }
.client-space .intro-points > div { display: flex; align-items: flex-start; gap: 15px; }
.client-space .intro-points > div > span {
  width: 36px;
  height: 36px;
  flex: 0 0 36px;
  border-radius: 12px;
  border: 1px solid #dce6f7;
  background: #ffffffc9;
  color: #486492;
  font-size: 13px;
  font-weight: 650;
}
.client-space .intro-points p { margin: 0; color: #51647f; font-size: 16px; line-height: 1.65; }
.client-space .intro-points strong { font-size: 18px; font-weight: 650; color: #294363; }

.client-space .brand-scene { width: 290px; height: 174px; position: relative; margin: 24px 0 27px; pointer-events: none; }
.client-space .brand-scene-aura { position: absolute; inset: 29px 14px; border-radius: 50%; background: radial-gradient(ellipse at 25% 60%, #69a7ff46, transparent 65%), radial-gradient(ellipse at 78% 28%, #a391f64a, transparent 65%); filter: blur(22px); }
.client-space .brand-scene-surface {
  position: absolute;
  left: 40px;
  top: 21px;
  width: 184px;
  height: 133px;
  border-radius: 26px;
  border: 1px solid #fff;
  background: linear-gradient(140deg, #ffffffed, #ffffff62 65%, #d9e7fe66);
  box-shadow: inset 0 1px 0 white, 0 17px 37px #4472b516;
  transform: rotate(-7deg);
}
.client-space .brand-scene-surface::after { content: ''; position: absolute; inset: 10px -10px -10px 10px; border: 1px solid #ffffffcd; border-radius: 26px; z-index: -1; background: #ffffff26; }
.client-space .brand-scene-glyph { position: absolute; inset: 21px 0 20px 18px; display: grid; align-content: center; justify-items: center; gap: 9px; }
.client-space .brand-scene-glyph img { width: 45px; height: 56px; object-fit: contain; }
.client-space .brand-scene-glyph span { font-size: 12px; color: #55729d; font-weight: 650; letter-spacing: -.2px; }
.client-space .brand-scene-rule { position: absolute; left: 40px; right: 48px; bottom: 3px; height: 1px; background: linear-gradient(90deg, transparent, #8baee35e, transparent); }

.client-space .card,
.client-space .client-layout .payment-glass,
.client-space .narrow .card {
  padding: 34px;
  margin: 0 0 22px;
  border: 1px solid #e2e8f2;
  border-radius: 28px;
  background: var(--customer-surface);
  box-shadow: 0 19px 55px #28436d0a, 0 3px 9px #294b7a04, 0 1px 0 #ffffff inset;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
.client-space .payment-glass h1, .client-space .payment-glass h2 { font-size: 32px; line-height: 1.23; margin: 22px 0 12px; letter-spacing: -.045em; }
.client-space .payment-glass > h1:first-child, .client-space .payment-glass > h2:first-child { margin-top: 0; }
.client-space .payment-glass > p { font-size: 18px; color: var(--customer-muted); margin: 0 0 24px; line-height: 1.65; }
.client-space .narrow { width: 100%; max-width: 644px; margin: 32px auto 48px; padding: 0 24px; }
.client-space .stack { display: grid; gap: 20px; }
.client-space .stack > label:not(.check) { margin-bottom: -9px; }
.client-space .stack > .input-hint { display: block; font-size: 15px; font-weight: 450; line-height: 1.6; color: #566d8b; margin: -11px 0 0; }
.client-space .form-error { padding: 13px 15px; margin: 0; border: 1px solid #e7b9c0; border-radius: 12px; background: #fff3f4; color: #97303f; font-size: 16px; line-height: 1.6; }
.client-space .method-amount-bar { display: flex; align-items: center; justify-content: space-between; gap: 15px; padding: 14px 17px; margin: 7px 0 20px; border: 1px solid #dce6f4; border-radius: 14px; background: #f4f8ff; }
.client-space .method-amount-bar > span { color: #516b8e; font-size: 15px; line-height: 1.55; }
.client-space .method-amount-bar > strong { color: #243e64; font-size: 23px; font-weight: 650; white-space: nowrap; font-variant-numeric: tabular-nums; letter-spacing: -.03em; }
.client-space label { font-size: 18px; line-height: 1.5; gap: 10px; color: #243d5d; font-weight: 600; }
.client-space input:not([type=checkbox]), .client-space textarea, .client-space select {
  width: 100%;
  min-width: 0;
  min-height: 58px;
  padding: 15px 17px;
  border: 1px solid #798aa4;
  border-radius: 14px;
  background: #fff;
  color: var(--customer-ink);
  font-size: 18px;
  font-weight: 450;
  line-height: 1.4;
  box-shadow: none;
}
.client-space input::placeholder, .client-space textarea::placeholder { color: #66778f; opacity: 1; }
.client-space input:read-only { background: #f6f8fc; border-color: #ccd6e5; }
.client-space input:focus, .client-space select:focus, .client-space textarea:focus {
  outline: 3px solid #2169db;
  outline-offset: 2px;
  border-color: #2169db;
  box-shadow: none;
}
.client-space input[aria-invalid=true] { border-color: #b13843; }
.client-space .field-error { color: #a62d3c; font-size: 16px; line-height: 1.6; }
.client-space .amount-entry { position: relative; width: 100%; }
.client-space .amount-entry input {
  height: 102px;
  padding: 20px 64px 20px 22px;
  border: 1px solid #798aa4;
  border-radius: 18px;
  background: #f8faff;
  color: #132641;
  font-size: 56px;
  font-weight: 660;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  letter-spacing: -.045em;
}
.client-space .amount-entry input::placeholder { color: #788aa4; }
.client-space .amount-entry > span { right: 23px; font-size: 30px; color: #617998; }
.client-space .quick-amounts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 9px; }
.client-space .quick-amounts button {
  min-height: 48px;
  padding: 9px 5px;
  margin: 0;
  border: 1px solid #cbd8e9;
  border-radius: 12px;
  background: #f6f9ff;
  color: #345682;
  box-shadow: none;
  font-size: 17px;
  font-weight: 600;
}
.client-space .quick-amounts button:hover:not(:disabled),
.client-space .quick-amounts button[aria-pressed=true] { color: #174d9f; border-color: #5288db; background: #eaf2ff; }
.client-space .check { display: flex; align-items: flex-start; gap: 13px; font-size: 17px; line-height: 1.6; font-weight: 450; }
.client-space input[type=checkbox] { width: 24px; height: 24px; min-height: 24px; margin: 3px 0 0; flex-shrink: 0; accent-color: #1764e8; }
.client-space .review-check { margin-top: 8px; color: #435977; }

.client-space button:not(.payment-method-row), .client-space .button {
  min-height: 58px;
  padding: 16px 22px;
  border-radius: 16px;
  font-size: 18px;
  line-height: 1.4;
  font-weight: 650;
  letter-spacing: -.015em;
}
.client-space button.full:not(.secondary):not(.back-link),
.client-space .button.full:not(.secondary), .client-space .hero-button {
  background: linear-gradient(105deg, #165ff0 0, #315bdf 54%, #6143e8 100%);
  color: white;
  border: 1px solid #2e59df;
  box-shadow: 0 5px 12px #3065d51a;
}
.client-space .payment-glass .full { min-height: 60px; margin-top: 6px; border-radius: 16px; font-size: 18px; }
.client-space .secondary, .client-space .button.secondary {
  background: #f1f5fc;
  color: #274f8f;
  border: 1px solid #ccd8e9;
  box-shadow: none;
}
.client-space button:disabled { opacity: 1; cursor: not-allowed; }
.client-space button.full:disabled { background: #e1e7f2; border-color: #d2dbe9; color: #566b88; box-shadow: none; }
.client-space button[aria-busy=true] { cursor: progress; }
.client-space button.full.is-loading, .client-space .button.is-loading { background: linear-gradient(105deg, #165ff0, #6143e8); color: white; }
.client-space .button-label { flex: 1; min-width: 0; }
.client-space .button-icon { width: 23px; height: 23px; flex: 0 0 23px; display: grid; place-items: center; }
.client-space .button-icon svg { width: 23px; height: 23px; }
.client-space .button-spinner { width: 22px; height: 22px; flex: 0 0 22px; }
.client-space .payment-glass .back-link,
.client-space .back-link { min-height: 54px; padding: 13px 6px; border: 0; background: transparent; color: #355a91; box-shadow: none; font-size: 17px; font-weight: 550; text-decoration: none; }
.client-space .payment-glass .back-link:hover:not(:disabled) { background: #f3f6fc; }

.client-space .progress-dots { display: block; margin: 0 0 27px; }
.client-space .payment-steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); list-style: none; padding: 0; margin: 0; gap: 8px; }
.client-space .payment-steps > li { display: flex; flex-direction: column; align-items: center; justify-content: flex-start; gap: 8px; position: relative; min-width: 0; color: #526985; }
.client-space .payment-steps > li::after { content: ''; position: absolute; top: 17px; left: calc(50% + 23px); width: calc(100% - 38px); height: 1px; background: #dce4ef; }
.client-space .payment-steps > li:last-child::after { display: none; }
.client-space .progress-dots .step-number {
  position: relative;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  min-height: 36px;
  flex: none;
  padding: 0;
  border: 1px solid #d9e2ef;
  border-radius: 50%;
  background: #f3f6fc;
  color: #526985;
  font-size: 15px;
  font-weight: 650;
}
.client-space .progress-dots .step-number svg { width: 17px; height: 17px; }
.client-space .progress-dots .step-label { display: block; flex: none; min-height: 0; padding: 0; border: 0; color: inherit; font-size: 14px; line-height: 1.4; font-weight: 550; text-align: center; }
.client-space .payment-steps > li.current { color: #225eb8; }
.client-space .payment-steps > li.current .step-number { background: #246aeb; color: white; border-color: #246aeb; box-shadow: 0 3px 7px #246aeb24; }
.client-space .payment-steps > li.is-complete { color: #355d95; }
.client-space .payment-steps > li.is-complete .step-number { color: #245fb9; background: #eaf2ff; border-color: #cadcf5; }
.client-space .progress-caption { margin: 16px 0 0; color: #566d8b; font-size: 15px; line-height: 1.45; }

.client-space .method-list { display: grid; gap: 12px; margin: 22px 0 15px; }
.client-space .payment-method-row {
  width: 100%;
  min-width: 0;
  min-height: 90px;
  gap: 18px;
  padding: 17px 18px;
  border: 1px solid #ccd8e9;
  border-radius: 18px;
  background: #fff;
  color: #1e3553;
  box-shadow: none;
  text-align: left;
}
.client-space .payment-method-row:hover:not(:disabled) { background: #f5f9ff; border-color: #87aae0; box-shadow: 0 3px 10px #315da608; }
.client-space .payment-method-row[aria-pressed=true], .client-space .payment-method-row.is-selected { background: #edf4ff; border-color: #3877df; box-shadow: 0 0 0 1px #3877df; }
.client-space .payment-method-icon { width: 76px; height: 52px; flex: 0 0 76px; border: 1px solid #e1e7ef; border-radius: 12px; background: white; box-shadow: none; }
.client-space .payment-method-icon img { width: 68px; height: 48px; object-fit: contain; }
.client-space .payment-method-icon svg { width: 27px; height: 27px; }
.client-space .method-copy { min-width: 0; flex: 1; }
.client-space .method-copy strong { display: block; font-size: 20px; font-weight: 640; line-height: 1.35; letter-spacing: -.025em; }
.client-space .method-copy small { color: #51647e; font-size: 16px; line-height: 1.45; font-weight: 450; margin-top: 5px; }
.client-space .method-chevron { color: #5c779c; font-size: 25px; flex: 0 0 18px; width: 18px; }
.client-space .payment-card-brands { gap: 5px; margin-top: 6px; }
.client-space .payment-card-brands img { width: 37px; height: 25px; object-fit: contain; }
.client-space .payment-method-row:disabled { background: #f6f8fc; border-color: #e1e6ef; color: #66738a; opacity: 1; box-shadow: none; }
.client-space .payment-method-row:disabled .payment-method-icon { opacity: .65; filter: none; }
.client-space .payment-method-row:disabled .method-copy small { color: #596b86; }
.client-space .other-methods { border: 1px solid #dbe4f0; border-radius: 16px; padding: 0; margin: 17px 0 9px; background: #f9fbfe; }
.client-space .other-methods > summary { padding: 17px 18px; margin: 0; min-height: 60px; color: #35577f; font-size: 17px; line-height: 1.45; font-weight: 550; }
.client-space .other-methods > .method-list { padding: 0 12px 12px; margin-top: 4px; }

.client-space .review-label { color: #516b8e; font-size: 15px; font-weight: 550; text-transform: none; letter-spacing: 0; margin-top: 20px; }
.client-space .review-total { color: #132641; font-size: 60px; font-weight: 690; line-height: 1.18; letter-spacing: -.055em; padding: 5px 0 15px; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.client-space .review-details, .client-space .status-summary { font-size: 18px; line-height: 1.6; gap: 15px 20px; margin: 24px 0; }
.client-space dt { color: #51647f; }
.client-space dd { color: #223a5a; min-width: 0; font-weight: 550; overflow-wrap: anywhere; }
.client-space .selected-method-pill { display: inline-flex; gap: 12px; margin: 4px 0 6px; padding: 11px 15px; max-width: 100%; border: 1px solid #d9e4f4; border-radius: 14px; background: #f1f6ff; color: #2b4d7b; font-size: 18px; line-height: 1.45; font-weight: 550; }
.client-space .selected-method-pill .payment-method-icon { width: 54px; height: 36px; flex-basis: 54px; border-radius: 8px; }
.client-space .selected-method-pill .payment-method-icon img { width: 48px; height: 33px; }
.client-space .selected-method-pill .method-copy strong { font-size: 18px; }
.client-space .selected-method-pill .method-copy small { font-size: 15px; }
.client-space .merchant-disclosure, .client-space .payment-reference {
  padding: 0;
  margin: 20px 0;
  border: 1px solid #dbe4ef;
  border-radius: 14px;
  background: #f8fafd;
  font-size: 16px;
}
.client-space .merchant-disclosure > summary, .client-space .payment-reference > summary { padding: 16px; margin: 0; color: #354d70; font-size: 16px; line-height: 1.6; font-weight: 550; }
.client-space .merchant-disclosure p, .client-space .payment-reference p { padding: 0 16px 17px; margin: 0; font-size: 16px; color: #51647f; line-height: 1.75; overflow-wrap: anywhere; }
.client-space .payment-reference .review-details { padding: 0 16px 17px; margin: 10px 0 0; font-size: 16px; gap: 12px 15px; }
.client-space code { font-size: 16px; overflow-wrap: anywhere; }
.client-space .review-security, .client-space .security { background: #edf8f1; color: #235f46; border: 1px solid #d4e9dc; font-size: 17px; line-height: 1.65; padding: 17px; border-radius: 14px; }
.client-space .trust-line { flex-wrap: wrap; gap: 8px; margin-top: 23px; color: #526b89; font-size: 15px; line-height: 1.6; text-align: center; }
.client-space .trust-line > svg { width: 16px; height: 16px; flex-shrink: 0; }
.client-space .gateway-logos { display: inline-flex; gap: 16px; align-items: center; justify-content: center; min-height: 25px; }
.client-space .gateway-logos img { width: 79px; height: 15px; object-fit: contain; }
.client-space .gateway-logos .stripe-wordmark { width: 43px; height: 18px; }
.client-space .checkout-provider-brand { font-size: 15px; line-height: 1.6; color: #526b89; margin: 20px 0 9px; gap: 13px; }
.client-space .method-note { color: #51647f; font-size: 16px; line-height: 1.65; padding: 8px 0; }
.client-space .previous-payment, .client-space .checkout-issue, .client-space .warning { padding: 17px 18px; margin: 0 0 22px; border: 1px solid #ead6b6; border-radius: 16px; background: #fff7e9; color: #74511e; font-size: 17px; line-height: 1.65; }
.client-space .previous-payment { background: #f1f6ff; border-color: #d5e2f6; color: #405d83; }
.client-space .previous-payment strong { display: block; color: #2c4b76; margin-top: 5px; font-size: 18px; }
.client-space .previous-payment a { min-height: 50px; margin-top: 4px; font-size: 17px; }
.client-space .checkout-issue p { color: inherit; font-size: inherit; }
.client-space .method-loading { min-height: 84px; background: #f5f8fe; border-color: #dce6f5; color: #4d6486; font-size: 17px; padding: 19px; }

.client-space .status-icon { display: grid; place-items: center; width: 68px; height: 68px; margin: 3px 0 18px; border-radius: 50%; background: #edf3ff; color: #2767c7; }
.client-space .status-icon svg { width: 30px; height: 30px; }
.client-space .status-icon.state-success { background: #e9f7ef; color: #218657; }
.client-space .status-icon.state-pending { background: #edf3ff; color: #2767c7; }
.client-space .status-icon.state-error { background: #fff2e0; color: #9b6619; }
.client-space .status-kicker { font-size: 15px; color: #536d90; margin-bottom: 12px; }
.client-space .payment-status h1, .client-space .payment-status h2 { font-size: 32px; margin-top: 0; line-height: 1.25; }
.client-space .status-actions { margin-top: 24px; }
.client-space .qr { width: 200px; height: 200px; padding: 10px; border: 1px solid #dce4ef; border-radius: 16px; background: white; }
.client-space .proof-card .proof-qr { text-align: center; margin: 26px 0 22px; }
.client-space .proof-card .proof-qr .qr { margin: 0 auto 13px; }
.client-space .proof-card .proof-qr p { max-width: 310px; margin: 0 auto; color: #51647f; font-size: 16px; line-height: 1.65; }

.client-space .client-footer, .client-space .public-footer {
  width: calc(100% - 64px);
  max-width: 1160px;
  margin: 0 auto;
  padding: 25px 0 32px;
  border-top: 1px solid #d9e2ee;
  color: #51647f;
  font-size: 14px;
  line-height: 1.7;
  gap: 16px 24px;
}
.client-space .customer-footer nav { display: flex; gap: 4px 22px; flex-wrap: wrap; margin: 0; padding: 0; }
.client-space .customer-footer nav a, .client-space .public-footer nav a { display: inline-flex; align-items: center; min-height: 44px; color: #415b7d; font-size: 15px; text-decoration: none; }
.client-space .client-footer > span:first-child { color: #3a5377; font-size: 16px; font-weight: 650; }
.client-space .public-footer p { color: #51647f; font-size: 14px; line-height: 1.7; }
.client-space .public-footer .brand { color: #213958; font-size: 20px; text-decoration: none; }
.client-space #notice { padding: 16px 21px; border-radius: 16px; font-size: 16px; line-height: 1.6; background: #182d4b; box-shadow: 0 8px 28px #10223d20; overflow-wrap: anywhere; }

/* Public information pages use the same type scale as the payment forms. */
.client-space .legal-layout { width: 100%; max-width: 908px; padding: 25px 24px 60px; }
.client-space .legal-heading { padding: 12px 8px 25px; }
.client-space .legal-heading .eyebrow { font-size: 13px; line-height: 1.7; letter-spacing: .04em; }
.client-space .legal-heading h1 { font-size: 44px; line-height: 1.2; margin: 18px 0; }
.client-space .legal-heading > p:last-child { max-width: 720px; font-size: 18px; line-height: 1.75; color: var(--customer-muted); }
.client-space .legal-copy { padding: 34px; }
.client-space .legal-copy h2 { font-size: 23px; margin: 32px 0 13px; line-height: 1.5; }
.client-space .legal-copy h2:first-child { margin-top: 0; }
.client-space .legal-copy p, .client-space .legal-copy li { font-size: 18px; line-height: 1.8; color: #435b7a; }
.client-space .legal-copy strong { color: #243f62; }
.client-space .back-home { display: inline-flex; align-items: center; min-height: 48px; margin-bottom: 17px; font-size: 16px; }
.client-space .contact-layout { width: 100%; max-width: 1224px; grid-template-columns: minmax(0,1fr) minmax(0,560px); padding: 42px 32px 60px; gap: 64px; }
.client-space .contact-layout .client-intro h1 { font-size: 48px; }
.client-space .contact-layout .client-intro > p, .client-space .contact-layout .client-intro > .muted { font-size: 18px; max-width: 430px; line-height: 1.7; }
.client-space .contact-address { border-color: #dce5f3; background: #ffffffb8; padding: 22px; border-radius: 18px; font-size: 18px; max-width: 390px; }
.client-space .contact-address p { font-size: 17px; }
.client-space .contact-layout .payment-glass > p { font-size: 17px; }
.client-space .contact-layout textarea { font-size: 18px; line-height: 1.65; padding: 16px; }
.client-space .contact-privacy { font-size: 15px; line-height: 1.75; color: #51647f; }
.client-space #contact-result:not(:empty) { font-size: 18px; line-height: 1.65; }

@media (max-width: 1080px) {
  .client-space .client-layout { gap: 40px; grid-template-columns: minmax(0,1fr) minmax(0,530px); }
  .client-space .client-layout .client-intro h1 { font-size: 43px; }
  .client-space .contact-layout { gap: 34px; grid-template-columns: minmax(0,1fr) minmax(0,500px); }
}

@media (max-width: 900px) {
  .client-space .client-layout { display: block; max-width: 648px; padding: 16px 24px 42px; }
  .client-space .client-layout > .client-intro { display: none; }
  .client-space .client-layout .payment-glass { width: 100%; }
  .client-space .narrow { max-width: 648px; margin-top: 16px; }
  .client-space .contact-layout { display: block; max-width: 700px; padding: 15px 24px 45px; }
  .client-space .contact-layout .client-intro { padding: 10px 0 25px; }
  .client-space .contact-layout .grid { display: grid; grid-template-columns: 1fr 1fr; }
}

@media (max-width: 600px) {
  .client-space { background: #f4f7fc; background-image: radial-gradient(ellipse at 15% 0, #e8f1ff 0, transparent 58%); font-size: 18px; }
  .client-space header { min-height: 78px; padding: 18px 18px; gap: 12px; }
  .client-space header .brand { font-size: 21px; letter-spacing: -.65px; gap: 9px; }
  .client-space header .brand img { width: 30px; height: 35px; }
  .client-space header .pill { font-size: 12px; line-height: 1.35; max-width: 116px; padding: 7px 10px; }
  .client-space .client-layout { padding: 7px 16px 24px; }
  .client-space .card, .client-space .client-layout .payment-glass, .client-space .narrow .card { padding: 20px 22px; border-radius: 24px; margin-bottom: 18px; }
  .client-space .payment-glass h1, .client-space .payment-glass h2 { font-size: 28px; line-height: 1.25; margin: 14px 0 10px; }
  .client-space .payment-glass > p { font-size: 17px; margin-bottom: 16px; }
  .client-space .stack { gap: 14px; }
  .client-space .amount-entry input { height: 90px; padding: 18px 58px 18px 20px; font-size: 50px; border-radius: 16px; }
  .client-space .amount-entry > span { right: 20px; font-size: 28px; }
  .client-space .quick-amounts { gap: 7px; }
  .client-space .quick-amounts button { min-height: 48px; font-size: 16px; }
  .client-space .progress-dots { margin-bottom: 16px; }
  .client-space .payment-steps { gap: 4px; }
  .client-space .payment-steps > li { gap: 7px; }
  .client-space .progress-dots .step-number { width: 32px; height: 32px; min-height: 32px; font-size: 14px; }
  .client-space .payment-steps > li::after { top: 16px; left: calc(50% + 20px); width: calc(100% - 32px); }
  .client-space .progress-dots .step-label { font-size: 13px; }
  .client-space .progress-caption { font-size: 14px; margin-top: 13px; }
  .client-space .payment-method-row { min-height: 86px; padding: 16px 14px; gap: 13px; border-radius: 16px; }
  .client-space .payment-method-icon { width: 65px; height: 48px; flex-basis: 65px; border-radius: 11px; }
  .client-space .payment-method-icon img { width: 59px; height: 44px; }
  .client-space .method-copy strong { font-size: 18px; line-height: 1.4; }
  .client-space .method-copy small { font-size: 15px; line-height: 1.5; }
  .client-space .method-chevron { width: 15px; flex-basis: 15px; font-size: 23px; }
  .client-space .review-total { font-size: 50px; padding-bottom: 12px; }
  .client-space .review-details, .client-space .status-summary { gap: 14px 15px; font-size: 17px; }
  .client-space .review-check { font-size: 16px; line-height: 1.65; }
  .client-space .selected-method-pill { padding: 10px 13px; font-size: 17px; }
  .client-space .previous-payment, .client-space .checkout-issue, .client-space .warning { padding: 16px; font-size: 16px; margin-bottom: 20px; }
  .client-space .previous-payment strong { font-size: 17px; }
  .client-space .trust-line { font-size: 14px; margin-top: 16px; }
  .client-space .gateway-logos { flex-basis: 100%; }
  .client-space .checkout-provider-brand { font-size: 14px; }
  .client-space .checkout-provider-brand .gateway-logos { flex-basis: auto; }
  .client-space .narrow { width: 100%; padding: 0 16px; margin: 7px auto 30px; }
  .client-space .payment-status h1, .client-space .payment-status h2 { font-size: 28px; }
  .client-space .client-footer, .client-space .public-footer { width: calc(100% - 40px); margin: 0 auto; padding: 23px 0 26px; font-size: 14px; }
  .client-space .customer-footer nav { gap: 2px 18px; margin: 0; }
  .client-space .customer-footer nav a, .client-space .public-footer nav a { font-size: 14px; }
  .client-space .public-footer nav { margin: 15px 0; }
  .client-space #notice { bottom: 12px; width: calc(100% - 28px); max-width: 500px; padding: 15px 18px; font-size: 15px; }
  .client-space .legal-layout { padding: 12px 16px 35px; }
  .client-space .legal-heading h1 { font-size: 34px; }
  .client-space .legal-heading .eyebrow { font-size: 12px; }
  .client-space .legal-heading > p:last-child { font-size: 18px; }
  .client-space .legal-copy { padding: 25px 21px; }
  .client-space .legal-copy h2 { font-size: 22px; }
  .client-space .legal-copy p, .client-space .legal-copy li { font-size: 17px; }
  .client-space .contact-layout { padding: 10px 16px 30px; }
  .client-space .contact-layout .client-intro h1 { font-size: 35px; }
  .client-space .contact-layout .client-intro > p, .client-space .contact-layout .client-intro > .muted { font-size: 17px; }
  .client-space .contact-layout .grid { display: grid; grid-template-columns: 1fr; gap: 18px; }
  .client-space .contact-layout .grid > label + label { margin-top: 0; }
}

.client-space .payment-glass .quick-amounts button { padding: 12px 4px; min-height: 60px; font-size: 17px; white-space: nowrap; }
.client-space.customer-page header .pill { white-space: nowrap; max-width: none; font-size: 13px; }

@media (max-width: 359px) {
  .client-space header { padding: 17px 14px; gap: 8px; }
  .client-space header .brand { font-size: 19px; gap: 8px; }
  .client-space header .brand img { width: 27px; height: 32px; }
  .client-space header .pill { max-width: 95px; padding: 6px 8px; font-size: 12px; }
  .client-space.customer-page header .pill { font-size: 11.5px; padding: 6px 8px; }
  .client-space .client-layout { padding-inline: 12px; }
  .client-space .card, .client-space .client-layout .payment-glass, .client-space .narrow .card { padding: 24px 18px; border-radius: 21px; }
  .client-space .payment-glass h1, .client-space .payment-glass h2 { font-size: 26px; }
  .client-space .amount-entry input { height: 92px; font-size: 40px; padding-left: 18px; padding-right: 48px; }
  .client-space .amount-entry > span { right: 17px; font-size: 25px; }
  .client-space .payment-glass .quick-amounts button { font-size: 15px; }
  .client-space .payment-steps { gap: 2px; }
  .client-space .progress-dots .step-label { font-size: 12px; letter-spacing: -.03em; }
  .client-space .payment-method-row { padding: 15px 11px; gap: 10px; }
  .client-space .payment-method-icon { width: 56px; flex-basis: 56px; height: 44px; }
  .client-space .payment-method-icon img { width: 51px; height: 41px; }
  .client-space .method-copy strong { font-size: 18px; }
  .client-space .method-copy small { font-size: 15px; }
  .client-space .review-total { font-size: 40px; }
  .client-space .review-details { grid-template-columns: 1fr 1.3fr; }
  .client-space .narrow { padding-inline: 12px; }
}
