/* Shared customer and document surfaces, using the staff workspace's brand tokens. */
body.customer-page:not(.admin-page),body.receipt-page { font-family:Arial,Helvetica,sans-serif; font-size:14px; line-height:1.5; color:var(--ink); background:var(--surface); }
.customer-page *,.receipt-page * { letter-spacing:0; }
.customer-page [hidden],.receipt-page [hidden] { display:none !important; }
.customer-page button,.customer-page input,.customer-page select,.receipt-page button { font:inherit; }
.customer-page h1,.receipt-page h1 { font-size:24px; line-height:1.3; font-weight:700; overflow-wrap:anywhere; }
.customer-page h2,.receipt-page h2 { font-size:18px; line-height:1.4; }
.customer-page h3,.receipt-page h3 { font-size:16px; }
.customer-page button,.customer-page .secondary-action,.receipt-page button,.receipt-page .secondary-action { border-radius:6px; box-shadow:none; min-height:44px; font-weight:600; }
.customer-page button:disabled,.receipt-page button:disabled { opacity:.5; cursor:not-allowed; }
.customer-page input,.customer-page select { min-height:46px; padding:11px 12px; font-size:16px; border-radius:6px; border-color:var(--line); background:#fff; }
.customer-page label { font-size:13px; gap:6px; font-weight:600; }
.customer-page .portal-header { position:static; min-height:76px; padding:14px 0; background:var(--primary); color:#fff; border:0; box-shadow:none; }
.customer-page .portal-header-inner { display:flex; align-items:center; justify-content:space-between; gap:12px; width:min(560px,calc(100% - 40px)); margin:0 auto; }
.customer-page .portal-header-brand { min-width:0; gap:12px; }
.customer-page .portal-header-emblem { display:grid; place-items:center; width:64px; height:48px; flex:0 0 64px; }
.customer-page #portal-brand-logo { display:block; width:64px; height:48px; object-fit:contain; }
.customer-page a.portal-header-brand { color:inherit; text-decoration:none; }
.customer-page a.portal-header-brand:focus-visible { outline:2px solid #fff; outline-offset:4px; border-radius:4px; }
.customer-page .customer-navigation { margin:0 0 12px; }
.customer-page .customer-navigation a { display:inline-flex; align-items:center; min-height:44px; color:var(--primary); font-size:14px; font-weight:600; text-decoration:underline; text-underline-offset:3px; }
.customer-page .customer-navigation a:focus-visible { outline:2px solid var(--primary); outline-offset:3px; border-radius:2px; }
.customer-page .portal-header-brand strong { color:#fff; font-size:16px; line-height:1.4; overflow-wrap:anywhere; white-space:normal; max-width:none; overflow:visible; }
.customer-page .portal-header-mark { width:36px; height:36px; min-width:36px; border-radius:6px; font-size:12px; background:var(--coral); }
.customer-page .portal-trust { font-size:12px; color:#fff; flex-shrink:0; }
.customer-page #portal-help-link { color:#fff; }
.customer-page .shell { width:min(560px,calc(100% - 40px)); min-height:0; margin:0 auto; padding:32px 0 24px; }
.customer-page[data-flow-mode] .panel { background:transparent; border:0; border-radius:0; padding:0; margin-top:0; box-shadow:none; }
.customer-page .portal-brand { text-align:left; justify-items:start; margin:0 0 24px; }
.customer-page .portal-brand .eyebrow { font-size:11px; color:var(--coral-dark); margin-bottom:8px; }
.customer-page .portal-brand h1 { margin:0 0 8px; font-size:24px; color:var(--primary); }
.customer-page .brand-subline { font-size:14px; color:var(--muted); margin:0; }
.customer-page[data-flow-mode="buy"] #brand-subline,.customer-page #packages-title { display:none; }
.customer-page .login-tabs { margin:0 0 22px; gap:0; background:none; border-bottom:1px solid var(--line); border-radius:0; }
.customer-page .login-tabs button { border-radius:0; font-size:14px; border-bottom-width:2px; }
.customer-page .voucher-login,.customer-page .payment-form { gap:18px; }
.customer-page .device-mac-notice { border-radius:6px; padding:12px 14px; font-size:12px; }
.customer-page .device-mac-notice p { margin:4px 0 0; }
.customer-page .flow-steps { font-size:12px; margin:20px 0; }
.customer-page .flow-steps li { min-width:0; }
.customer-page .packages,.customer-page .package-picker { margin-block:20px; }
.customer-page .order-summary,.customer-page .context-card { border-radius:0; box-shadow:none; border-width:0 0 1px; border-color:var(--line); padding:14px 0; background:transparent; }
.customer-page[data-access-state] .context-card { background:transparent; border-left:0; padding:14px 0; }
.customer-page .payment-method-options { gap:12px; }
.customer-page .payment-method-option { border-radius:6px; box-shadow:none; }
.customer-page .existing-user-actions { margin-top:22px; padding:16px 0; border-radius:0; border-width:1px 0 0; background:none; font-size:13px; }
.customer-page .message { border-radius:6px; font-size:14px; }
.customer-page .payment-waiting,.customer-page .payment-fallback { border-radius:0; border:0; border-top:1px solid var(--line); padding:22px 0; background:none; box-shadow:none; }
.customer-page .wallet-progress { font-size:12px; }
.customer-page .wallet-approval-reference { background:transparent; border:0; padding-inline:0; }
.customer-page .wallet-phone { border-radius:8px; }
.customer-page .voucher { padding:20px 0 0; border:0; border-top:1px solid var(--line); border-radius:0; background:transparent; box-shadow:none; }
.customer-page .voucher-grid,.customer-page .session-details-grid { gap:0; margin-block:16px; border-block:1px solid var(--line); background:transparent; }
.customer-page .voucher-grid > div,.customer-page .session-details-grid > div { background:transparent; border:0; border-bottom:1px solid var(--line); border-radius:0; box-shadow:none; padding:14px 10px 14px 0; min-width:0; }
.customer-page .voucher-grid strong,.customer-page .session-details-grid strong { font-size:16px; overflow-wrap:anywhere; }
.customer-page .voucher-grid span { font-size:12px; text-transform:none; font-weight:500; }
.customer-page .session-details-grid strong { font-weight:600; }
.customer-page #session-summary { width:min(420px,calc(100% - 32px)); max-height:calc(100dvh - 32px); padding:24px; color:var(--primary); background:#fff; border:1px solid var(--line); border-radius:8px; overflow:auto; }
.customer-page #session-summary::backdrop { background:rgb(0 0 0 / 45%); }
.customer-page #session-summary h2 { margin:0 0 16px; font-size:20px; }
.customer-page #session-summary .voucher-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
.customer-page #session-summary button { width:100%; }
.customer-page .voucher-grid .credential-value { color:var(--primary); font-size:24px; line-height:1.35; }
.customer-page .customer-support-footer { border-radius:0; border:0; border-top:1px solid var(--line); background:none; box-shadow:none; padding:20px 0; margin-top:28px; font-size:13px; }
.customer-page .customer-support-footer a { font-size:13px; overflow-wrap:anywhere; }
.customer-page .customer-support-footer span { font-size:12px; }
/* Price-first package picker: all options remain visible, including longer catalogs. */
.customer-page .package-choices { min-width:0; margin:0; padding:0; border:0; }
.customer-page .package-legend { position:absolute; width:1px; height:1px; overflow:hidden; clip-path:inset(50%); white-space:nowrap; }
.customer-page .package-tiles { display:grid; grid-template-columns:repeat(var(--package-columns,3),minmax(0,1fr)); gap:8px; }
.customer-page .package-tile { display:flex; flex-direction:column; align-items:center; justify-content:flex-start; gap:4px; min-width:0; min-height:126px; padding:14px 6px 10px; border:1px solid var(--line); border-radius:6px; background:#fff; color:var(--primary); cursor:pointer; text-align:center; overflow-wrap:anywhere; }
.customer-page .package-tile:hover { border-color:var(--primary); }
.customer-page .package-tile:has(input:checked) { background:var(--primary-soft); border-color:var(--primary); box-shadow:inset 0 0 0 1px var(--primary); }
.customer-page .package-tile:focus-within { outline:2px solid var(--primary); outline-offset:3px; }
.customer-page .package-tile input { width:22px; height:22px; min-height:22px; padding:0; margin:0 0 5px; flex-shrink:0; accent-color:var(--primary); cursor:pointer; }
.customer-page .package-tile-price { max-width:100%; font-size:24px; line-height:1.2; font-weight:700; }
.customer-page .package-tile-name { max-width:100%; font-size:14px; line-height:1.3; font-weight:600; }
.customer-page .package-tile-badge { max-width:100%; color:var(--coral-dark); font-size:12px; line-height:1.3; font-weight:700; }
.customer-page .package-terms { display:grid; gap:2px; margin:0 0 8px; padding:0 0 20px; border-bottom:1px solid var(--line); color:var(--muted); font-size:12px; line-height:1.5; overflow-wrap:anywhere; }
.customer-page[data-flow-mode="buy"] .portal-brand { margin-bottom:12px; }
.customer-page[data-flow-mode="buy"] .portal-brand h1 { margin:0; }
.customer-page[data-flow-mode="buy"] .packages { margin:0 0 10px; }
.customer-page[data-flow-mode="buy"] #payment-form { gap:12px; }
.customer-page[data-flow-mode="buy"] .package-terms { margin-bottom:4px; padding-bottom:18px; }
.customer-page[data-flow-mode="buy"] .payment-method-fieldset legend { font-size:18px; line-height:24px; font-weight:700; color:var(--primary); }
.customer-page[data-flow-mode="buy"] .payment-method-fieldset > p { font-size:12px; font-weight:400; margin:0 0 8px; }
.customer-page[data-flow-mode="buy"] .payment-method-options { gap:10px; }
.customer-page[data-flow-mode="buy"] .payment-method-option input { top:8px; right:8px; z-index:1; width:18px; height:18px; min-height:18px; padding:0; opacity:1; pointer-events:auto; accent-color:var(--primary); }
.customer-page[data-flow-mode="buy"] .payment-method-card::after { display:none; }
.customer-page[data-flow-mode="buy"] .payment-method-card { min-height:96px; padding:16px 10px 10px; gap:6px; border-radius:6px; }
.customer-page[data-flow-mode="buy"] .payment-method-card > strong { font-size:14px; font-weight:700; color:var(--primary); }
.customer-page[data-flow-mode="buy"] .payment-logo { width:96px; height:42px; border-radius:6px; }
.customer-page[data-flow-mode="buy"] #payment-form > label:not(.consent-field) { font-weight:500; }
.customer-page[data-flow-mode="buy"] #payment-form > label:not(.consent-field) input { min-height:44px; padding:10px 12px; line-height:22px; font-weight:400; border-width:1px; }
.customer-page[data-flow-mode="buy"] #pay-button { padding:10px 12px; min-height:44px; font-size:16px; line-height:20px; }
.customer-page[data-flow-mode="buy"] .consent-field { grid-template-columns:20px minmax(0,1fr); gap:8px; align-items:center; font-size:12px; font-weight:400; }
.customer-page[data-flow-mode="buy"] .consent-field input { width:20px; height:20px; min-height:20px; margin:0; padding:0; accent-color:var(--primary); }
.customer-page[data-flow-mode="buy"] .existing-user-actions { margin:10px 0 0; padding:0; border:0; }
.customer-page[data-flow-mode="buy"] .existing-user-links { display:flex; justify-content:center; flex-wrap:wrap; gap:0; }
.customer-page[data-flow-mode="buy"] .existing-user-links a { display:flex; align-items:center; justify-content:center; min-height:44px; padding:8px 20px; color:var(--primary); background:none; border:0; border-radius:0; font-size:12px; text-decoration:underline; }
.customer-page[data-flow-mode="buy"] .existing-user-links a + a { border-left:1px solid var(--line); }
.customer-page[data-flow-mode="buy"] .existing-user-links a:focus-visible { outline:2px solid var(--primary); outline-offset:2px; }
.customer-page[data-flow-mode="buy"] .customer-support-footer { margin-top:6px; padding:12px 0; }
.customer-page[data-flow-mode="buy"] .customer-support-footer > div { display:none; }
.customer-page[data-flow-mode="buy"] .customer-support-footer a { color:var(--coral-dark); font-weight:700; text-decoration:underline; }
.document-nav { min-height:68px; display:flex; align-items:center; justify-content:space-between; gap:20px; padding:16px 24px; background:var(--primary); color:#fff; font-size:13px; }
.document-nav a { display:flex; align-items:center; gap:12px; color:#fff; text-decoration:none; min-width:0; }
.document-nav a:hover { text-decoration:underline; }
.document-mark { width:36px; height:36px; flex:0 0 36px; display:grid; place-items:center; background:var(--coral); border-radius:6px; font-size:12px; font-weight:700; }
.receipt-page .receipt-shell { width:min(920px,calc(100% - 48px)); margin:32px auto; }
.receipt-page .receipt-card { padding:32px; background:#fff; border:0; border-radius:0; box-shadow:none; }
.receipt-page .receipt-brand { padding:0 0 24px; margin:0 0 24px; background:none; border:0; border-bottom:1px solid var(--line); border-radius:0; color:var(--ink); gap:16px; }
.receipt-page .receipt-brand span { color:var(--muted); font-size:12px; }
.receipt-page .receipt-brand strong { font-size:18px; color:var(--primary); overflow-wrap:anywhere; }
.receipt-page .receipt-logo { width:100px; height:70px; flex:0 0 100px; padding:10px; background:var(--primary); border-radius:6px; object-fit:contain; }
.receipt-page .receipt-toolbar { display:flex; align-items:center; justify-content:space-between; gap:20px; margin-bottom:24px; border:0; padding:0; }
.receipt-page .receipt-toolbar > div { min-width:0; }
.receipt-page .receipt-toolbar h1 { font-size:24px; margin:4px 0 0; }
.receipt-page .eyebrow { font-size:11px; color:var(--coral-dark); }
.receipt-page button,.receipt-page .secondary-action { display:inline-flex; align-items:center; justify-content:center; gap:8px; padding:10px 16px; width:auto; }
.receipt-page svg { width:18px; height:18px; flex:0 0 18px; }
.receipt-page .document-actions { display:flex; flex-wrap:wrap; gap:12px; margin:20px 0; }
.receipt-page .receipt-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:22px; padding:22px 0; border-block:1px solid var(--line); margin-bottom:24px; }
.receipt-page .receipt-grid > div { background:none; border:0; padding:0; min-width:0; }
.receipt-page .receipt-grid span { font-size:12px; text-transform:none; font-weight:400; color:var(--muted); }
.receipt-page .receipt-grid strong { display:block; margin-top:6px; font-size:14px; overflow-wrap:anywhere; }
.receipt-page #status { color:var(--green); }
.receipt-page .receipt-table { min-width:0; width:100%; table-layout:fixed; font-size:14px; }
.receipt-page .receipt-table th { color:var(--muted); background:var(--surface); text-transform:none; font-size:12px; font-weight:500; }
.receipt-page .receipt-table th,.receipt-page .receipt-table td { padding:14px 12px; overflow-wrap:anywhere; border-bottom:1px solid var(--line); }
.receipt-page .receipt-table th:last-child,.receipt-page .receipt-table td:last-child { text-align:right; width:24%; }
.receipt-page .receipt-total { display:flex; justify-content:space-between; gap:16px; padding:20px 0; color:var(--primary); font-size:18px; border-bottom:1px solid var(--line); }
.receipt-page .receipt-voucher { background:none; border:0; border-radius:0; padding:24px 0 0; margin-top:0; }
.receipt-page .receipt-voucher h2 { font-size:18px; margin:4px 0 16px; }
.receipt-page .receipt-voucher-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:20px; border-left:3px solid var(--coral); background:var(--primary-soft); padding:18px; }
.receipt-page .receipt-voucher-grid > div { background:none; border:0; border-radius:0; padding:0; min-width:0; }
.receipt-page .receipt-voucher-grid span { font-size:12px; color:var(--muted); text-transform:none; }
.receipt-page .receipt-voucher-grid strong { font:700 20px Consolas,monospace; color:var(--primary); display:block; margin-top:8px; overflow-wrap:anywhere; }
.receipt-page .receipt-voucher-note,.receipt-page .receipt-note { color:var(--muted); font-size:12px; }
.receipt-page .receipt-support { padding:20px 0 0; background:none; border:0; border-top:1px solid var(--line); border-radius:0; margin-top:24px; gap:16px; }
.receipt-page .receipt-support span,.receipt-page .receipt-support a { font-size:12px; }
.receipt-page .receipt-support strong { font-size:13px; }
.receipt-page .receipt-support-links { text-align:right; overflow-wrap:anywhere; }
.receipt-page.voucher-document .receipt-table,.receipt-page.voucher-document .receipt-total,.receipt-page.voucher-document .receipt-note { display:none; }
@media(max-width:600px) {
 .customer-page .portal-header-inner { width:calc(100% - 32px); }
 .customer-page .portal-header-brand { flex:1; }
 .customer-page .portal-trust { font-size:11px; }
 .customer-page .portal-secure-status { display:none; }
 .customer-page .shell { width:calc(100% - 32px); padding-top:24px; }
 .customer-page .portal-brand h1 { font-size:22px; }
 .customer-page[data-flow-mode="buy"] .portal-header-inner { width:calc(100% - 40px); }
 .customer-page[data-flow-mode="buy"] .shell { width:calc(100% - 40px); padding-top:20px; }
 .customer-page .customer-support-footer { align-items:start; gap:12px; }
 .document-nav { padding:14px 16px; }
 .document-nav > span { display:none; }
 .receipt-page .receipt-shell { width:100%; margin:0; }
 .receipt-page .receipt-card { padding:24px 16px; }
 .receipt-page .receipt-brand { flex-direction:row; align-items:center; }
 .receipt-page .receipt-brand strong { font-size:16px; }
 .receipt-page .receipt-toolbar { align-items:start; flex-wrap:wrap; }
 .receipt-page .receipt-toolbar h1 { font-size:21px; }
 .receipt-page .receipt-grid { gap:20px 16px; }
 .receipt-page .receipt-table th,.receipt-page .receipt-table td { font-size:12px; padding:12px 6px; }
 .receipt-page .receipt-voucher-grid { grid-template-columns:1fr; padding:16px; }
 .receipt-page .receipt-support { flex-direction:column; }
 .receipt-page .receipt-support-links { text-align:left; }
}
@media print {
 .receipt-page { background:#fff; font-size:11pt; }
 .receipt-page .document-nav,.receipt-page button,.receipt-page .document-actions,.receipt-page .message { display:none !important; }
 .receipt-page .receipt-shell { width:100%; margin:0; }
 .receipt-page .receipt-card { padding:0; box-shadow:none; }
 .receipt-page .receipt-logo,.receipt-page .receipt-voucher-grid { print-color-adjust:exact; -webkit-print-color-adjust:exact; }
 .receipt-page .receipt-brand,.receipt-page .receipt-voucher,.receipt-page .receipt-grid,.receipt-page .receipt-support { break-inside:avoid; }
 .receipt-page .receipt-voucher-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
 .receipt-page .receipt-support a { color:var(--ink); text-decoration:none; }
}
