/* Consumer compositions share the foundation's theme and control tokens. */
.customer-page{gap:var(--section-gap);padding-block:0;max-inline-size:1280px;margin-inline:auto}
.customer-hero{display:grid;grid-template-columns:1.2fr .8fr;align-items:center;gap:var(--section-gap);padding-block:var(--s3);border:0;border-radius:0;background:transparent;box-shadow:none}
.customer-hero-copy{gap:var(--field-gap)}
.customer-hero h1{font-size:var(--type-display);font-weight:600;line-height:1.55}
.customer-hero h1 span{color:var(--info)}
.customer-intro{color:var(--text-2);font-size:var(--type-body);line-height:1.85;max-inline-size:65ch}
.customer-hero-art{background:var(--accent-soft);border-radius:48% 48% 42% 42%;padding:var(--s3);min-inline-size:0;inline-size:min(100%,320px);justify-self:center}
.customer-hero-art svg{display:block;inline-size:100%;block-size:auto}
.customer-section-title{display:flex;align-items:flex-end;justify-content:space-between;gap:var(--field-gap);flex-wrap:wrap}
.customer-section-title h1{font-size:var(--type-title);line-height:1.65}
.customer-section-title h2{font-size:var(--type-section);line-height:1.7}
.customer-section-title>div{min-inline-size:0}
.customer-catalog{gap:var(--grid-gap)}
.customer-product-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(min(100%,250px),1fr));gap:var(--grid-gap)}
.customer-product{display:flex;flex-direction:column;min-inline-size:0;background:var(--surface);border:1px solid var(--border);border-radius:var(--r-lg);overflow:clip}
.customer-cover{display:grid;place-items:center;min-block-size:180px;background:var(--accent-soft);padding:var(--s4);color:var(--info)}
.customer-book-shape{display:grid;place-items:center;inline-size:100%;max-inline-size:320px;border-radius:var(--r-sm);overflow:hidden}
.customer-book-shape svg{inline-size:100%;block-size:auto}
.customer-product:nth-child(2n) .customer-cover{background:var(--selected)}
.customer-product:nth-child(3n) .customer-cover{background:var(--surface-inset)}
.customer-product-copy{padding:var(--s4);gap:var(--s2);flex:1}
.customer-product-copy h3{font-size:var(--type-card);line-height:1.65}
.customer-product-link{display:flex;align-items:center;justify-content:space-between;gap:var(--s3);padding-block:var(--s2);min-block-size:var(--control);margin-block-start:auto;font-weight:500}
.customer-product-link .icon{inline-size:20px}
.customer-how{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:var(--grid-gap);padding-block:var(--s4);border-block:1px solid var(--border)}
.customer-how>div{display:grid;gap:var(--s2)}
.customer-step-number{font-size:var(--type-section);color:var(--info);font-weight:600}
.customer-back{display:inline-flex;align-self:flex-start;min-block-size:var(--control);align-items:center;font-weight:600}
.customer-customize-layout{display:grid;grid-template-columns:minmax(0,1fr) minmax(240px,280px);gap:var(--section-gap);align-items:start}
.customer-customize-form{gap:var(--section-gap);min-inline-size:0}
.customer-form-section,.customer-summary,.customer-order-overview,.customer-reader,.customer-revision{padding:var(--panel-padding);border:1px solid var(--border);border-radius:var(--r-lg);background:var(--surface)}
.customer-form-section h2,.customer-summary h2,.customer-order-overview h2,.customer-reader h2,.customer-revision h2{font-size:var(--type-card)}
.customer-fields{display:grid;grid-template-columns:1.5fr 1fr;gap:var(--field-gap)}
.customer-photo-row{display:flex;align-items:center;gap:var(--field-gap);flex-wrap:wrap}
.customer-photo-preview{inline-size:96px;block-size:96px;background:var(--surface-inset);border:1px dashed var(--input-border);border-radius:var(--r-md);display:grid;place-items:center;flex:none}
.customer-photo-preview>.icon{inline-size:32px;block-size:32px;color:var(--muted)}
.customer-photo-preview img{inline-size:100%;block-size:100%;object-fit:contain;border-radius:var(--r-md)}
.customer-submit-row{display:flex;gap:var(--s4);align-items:center;flex-wrap:wrap}
.customer-summary .customer-cover{border-radius:var(--r-md)}
.customer-error{color:var(--err);font-size:var(--type-small);line-height:1.8}
.customer-error:empty{display:none}
.customer-success{color:var(--ok);font-size:var(--type-small);line-height:1.8}
.customer-success:empty{display:none}
.customer-success a{display:inline-flex;align-items:center;min-block-size:var(--control);margin-inline-start:var(--s2);text-decoration:underline;text-underline-offset:4px}
.customer-checkout-layout{display:grid;grid-template-columns:minmax(0,1fr) minmax(280px,.8fr);gap:var(--section-gap);align-items:start}
.customer-checkout-layout>*{min-inline-size:0}
.customer-checkout-layout:has(.customer-quote-panel[hidden]){grid-template-columns:minmax(0,1fr)}
.customer-quote-panel{position:sticky;inset-block-start:var(--s5)}
.customer-order-actions{display:flex;flex-direction:column;gap:var(--s2);padding-block-start:var(--s2)}
.customer-order-summary{padding-block:var(--s4);border-block:1px solid var(--border)}
.customer-order-summary h2{font-size:var(--type-card)}
.customer-order-facts{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:var(--s4);margin:0}
.customer-order-facts dt{font-size:var(--type-small);color:var(--text-2)}
.customer-order-facts dd{margin:var(--s1) 0 0;overflow-wrap:anywhere}
.customer-order-links{display:flex;flex-wrap:wrap;gap:var(--s2)}
.customer-order-content h2{scroll-margin-block-start:var(--s5)}
@media(max-width:760px){.customer-checkout-layout{grid-template-columns:minmax(0,1fr)}.customer-quote-panel{position:static}.customer-order-facts{grid-template-columns:repeat(auto-fit,minmax(min(100%,9rem),1fr))}}
.customer-order-overview{display:grid;grid-template-columns:minmax(180px,240px) minmax(0,1fr);align-items:center;gap:var(--section-gap)}
.customer-order-overview .customer-cover{border-radius:var(--r-md);min-block-size:180px}
.customer-order-overview progress{inline-size:100%;block-size:10px;accent-color:var(--info)}
.customer-reader{max-inline-size:960px;inline-size:100%;margin-inline:auto;gap:var(--grid-gap)}
.customer-reader-stage{background:var(--surface-inset);border-radius:var(--r-md);aspect-ratio:720/500;display:grid;place-items:center}
.customer-reader-stage svg{inline-size:100%;block-size:auto;max-block-size:100%;display:block}
.customer-page-text{font-size:var(--type-body);line-height:1.9;max-inline-size:70ch;margin-inline:auto;text-align:start}
.customer-reader-controls{display:flex;align-items:center;justify-content:space-between;gap:var(--s4);flex-wrap:wrap}
.customer-revision{max-inline-size:960px;inline-size:100%;margin-inline:auto;gap:var(--s4)}
.customer-revision>button{align-self:flex-start}
.customer-note{background:var(--surface-inset);padding:var(--s4);border-radius:var(--r-sm);display:grid;gap:var(--s2)}
.customer-note p{white-space:pre-wrap;overflow-wrap:anywhere}
.customer-empty{padding:var(--section-gap) var(--panel-padding);align-items:center;text-align:center;border:1px dashed var(--input-border);border-radius:var(--r-lg);background:var(--surface)}
.customer-empty>.icon{inline-size:48px;block-size:48px;color:var(--info)}
.customer-empty p{max-inline-size:32rem}
.customer-page h1,.customer-page h2,.customer-page h3,.customer-page p{overflow-wrap:anywhere}
.customer-page :is(h1,h2,h3){text-wrap:balance}
.customer-page .customer-cover:has(.product-artwork.has-photo){min-block-size:0;padding:0;aspect-ratio:4/3;overflow:hidden}
.customer-page .customer-book-shape:has(.product-artwork.has-photo){inline-size:100%;max-inline-size:none;block-size:100%;border-radius:0}
.customer-page .product-artwork.has-photo{inline-size:100%;block-size:100%}
.customer-page .product-artwork.has-photo img{display:block;inline-size:100%;block-size:100%;object-fit:cover}
@media(max-width:1000px){.customer-customize-layout{grid-template-columns:minmax(0,1fr) minmax(220px,260px)}}
@media(max-width:760px){.customer-hero{grid-template-columns:1fr;gap:var(--section-gap)}.customer-hero-art{max-inline-size:280px;margin-inline:auto}.customer-customize-layout{grid-template-columns:1fr}.customer-summary .customer-cover{min-block-size:0;inline-size:min(100%,240px)}.customer-order-overview{grid-template-columns:1fr}.customer-order-overview>.customer-cover{min-block-size:0;inline-size:min(100%,240px)}.customer-order-overview .customer-book-shape{inline-size:100%;max-inline-size:240px}.customer-section-title h1{font-size:var(--type-title)}}
@media(max-width:520px){.customer-intro{font-size:var(--type-body)}.customer-how{grid-template-columns:1fr;gap:var(--grid-gap)}.customer-how>div{padding-block:var(--s1)}.customer-fields{grid-template-columns:1fr}.customer-reader-controls{gap:var(--s2)}.customer-reader-controls .btn{font-size:var(--type-small);padding-inline:.65rem}.customer-reader-controls>span{flex-basis:100%;text-align:center}.customer-page .input,.customer-page .textarea,.customer-page .select{font-size:var(--type-body)}}
@media(forced-colors:active){.customer-cover,.customer-book-shape,.customer-note{border:1px solid CanvasText}.customer-order-overview progress{forced-color-adjust:auto}}
