/* Customer pages use a single-column form, independently of the checkout grid. */
.customer-page, .order-tracking-page { --customer-panel: #f9f1e3; --customer-tint: #eee0c9; --customer-accent: #934a2d; }
html[data-theme=dark] .customer-page, html[data-theme=dark] .order-tracking-page { --customer-panel: #211e19; --customer-tint: #2d261e; --customer-accent: #e0a17c; }
.customer-page { width: 100%; max-width: 1440px; margin-inline: auto; padding: 54px 5% 80px; }
.customer-page h1 { font-size: clamp(32px, 3.2vw, 46px); line-height: 1.12; letter-spacing: -.035em; }
.customer-page h2 { font-size: 27px; line-height: 1.2; letter-spacing: -.02em; }
.customer-page p { font-size: 14px; line-height: 1.65; }
.customer-page .eyebrow { font-size: 10px; letter-spacing: .17em; color: var(--customer-accent); margin-bottom: 12px; }
.customer-page .checkout-form, .order-tracking-page .checkout-form { display: block; width: 100%; min-width: 0; margin: 24px 0 0; }
.customer-page .checkout-form fieldset, .order-tracking-page .checkout-form fieldset { width: 100%; min-width: 0; margin: 0; padding: 0; border: 0; }
.customer-page .checkout-form legend, .order-tracking-page .checkout-form legend { font: inherit; font-size: 15px; font-weight: 600; padding: 0; margin-bottom: 4px; }
.customer-page .checkout-form label, .order-tracking-page .checkout-form label { font-size: 12px; font-weight: 500; margin: 20px 0 8px; line-height: 1.5; }
.customer-page .checkout-form input, .order-tracking-page .checkout-form input { min-width: 0; min-height: 48px; width: 100%; padding: 12px 14px; font-size: 14px; border: 1px solid var(--line); border-radius: 3px; background: var(--bg); color: var(--ink); transition: border-color .15s; }
.customer-page .checkout-form input:hover, .order-tracking-page .checkout-form input:hover { border-color: var(--muted); }
.customer-page :is(input, button, a, summary):focus-visible, .order-tracking-page :is(input, button, a, summary):focus-visible { outline: 2px solid var(--customer-accent); outline-offset: 4px; }
.customer-page .checkout-form .button, .order-tracking-page .checkout-form .button { display: flex; align-items: center; justify-content: center; gap: 12px; width: 100%; min-height: 48px; padding: 14px 18px; margin-top: 24px; border: 1px solid transparent; border-radius: 3px; background: var(--accent); color: #fff8ef; font: inherit; font-size: 13px; font-weight: 500; cursor: pointer; line-height: 1.5; text-align: center; }
.customer-page .checkout-form .button:hover, .order-tracking-page .checkout-form .button:hover { background: #904729; }
.customer-page .checkout-form .field-help { font-size: 11px; margin: 8px 0 0; line-height: 1.6; color: var(--muted); }
.customer-page .shop-message { padding: 18px 22px; font-size: 13px; margin-bottom: 28px; }
.customer-page .shop-message p { margin: 0; }
.customer-shell { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: clamp(28px, 4vw, 64px); align-items: start; }
.customer-sidebar { padding-top: 5px; min-width: 0; }
.customer-identity { display: flex; align-items: flex-start; gap: 12px; margin: 22px 0 30px; }
.customer-identity > div { min-width: 0; }
.customer-avatar { display: grid; place-items: center; width: 42px; height: 42px; flex: 0 0 42px; background: var(--customer-tint); color: var(--customer-accent); border: 1px solid var(--line); border-radius: 50%; font-family: Georgia, serif; font-size: 21px; }
.customer-identity .customer-name { font-size: 15px; font-weight: 600; line-height: 1.4; overflow-wrap: anywhere; margin: 0 0 6px; }
.customer-identity .customer-email { font-size: 11px; color: var(--muted); overflow-wrap: anywhere; margin: 0; }
.customer-navigation { display: grid; gap: 5px; border-block: 1px solid var(--line); padding: 16px 0; }
.customer-navigation a { display: flex; gap: 10px; align-items: center; min-height: 44px; padding: 10px; font-size: 12px; border-left: 2px solid transparent; }
.customer-navigation a:first-child { background: var(--customer-tint); color: var(--customer-accent); border-left-color: var(--accent); }
.customer-navigation a:hover { color: var(--customer-accent); background: var(--customer-tint); }
.customer-navigation a > span:first-child { color: var(--muted); font-size: 9px; }
.customer-navigation .customer-nav-count { margin-left: auto; font-size: 11px; }
.customer-boutique-link { display: flex; justify-content: space-between; gap: 8px; padding: 24px 0 18px; font-size: 12px; }
.customer-logout button { background: transparent; border: 0; padding: 8px 0; color: var(--muted); cursor: pointer; font: inherit; font-size: 11px; }
.customer-workspace { min-width: 0; }
.customer-section-heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 30px; }
.customer-section-heading h1 { display: flex; align-items: center; gap: 12px; margin: 0 0 10px; }
.customer-section-heading > div > p:last-child { margin: 0; color: var(--muted); font-size: 12px; }
.customer-order-count { display: inline-grid; place-items: center; min-width: 27px; height: 27px; padding: 0 7px; border: 1px solid var(--line); border-radius: 50%; font-family: Arial, sans-serif; font-size: 11px; letter-spacing: normal; color: var(--muted); }
.customer-secondary-button { display: inline-flex; align-items: center; justify-content: center; gap: 14px; border: 1px solid var(--line); padding: 12px 15px; font-size: 11px; line-height: 1.4; flex-shrink: 0; border-radius: 3px; }
.customer-secondary-button:hover { color: var(--customer-accent); border-color: var(--customer-accent); }
.customer-empty { text-align: center; background: var(--customer-panel); border: 1px solid var(--line); padding: clamp(32px, 5vw, 64px) 24px 32px; }
.customer-empty-icon { width: 47px; height: 54px; color: var(--customer-accent); margin-bottom: 22px; }
.customer-empty h2 { max-width: 420px; margin: 0 auto 12px; font-size: clamp(25px, 2.4vw, 33px); }
.customer-empty > p:not(.eyebrow) { max-width: 410px; margin: 0 auto; color: var(--muted); font-size: 12px; }
.customer-empty .button { margin: 24px 0; background: var(--accent); color: #fff8ef; padding: 14px 22px; border-radius: 3px; font-size: 12px; }
.customer-empty .customer-empty-note { font-size: 11px; }
.customer-empty-note a { text-decoration: underline; text-underline-offset: 4px; color: var(--customer-accent); }
.customer-account-tools { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px; margin-top: 40px; padding-top: 32px; border-top: 1px solid var(--line); }
.customer-tool-panel { min-width: 0; scroll-margin-top: 120px; }
.customer-tool-panel h2 { margin: 0 0 10px; font-size: 25px; }
.customer-tool-panel > p:not(.eyebrow) { color: var(--muted); font-size: 12px; margin-bottom: 0; }
.customer-sr-only { position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; margin: -1px !important; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0 !important; }
.customer-password { margin-top: 26px; border-block: 1px solid var(--line); padding: 14px 0; }
.customer-password summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; cursor: pointer; font-size: 12px; list-style: none; min-height: 24px; }
.customer-password summary::-webkit-details-marker { display: none; }
.customer-password summary span { color: var(--customer-accent); font-size: 20px; }
.customer-password[open] summary { padding-bottom: 4px; }
.customer-password[open] summary span { transform: rotate(45deg); }
.customer-tool-panel .customer-help { margin-top: 24px; font-size: 11px; }
.customer-help a { display: inline-block; font-size: 11px; margin-top: 5px; }
.customer-order { border: 1px solid var(--line); border-left: 3px solid var(--accent); background: var(--customer-panel); margin-bottom: 18px; padding: 24px; }
.customer-order-top { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; }
.customer-order-top .eyebrow { margin: 0; }
.customer-order-status { color: var(--customer-accent); font-size: 10px; background: var(--customer-tint); border-radius: 20px; padding: 6px 10px; }
.customer-order h3 { font-size: 21px; margin: 18px 0 8px; }
.customer-order-reference { display: block; font-family: monospace; font-size: 11px; letter-spacing: .02em; margin-top: 7px; color: var(--muted); overflow-wrap: anywhere; }
.customer-order > p { font-size: 12px; color: var(--muted); }
.customer-order-amounts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; border-block: 1px solid var(--line); margin: 18px 0; padding: 16px 0; }
.customer-order-amounts dt { font-size: 10px; color: var(--muted); line-height: 1.5; }
.customer-order-amounts dd { font-size: 13px; margin: 7px 0 0; font-weight: 600; }
.customer-order > .text-link { font-size: 11px; line-height: 1.7; }
.customer-pagination { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 16px; margin: 24px 0; font-size: 12px; }
.customer-auth-page { max-width: 620px; padding-top: 54px; padding-bottom: 70px; }
.customer-auth-page > h1 { font-size: clamp(32px, 4vw, 43px); margin: 0 0 16px; max-width: 430px; }
.customer-auth-page > p:not(.eyebrow) { font-size: 13px; color: var(--muted); margin-bottom: 18px; }
.customer-auth-page > .checkout-form { margin: 28px 0 24px; padding: 28px; border: 1px solid var(--line); border-top: 3px solid var(--accent); background: var(--customer-panel); border-radius: 3px; }
.customer-auth-page > .checkout-form legend { font-family: Georgia, serif; font-weight: 400; font-size: 24px; }
.customer-auth-page .text-link { font-size: 12px; }
.order-tracking-page { max-width: 620px; }
.order-tracking-page > h1 { font-size: clamp(32px, 4vw, 43px); }
.order-tracking-page > .checkout-form { padding: 28px; border: 1px solid var(--line); border-top: 3px solid var(--accent); background: var(--customer-panel); margin-bottom: 28px; }
.order-tracking-page .checkout-form legend { font-size: 22px; font-family: Georgia, serif; font-weight: 400; }
@media (max-width: 1050px) {
    .customer-shell { grid-template-columns: 185px minmax(0, 1fr); gap: 28px; }
    .customer-section-heading { flex-direction: column; align-items: flex-start; }
    .customer-account-tools { grid-template-columns: 1fr; gap: 32px; }
    .customer-tool-panel + .customer-tool-panel { border-top: 1px solid var(--line); padding-top: 28px; }
}
@media (max-width: 760px) {
    .customer-page { padding: 30px 6% 50px; }
    .customer-shell { grid-template-columns: 1fr; gap: 30px; }
    .customer-sidebar { border-bottom: 1px solid var(--line); padding-bottom: 18px; }
    .customer-identity { margin: 16px 0; }
    .customer-navigation { display: flex; flex-wrap: wrap; gap: 6px; border: 0; padding: 0; }
    .customer-navigation a { min-height: 42px; font-size: 11px; padding: 9px; }
    .customer-navigation a > span:first-child { display: none; }
    .customer-boutique-link { display: inline-flex; margin-right: 24px; padding: 18px 0 0; }
    .customer-logout { display: inline-block; }
    .customer-section-heading { gap: 18px; }
    .customer-section-heading h1 { font-size: 34px; }
    .customer-empty { padding: 32px 20px 25px; }
    .customer-auth-page > .checkout-form, .order-tracking-page > .checkout-form { padding: 22px; }
}
@media (max-width: 450px) {
    .customer-order { padding: 20px; }
    .customer-order-amounts { grid-template-columns: 1fr; gap: 12px; }
    .customer-order-amounts > div { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; }
    .customer-order-amounts dd { margin: 0; flex-shrink: 0; }
    .customer-section-heading > .customer-secondary-button { width: 100%; }
}
@media (prefers-reduced-motion: reduce) { .customer-page .checkout-form input { transition: none; } }
.customer-empty .button { border: 1px solid transparent; }
