.customer-nav[hidden],#customer-add-book[hidden],.customer-area [hidden]{display:none}
.customer-nav{display:flex;flex-wrap:wrap;align-items:center;gap:4px 8px}
.customer-nav a{display:inline-flex;align-items:center;min-height:44px;padding:5px 9px;color:var(--ink);font-weight:700;font-size:.9rem;text-decoration:none;border-radius:6px}
.customer-nav a:hover,.customer-nav a:focus-visible,.customer-nav [aria-current=page]{background:#f8ebdf;text-decoration:underline;text-underline-offset:3px}
.quote-home .site-header:has(.customer-nav:not([hidden])){flex-wrap:wrap}
.quote-home .site-header .customer-nav{margin-left:auto}
.customer-area:not(.customer-portal) .site-header{display:flex;flex-wrap:wrap;gap:8px 24px;align-items:center;justify-content:space-between;padding:10px max(16px,calc((100vw - 1120px)/2))}
.customer-area:not(.customer-portal) .official-logo{width:166px;height:auto}
.customer-main{width:min(100% - 32px,960px);margin:32px auto 64px}
.customer-main h1{margin-bottom:14px}
.customer-note{background:#fff2e6;border-left:4px solid #ad411a;padding:12px 16px;border-radius:4px}
.customer-card{padding:clamp(14px,3vw,25px);border:1px solid #dbd4ca;border-radius:14px;background:#fff;margin:14px 0;overflow-wrap:anywhere}
.customer-card h2,.customer-card h3{margin:0 0 10px}
.customer-card p{margin:8px 0}
.customer-actions{display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin:12px 0}
.customer-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,210px),1fr));gap:12px}
.customer-card label{display:grid;gap:5px;align-content:start}
.customer-card label:has(input[type=checkbox]){display:flex;align-items:center;gap:8px}
.customer-card input:not([type=checkbox]):not([type=radio]),.customer-card select{min-height:44px;width:100%}
.customer-card fieldset{border:0;padding:0;margin:12px 0}
.customer-card legend{font-weight:700}
.customer-main .button{min-height:44px}
.customer-main [role=status]:empty{display:none}
.customer-main [role=status]{color:#a12e19;font-weight:700}
.customer-card details>summary{cursor:pointer;font-weight:700;margin:12px 0}
@media(max-width:760px){.quote-home .site-header .customer-nav{margin-left:0}.customer-nav a{padding:5px 7px;font-size:.86rem}.customer-main{margin-top:18px}}

.customer-intro{color:var(--muted);margin:0 0 16px}
.customer-card .customer-address{border:1px solid var(--line);border-radius:var(--radius);padding:12px 16px;margin:16px 0}
.customer-card .customer-address legend{padding:0 6px;color:var(--ink)}
.customer-address [data-profile-delivery]:not([hidden]){margin-top:12px}
.customer-order-status{display:flex;flex-wrap:wrap;gap:8px 20px;margin:14px 0}
.customer-order-status div{background:var(--paper);border-radius:8px;padding:8px 12px}
.customer-order-status dt{color:var(--muted);font-size:.875rem}
.customer-order-status dd{margin:0;font-weight:700}

.customer-area.customer-portal .site-header{flex-wrap:wrap}
.customer-area .portal-heading{margin-bottom:var(--portal-gap)}
.customer-auth-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:var(--portal-gap)}
.customer-portal .customer-auth-panel,.customer-portal .customer-order-card{margin-block:var(--portal-gap)}
.customer-portal #profile .registration-panel{margin-block:var(--portal-gap)}
.customer-portal #profile .registration-panel>p{clear:both}
.customer-portal .customer-simulation{margin-top:var(--portal-gap);padding-top:var(--portal-gap);border-top:1px solid var(--portal-line)}
.customer-portal .customer-simulation .payment-cards{clear:both;gap:12px}
.customer-portal .customer-simulation .payment-cards article{min-width:0;border-color:var(--portal-line);border-radius:9px;padding:12px}
.customer-portal .customer-simulation .payment-cards article:has(input:checked){border-color:var(--portal-blue)}
.customer-portal .customer-simulation .payment-choice-heading{display:flex;font-weight:700}
.customer-payment-action{display:flex;align-items:flex-end;gap:12px;flex-wrap:wrap}
.customer-payment-action label{min-width:min(240px,100%)}
@media(max-width:760px){.customer-auth-grid,.customer-portal .customer-simulation .payment-cards{grid-template-columns:minmax(0,1fr)}}
.registration-fields>[data-cep-status]{grid-column:1/-1}

.cart-book-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px 18px;max-width:520px}
.cart-book-fields label{min-width:0}
.cart-book-delivery{margin-top:16px;padding-top:16px;border-top:1px solid var(--line)}
.cart-book-delivery h3{font-size:1rem;margin:0 0 4px}
.cart-rate-options [data-option]{max-width:100%;white-space:normal;text-align:left}
.cart-rate-options [aria-pressed=true]{background:#f8ebdf;border-color:#ad411a}
.cart-totals{margin:0 0 12px;max-width:520px}
.cart-totals>div{display:flex;justify-content:space-between;gap:12px;padding:5px 0}
.cart-totals dd{font-weight:700;margin:0;text-align:right}
.cart-totals .cart-total{border-top:1px solid var(--line);margin-top:5px;padding-top:10px;font-weight:700}
.cart-freight-note{color:var(--muted)}
@media(max-width:520px){
  .cart-book-fields{grid-template-columns:minmax(0,1fr)}
  .cart-rate-options .button{width:100%}
}
