.customer-page { min-height: 100vh; background: var(--paper); }
.customer-page [hidden] { display: none !important; }
/* A translated fixed element can appear inside a full-page capture after scroll.
   Clip it while unfocused, keeping the keyboard skip link available on focus. */
.customer-page .skip-link { clip-path: inset(50%); width: 1px; height: 1px; overflow: hidden; white-space: nowrap; padding: 0; border: 0; transform: none; }
.customer-page .skip-link:focus { clip-path: none; width: auto; height: auto; overflow: visible; white-space: normal; padding: .65rem 1rem; }
.customer-header { background: var(--ink); color: var(--ivory); display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 1.2rem max(1.25rem, calc((100% - 1040px) / 2)); }
.customer-header a { font: 700 .9rem/1.5 var(--utility-font); text-decoration: none; }
.customer-header span { color: var(--gold-light); }
.customer-header .customer-back { font: 400 .8rem/1.5 var(--body-font); text-decoration: underline; }
.customer-shell { max-width: 740px; margin: 0 auto; padding: 3.5rem 1.25rem 2rem; }
.customer-intro { margin-bottom: 2rem; }
.customer-eyebrow { font: 600 .72rem/1.7 var(--utility-font); letter-spacing: .12em; color: var(--muted); }
.customer-page h1 { font: 500 clamp(1.75rem, 5vw, 2.6rem)/1.4 var(--display-font); margin: .75rem 0; }
.customer-page h2 { font: 600 1.35rem/1.5 var(--display-font); margin: 0 0 1rem; }
.customer-page p { margin: .7rem 0; }
.customer-steps { display: flex; flex-wrap: wrap; list-style: none; padding: 0; margin-top: 1.5rem; gap: .5rem 1rem; font-size: .8rem; counter-reset: steps; }
.customer-steps li { counter-increment: steps; }
.customer-steps li::before { content: counter(steps) " / "; color: var(--muted); }
.customer-card { border: 1px solid var(--line); background: var(--ivory); padding: clamp(1.25rem, 4vw, 2rem); margin: 1.5rem 0; }
.customer-notice { font-size: .9rem; padding: .7rem 0; overflow-wrap: anywhere; }
.customer-notice[data-error="true"] { color: #9b3427; }
.customer-page form { margin-top: 1.5rem; }
.customer-page form > label { display: block; font-weight: 600; margin-top: 1.2rem; }
.customer-page input:not([type="checkbox"]), .customer-page select { width: 100%; min-height: 48px; border: 1px solid #8d8173; border-radius: 2px; background: white; color: var(--ink); padding: .6rem .8rem; font-size: 16px; margin-top: .35rem; }
.customer-page input[type="checkbox"] { width: 20px; height: 20px; accent-color: var(--brown); flex-shrink: 0; margin: .2rem 0; }
.customer-page .customer-help { font-size: .8rem; color: #62584f; line-height: 1.8; }
.customer-page button { cursor: pointer; min-height: 48px; white-space: normal; }
.customer-primary, .customer-secondary { display: block; width: 100%; padding: .8rem 1rem; border: 1px solid var(--brown); border-radius: 2px; font-size: .95rem; font-weight: 600; margin-top: 1rem; }
.customer-primary { color: var(--ivory); background: var(--brown); }
.customer-primary:hover { background: var(--ink); }
.customer-secondary { color: var(--brown); background: transparent; }
.customer-primary[data-sent="true"] { color: var(--brown); background: transparent; }
.customer-primary[data-sent="true"]::before { content: "✓ "; }
.customer-page button:disabled { cursor: wait; opacity: .55; }
.customer-page :focus-visible { outline: 3px solid #81531b; outline-offset: 3px; box-shadow: none; }
.customer-total { display: flex; flex-wrap: wrap; gap: .5rem 1rem; justify-content: space-between; align-items: center; padding: 1rem 0; margin-top: 1rem; border-block: 1px solid var(--line); }
.customer-total strong { font: 600 1.8rem/1.5 var(--utility-font); }
.customer-account-bar { display: flex; gap: .5rem 1rem; justify-content: space-between; align-items: center; font-size: .8rem; }
.customer-account-bar p { overflow-wrap: anywhere; min-width: 0; }
.customer-account-bar span { display: block; }
.customer-text-button { flex-shrink: 0; background: transparent; border: 0; text-decoration: underline; padding: .5rem; }
.customer-status { font-size: 1.4rem; font-weight: 600; }
.customer-purchase-detail { display: grid; grid-template-columns: 6rem minmax(0, 1fr); gap: .5rem; font-size: .85rem; }
.customer-purchase-detail dd { margin: 0; overflow-wrap: anywhere; }
.customer-order-list { list-style: none; padding: 0; }
.customer-order-list li { border-top: 1px solid var(--line); padding: .8rem 0; overflow-wrap: anywhere; }
.customer-order-list button { width: 100%; text-align: left; background: transparent; border: 0; padding: .4rem; }
.customer-order-list a { overflow-wrap: anywhere; }
.customer-page fieldset { padding: 0; margin: 1.5rem 0; border: 0; min-width: 0; }
.customer-page legend { font-weight: 600; font-size: .9rem; }
.customer-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .5rem; margin-top: .6rem; }
.customer-options label { display: flex; align-items: center; gap: .6rem; min-height: 48px; border: 1px solid var(--line); padding: .5rem .7rem; }
.customer-page form > .customer-consent { display: flex; gap: .65rem; font-size: .9rem; }
.customer-skip { display: block; text-align: center; font-size: .85rem; margin-top: 1.5rem; }
.customer-footer { padding: 2rem 0 1rem; font-size: .8rem; color: var(--muted); text-align: center; }
.customer-page budoux-ja { word-break: keep-all; overflow-wrap: anywhere; }
@media (max-width: 420px) { .customer-shell { padding-top: 2rem; } .customer-header { padding: 1rem 1.25rem; } .customer-header a { font-size: .78rem; } .customer-steps { gap: .65rem; font-size: .72rem; } }
