/* Customer portal (customer.js). It sits inside the store's own page shell like the cart, and takes the store's design tokens (each design's shopperCss sets the --sf-* properties); stores without them keep the system colours. Primary actions carry the store's .buy-btn. */
.customer-portal{margin:0;padding:0;color:var(--sf-ink,inherit);font-family:var(--sf-body,inherit)}
.customer-portal>header{margin:0 0 1rem}.customer-portal h2,.customer-portal h3,.customer-portal h4{font-family:var(--sf-display,inherit);margin-top:0}
.customer-portal label{display:grid;gap:.45rem;margin:1rem 0;font-weight:600}
.customer-portal input,.customer-portal textarea,.customer-portal select{font:inherit;font-size:16px;min-height:44px;padding:.7rem .8rem;border:var(--sf-border-w,1px) solid var(--sf-line,#969caa);border-radius:var(--sf-radius,.4rem);width:100%;box-sizing:border-box;background:var(--sf-field,Canvas);color:var(--sf-ink,CanvasText)}
.customer-portal input[type=file]{min-height:0;padding:.5rem}
.customer-portal button:not(.buy-btn){font:inherit;font-weight:700;min-height:44px;padding:.6rem 1rem;border:var(--sf-btn-border,1px solid currentColor);border-radius:var(--sf-radius,.4rem);cursor:pointer;background:transparent;color:inherit}
.customer-portal button:disabled{opacity:.5;cursor:wait}
.customer-portal .buy-btn{margin-top:.25rem}
.customer-card{border:var(--sf-card-border,1px solid #8d96a766);border-radius:var(--sf-radius,.7rem);padding:1.35rem;margin:1rem 0;background:var(--sf-panel,Canvas);color:var(--sf-ink,CanvasText);box-shadow:var(--sf-card-shadow,none)}
/* A card its script has nothing to put in (signed out: order again, data copy) draws no empty box. The card a link
   points at (customer.html#email-preferences) keeps its place while it loads, so the page still scrolls to it. */
.customer-card:empty:not(:target){display:none}
.customer-bar{display:flex;gap:1rem;align-items:center;justify-content:space-between;flex-wrap:wrap}
[data-customer-data-export] button{margin:.35rem .5rem .35rem 0;max-width:100%;white-space:normal}
.customer-portal .customer-export-confirm{display:flex;align-items:flex-start;gap:.6rem}
.customer-portal .customer-export-confirm input[type=checkbox]{width:1.1rem;min-height:1.1rem;margin:.25rem 0 0;flex:none}
.customer-portal p,.customer-portal li{overflow-wrap:anywhere;line-height:1.6}
.customer-error{color:inherit;font-weight:700;border-left:6px solid var(--sf-focus,#b91c1c);padding-left:10px}
.customer-note{font-size:.9rem;opacity:.85;margin:-.4rem 0 1rem}
/* The Test sign-in note follows the sign-in button, so it needs a gap above it; the pull-up is for a note under a field. */
.customer-note[data-test-signin]{margin-top:1rem}
.customer-photos{display:flex;gap:1rem;flex-wrap:wrap;margin:1rem 0}
.customer-portal a{text-decoration:underline}
.customer-portal [data-customer-message]{min-height:2rem}
.customer-portal section{margin:2rem 0}
.customer-portal :focus-visible{outline:3px solid var(--sf-focus,#4b76ed);outline-offset:3px}

.customer-portal .customer-choice{display:flex;align-items:center;gap:.6rem;font-weight:400}
.customer-portal .customer-choice input{width:22px;min-height:22px;flex:0 0 22px}
.customer-portal [data-email-preferences]{overflow-wrap:anywhere}
.customer-portal [data-customer-account],.customer-portal [data-customer-reorder]{overflow-wrap:anywhere}
.customer-portal [data-customer-account] fieldset,.customer-portal [data-customer-reorder] fieldset{min-width:0;margin:1rem 0;padding:1rem;border:1px solid var(--sf-line,currentColor);border-radius:.4rem}
.customer-portal [data-customer-account] input[type=checkbox],.customer-portal [data-customer-reorder] input[type=checkbox]{width:22px;min-height:22px}
.customer-portal [data-customer-account] button,.customer-portal [data-customer-reorder] button{margin:.35rem .35rem .35rem 0;max-width:100%}
.customer-portal [data-email-preferences] button{margin:.4rem .4rem .4rem 0;max-width:100%}
.customer-portal [data-email-preferences] fieldset{min-width:0;margin:1rem 0;border:1px solid currentColor;border-radius:.4rem;padding:1rem}
.customer-portal [data-claim-decision]{margin:1rem 0;padding:.2rem 0 .2rem .9rem;border-left:3px solid var(--sf-line,currentColor)}
.customer-portal [data-claim-history] li,.customer-portal [data-claim] p{overflow-wrap:anywhere}
.customer-portal [data-claim-history] li{margin:.6rem 0}
