/* CREU checkout and account pages. Same look as the admin checkout skin (admin.creuniversity.com
   src/Checkout/assets/skin.css): the universities' light theme (#31539B family) and the sites'
   dark-mode tokens, following the visitor's OS setting. No third-party scripts or fonts. */
:root {
  color-scheme: light dark;
  --cx-bg: #f4f6f9; --cx-surface: #ffffff; --cx-surface-2: #f8f9fa; --cx-border: #e2e6ea;
  --cx-text: #333333; --cx-heading: #2b2f33; --cx-muted: #5b5b5b; --cx-accent: #31539b; --cx-accent-soft: #e8edf5;
  --cx-btn: #31539b; --cx-btn-hover: #263f78; --cx-on-btn: #ffffff; --cx-input-bg: #ffffff; --cx-input-border: #c6cdd5;
  --cx-focus: rgba(49, 83, 155, .28); --cx-danger: #b02a37; --cx-danger-soft: #fbeaec; --cx-success: #1e7e34; --cx-success-soft: #e6f4ea;
  --cx-shadow: 0 1px 2px rgba(16, 24, 40, .05), 0 2px 6px rgba(16, 24, 40, .05); --cx-radius: 12px;
  --cx-font: 'Lato', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
  --cx-font-head: 'Raleway', 'Lato', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root {
    --cx-bg: #1b1e22; --cx-surface: #25292e; --cx-surface-2: #2b3035; --cx-border: #3a4047; --cx-text: #d3d7dc;
    --cx-heading: #eceef0; --cx-muted: #adb5bd; --cx-accent: #8aa8e0; --cx-accent-soft: rgba(138, 168, 224, .16);
    --cx-btn: #31539b; --cx-btn-hover: #3a62b5; --cx-input-bg: #1f2327; --cx-input-border: #4a525b;
    --cx-focus: rgba(138, 168, 224, .35); --cx-danger: #ef8a80; --cx-danger-soft: rgba(239, 138, 128, .12);
    --cx-success: #7fd18b; --cx-success-soft: rgba(127, 209, 139, .12); --cx-shadow: none;
  }
}
@media print { :root { color-scheme: light; } .cx-noprint { display: none !important; } }
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; background: var(--cx-bg); color: var(--cx-text); font: 16px/1.5 var(--cx-font); -webkit-text-size-adjust: 100%; }
a { color: var(--cx-accent); }
.cx { max-width: 1080px; margin: 0 auto; padding: 20px 16px 40px; }
.cx.narrow { max-width: 640px; }
.cx-top { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 4px 0 18px; }
.cx-logo { display: block; line-height: 0; }
.cx-logo img { width: 150px; height: 60px; object-fit: cover; object-position: center; display: block; }
.cx-logo .cx-brandname { font: 700 18px/1.2 var(--cx-font-head); color: var(--cx-heading); line-height: 1.2; }
.cx-secure { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; color: var(--cx-muted); white-space: nowrap; }
.cx-secure svg { width: 15px; height: 15px; fill: currentColor; }
.cx-head { margin: 0 0 18px; }
.cx-eyebrow { margin: 0 0 4px; font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--cx-accent); }
.cx-title { margin: 0; font: 700 28px/1.2 var(--cx-font-head); color: var(--cx-heading); }
.cx-lead { margin: 8px 0 0; color: var(--cx-muted); }
.cx-grid { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 24px; align-items: start; }
.cx-side { position: sticky; top: 16px; }
@media (max-width: 899px) { .cx-grid { grid-template-columns: minmax(0, 1fr); gap: 0; } .cx-side { position: static; order: -1; } .cx-title { font-size: 23px; } }
@media (max-width: 480px) { .cx { padding: 12px 12px 32px; } .cx-logo img { width: 120px; height: 48px; } .cx-card { padding: 16px; } }
.cx-card { background: var(--cx-surface); border: 1px solid var(--cx-border); border-radius: var(--cx-radius); box-shadow: var(--cx-shadow); padding: 22px; margin: 0 0 16px; }
.cx-card > h2 { display: flex; align-items: center; gap: 10px; margin: 0 0 16px; font: 700 18px/1.3 var(--cx-font-head); color: var(--cx-heading); }
.cx-num { display: inline-grid; place-items: center; width: 26px; height: 26px; flex: none; border-radius: 50%; background: var(--cx-accent-soft); color: var(--cx-accent); font: 700 14px/1 var(--cx-font); }
.cx-sub { margin: -8px 0 14px; font-size: 14px; color: var(--cx-muted); }
.cx-fields { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 12px; }
.cx-f { grid-column: span 12; }
.cx-f.half { grid-column: span 6; } .cx-f.city { grid-column: span 4; } .cx-f.state { grid-column: span 4; } .cx-f.zip { grid-column: span 4; }
@media (max-width: 560px) { .cx-f.half, .cx-f.city { grid-column: span 12; } .cx-f.state, .cx-f.zip { grid-column: span 6; } }
.cx-qty { max-width: 140px; margin: 0 0 14px; }
.cx-label { display: block; margin: 0 0 5px; font-size: 14px; font-weight: 700; color: var(--cx-heading); }
.cx-opt { font-weight: 400; color: var(--cx-muted); }
input[type=text], input[type=email], input[type=tel], input[type=number], select, textarea {
  display: block; width: 100%; height: 46px; margin: 0; padding: 0 12px; border: 1px solid var(--cx-input-border); border-radius: 8px;
  background: var(--cx-input-bg); color: var(--cx-text); font: 16px/1.2 var(--cx-font); outline: none; -webkit-appearance: none; appearance: none;
}
textarea { height: auto; min-height: 90px; padding: 10px 12px; }
input:focus, select:focus, textarea:focus { border-color: var(--cx-accent); box-shadow: 0 0 0 3px var(--cx-focus); }
input.cx-invalid { border-color: var(--cx-danger); }
.cx-choice { display: flex; align-items: center; gap: 10px; margin: 0 0 8px; padding: 12px 14px; border: 1px solid var(--cx-border); border-radius: 10px; cursor: pointer; background: var(--cx-surface); }
.cx-choice:has(input:checked) { border-color: var(--cx-accent); background: var(--cx-accent-soft); box-shadow: inset 0 0 0 1px var(--cx-accent); }
.cx-choice input { width: 18px; height: 18px; margin: 0; accent-color: var(--cx-accent); flex: none; }
.cx-choice:has(input:disabled) { opacity: .6; cursor: not-allowed; }
.cx-choice .name { flex: 1; font-weight: 700; color: var(--cx-heading); }
.cx-choice .amt { font-weight: 700; color: var(--cx-heading); white-space: nowrap; }
.cx-choice .due { display: block; font-size: 13px; font-weight: 600; color: var(--cx-accent); }
.cx-check { display: flex; align-items: flex-start; gap: 10px; margin: 18px 0 0; font-size: 15px; }
.cx-check input { width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--cx-accent); flex: none; }
.cx-btn { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; min-height: 54px; margin: 18px 0 0; padding: 12px 20px; border: 0;
  border-radius: 10px; background: var(--cx-btn); color: var(--cx-on-btn); font: 700 18px/1.2 var(--cx-font); text-decoration: none; cursor: pointer; }
.cx-btn:hover, .cx-btn:focus-visible { background: var(--cx-btn-hover); }
.cx-btn:focus-visible { outline: 3px solid var(--cx-focus); outline-offset: 2px; }
.cx-btn.secondary { background: transparent; color: var(--cx-accent); border: 1px solid var(--cx-accent); min-height: 46px; font-size: 16px; }
.cx-btn.small { display: inline-flex; width: auto; min-height: 40px; margin: 0; padding: 8px 16px; font-size: 15px; }
.cx-btn.danger { background: var(--cx-danger); }
.cx-or { margin: 14px 0 0; text-align: center; font-size: 14px; color: var(--cx-muted); }
.cx-link { background: none; border: 0; padding: 0; font: inherit; color: var(--cx-accent); text-decoration: underline; cursor: pointer; }
.cx-promo { display: flex; gap: 8px; margin-top: 10px; }
.cx-promo input { flex: 1; height: 42px; text-transform: uppercase; }
.cx-promo button { height: 42px; padding: 0 16px; border-radius: 8px; border: 1px solid var(--cx-accent); color: var(--cx-accent); background: transparent; font-weight: 700; cursor: pointer; }
.cx-lines { margin: 0; padding: 0; list-style: none; }
.cx-lines li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 12px; padding: 0 0 12px; }
.cx-lines .n { font-weight: 700; color: var(--cx-heading); }
.cx-lines .d { grid-column: 1; font-size: 14px; color: var(--cx-muted); }
.cx-lines .p { grid-column: 2; grid-row: 1; text-align: right; font-weight: 700; color: var(--cx-heading); white-space: nowrap; }
.cx-totals { margin: 6px 0 0; padding: 0; }
.cx-totals div { display: flex; justify-content: space-between; gap: 12px; padding: 4px 0; }
.cx-totals .grand { margin-top: 6px; padding-top: 10px; border-top: 1px solid var(--cx-border); font-weight: 700; font-size: 18px; color: var(--cx-heading); }
.cx-totals .today { color: var(--cx-accent); font-weight: 700; }
.cx-sched { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 12px; margin: 12px 0 0; padding: 10px 14px; border-radius: 10px; background: var(--cx-surface-2); font-size: 14px; }
.cx-sched .h { grid-column: 1 / -1; font-weight: 700; color: var(--cx-heading); }
.cx-sched .a { text-align: right; font-weight: 700; color: var(--cx-heading); white-space: nowrap; }
.cx-help { margin: 0; padding: 0 4px; font-size: 14px; color: var(--cx-muted); }
.cx-trust { display: flex; align-items: center; justify-content: center; gap: 6px; margin: 12px 0 0; font-size: 13px; color: var(--cx-muted); }
.cx-trust svg { width: 14px; height: 14px; fill: currentColor; }
.cx-notice { margin: 0 0 16px; padding: 12px 14px; border-radius: 8px; background: var(--cx-danger-soft); color: var(--cx-danger); font-weight: 700; }
.cx-notice.info { background: var(--cx-accent-soft); color: var(--cx-text); font-weight: 400; }
.cx-notice.ok { background: var(--cx-success-soft); color: var(--cx-text); font-weight: 400; }
.cx-foot { margin: 28px 0 0; text-align: center; font-size: 13px; color: var(--cx-muted); }
.cx-foot a { color: var(--cx-muted); }
.cx-table { width: 100%; border-collapse: collapse; font-size: 15px; }
.cx-table th, .cx-table td { padding: 10px 6px; border-bottom: 1px solid var(--cx-border); text-align: left; vertical-align: top; }
.cx-table th { font-size: 13px; color: var(--cx-muted); font-weight: 700; }
.cx-table td.r, .cx-table th.r { text-align: right; white-space: nowrap; }
.cx-chip { display: inline-block; padding: 1px 8px; border-radius: 999px; font-size: 12px; font-weight: 700; background: var(--cx-accent-soft); color: var(--cx-accent); }
.cx-chip.warn { background: var(--cx-danger-soft); color: var(--cx-danger); }
.cx-chip.ok { background: var(--cx-success-soft); color: var(--cx-success); }
.cx-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between; }
.cx-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.cx-spinner { width: 34px; height: 34px; margin: 10px auto 18px; border: 3px solid var(--cx-border); border-top-color: var(--cx-accent); border-radius: 50%; animation: cxspin 1s linear infinite; }
@keyframes cxspin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .cx-spinner { animation: none; } }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.cx-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin: 4px 0 12px; }
.cx-stats div { padding: 12px; border-radius: 10px; background: var(--cx-surface-2); text-align: center; }
.cx-stats .v { display: block; font-size: 20px; font-weight: 700; color: var(--cx-heading); }
.cx-stats .l { display: block; font-size: 13px; color: var(--cx-muted); }
.cx-url { word-break: break-all; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 14px; }
.cx-links { margin: 8px 0 0; padding: 0; list-style: none; }
.cx-links li { display: grid; gap: 4px; padding: 10px 0; border-bottom: 1px solid var(--cx-border); }
.cx-links .cx-help { padding: 0; overflow-wrap: anywhere; }
.cx-table .cx-help { padding: 0; }
.cx-cardnote { align-items: flex-start; justify-content: flex-start; text-align: left; line-height: 1.45; }
.cx-cardnote svg { flex: none; margin-top: 2px; }
.cx-embed { padding: 10px 10px 16px; }
.cx-frame { display: block; width: 100%; min-height: 560px; border: 0; background: transparent; }
.cx-stripe { min-height: 480px; }
.cx-cancel { text-align: center; margin-top: 12px; }
/* Utility classes for the page templates (inline style attributes are blocked by the pages' CSP). */
.cx-title-md { font-size: 24px; }
.cx-title-sm { font-size: 22px; }
.cx-btn-narrow { max-width: 360px; margin: 18px auto 0; }
.cx-card-center { text-align: center; padding: 36px 22px; }
.cx-table-center { margin: 12px auto; max-width: 420px; }
.cx-thanks p, .cx-thanks ul { margin: 0 0 14px; }
.cx-list { padding-left: 22px; }
.cx-list li { margin: 0 0 6px; }
.cx-m0 { margin: 0; }
.cx-mt8 { margin-top: 8px; }
.cx-mt12 { margin-top: 12px; }
.cx-mt16 { margin-top: 16px; }
.cx-mt20 { margin-top: 20px; }
.cx-error-note { color: var(--cx-danger); margin-top: 8px; }
.cx-wrap { overflow-wrap: anywhere; }
.cx-class { padding: 10px 0; border-top: 1px solid var(--cx-border); }
.cx-class:first-of-type { border-top: 0; padding-top: 0; }
.cx-years { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 12px; }
.cx-years a.cx-chip { text-decoration: none; }
.cx-table .cx-total-row th { border-top: 1px solid var(--cx-border); padding-top: 10px; color: var(--cx-heading); }
