/* Step 7: customer presentation only; preserve all existing account/auth/order controllers. */
body:is(.frefta-account,.frefta-order-detail,.frefta-login-redirect) {
 --primary:#b63e20; --primary-hover:#923019; --customer-ink:#192f36; --customer-muted:#58686b; --customer-line:#e1e4dc;
 background:#faf8f5 !important; color:#192f36;
}
body.frefta-account { --account-accent:#b63e20 !important; }
body:is(.frefta-account,.frefta-order-detail) :is(.shell,.order-container) { min-width:0; }
body:is(.frefta-account,.frefta-order-detail) :is(.shell,.order-container) :is(button,a,input,select,textarea):focus-visible { outline:3px solid #1d677e; outline-offset:3px; }
body.frefta-account :is(.sidebar,main.panel) { border:1px solid var(--customer-line); border-radius:16px; box-shadow:none; }
body.frefta-account .account-heading { margin-top:32px; }
body.frefta-account .account-heading h1 { color:var(--customer-ink); font-weight:600; letter-spacing:-.035em; }
body.frefta-account .account-shop-link { color:var(--primary); min-height:44px; }
body.frefta-account .shell { gap:24px; margin-top:24px; }
body.frefta-account main.panel { padding:32px; }
body.frefta-account .avatar { background:#fff0e9; color:var(--primary); border-color:#e9c1ad; font-weight:500; }
body.frefta-account .user-name { color:var(--customer-ink); font-weight:600; overflow-wrap:anywhere; }
body.frefta-account .user-email { color:var(--customer-muted); }
body.frefta-account .sidebar-divider { background:var(--customer-line); }
body.frefta-account .sidebar .nav button { color:var(--customer-muted); min-height:48px; border-radius:10px; box-shadow:none; font-weight:500; }
body.frefta-account .sidebar .nav button.active { background:#fff0e9; color:var(--primary); }
body.frefta-account .sidebar .nav button.active i { color:var(--primary); }
body.frefta-account .sidebar .nav button:hover { background:#f4f3ee; }
body.frefta-account .nav-danger { border-color:var(--customer-line); }
body.frefta-account .nav-danger button:hover { color:#ad3030; background:#fff0ef; }
body.frefta-account .title { color:var(--customer-ink); font-size:24px !important; font-weight:600; letter-spacing:-.025em; }
body.frefta-account .title i { color:var(--primary); }
body.frefta-account .stats { gap:16px; }
body.frefta-account .stat { background:#faf8f5; border:1px solid var(--customer-line); border-radius:12px; padding:20px; transform:none; box-shadow:none; }
body.frefta-account .stat:hover { border-color:#aab6ab; transform:none; box-shadow:none; }
body.frefta-account .stat :is(strong,.stat-icon) { color:var(--customer-ink); }
body.frefta-account .stat strong { font-weight:600; font-variant-numeric:tabular-nums; }
body.frefta-account .stat-label { color:var(--customer-muted); font-size:12px; font-weight:500; }
body.frefta-account :is(.btn,.btn-outline) { min-height:44px; border-radius:10px; font-weight:500; line-height:1.5; box-shadow:none; transform:none; }
body.frefta-account .btn-primary { background:var(--primary); color:#fff; }
body.frefta-account .btn-primary:hover { background:var(--primary-hover); transform:none; box-shadow:none; }
body.frefta-account :is(.btn-secondary,.btn-outline) { border:1px solid #718078; background:#fff; color:var(--customer-ink); }
body.frefta-account .btn-danger { background:#fff0ef; color:#ad3030; border:1px solid #e6b7b2; }
body.frefta-account :is(.view-link,.profile-text-link,.profile-field-help a) { color:var(--primary); }
body.frefta-account .view-link { display:inline-flex; align-items:center; gap:8px; min-height:44px; }
body.frefta-account :is(th,td) { border-color:var(--customer-line); padding:14px 12px; }
body.frefta-account th { background:#f4f3ee; color:var(--customer-muted); font-size:11px; font-weight:500; letter-spacing:.05em; }
body.frefta-account td { color:var(--customer-ink); font-size:13px; }
body.frefta-account td strong { font-weight:500; }
body.frefta-account .status { border-radius:8px; font-size:11px; font-weight:500; padding:6px 9px; white-space:nowrap; }
body.frefta-account .status:is(.delivered,.completed,.paid) { background:#eaf3ed; color:#26634e; }
body.frefta-account .status:is(.pending,.processing,.authorized) { background:#fff0e9; color:#923019; }
body.frefta-account .status:is(.cancelled,.failed) { background:#fff0ef; color:#ad3030; }
body.frefta-account :is(.profile-heading h2,.profile-section-heading h3,.recent-orders h3) { color:var(--customer-ink); font-weight:600; letter-spacing:-.02em; }
body.frefta-account .profile-heading-icon { color:var(--primary); border-color:var(--customer-line); background:#fff0e9; }
body.frefta-account :is(.profile-section,.profile-form-footer) { border-color:var(--customer-line); }
body.frefta-account .form-group { min-width:0; }
body.frefta-account .form-group :is(input:not([type="checkbox"]):not([type="hidden"]),textarea,select) { min-width:0; max-width:100%; min-height:48px; font-size:16px; font-family:inherit; border:1px solid #718078; border-radius:10px; color:var(--customer-ink); background:#fff; }
body.frefta-account .form-group input[readonly] { background:#f4f3ee; color:var(--customer-muted); }
body.frefta-account #profileForm :is(input,textarea) { border-color:#718078; border-radius:10px; color:var(--customer-ink); }
body.frefta-account #profileForm input[readonly] { background:#f4f3ee; color:var(--customer-muted); }
body.frefta-account .form-group label:has(input[type="checkbox"]) { display:flex; align-items:center; gap:10px; min-height:44px; }
body.frefta-account .form-group input[type="checkbox"] { width:18px; height:18px; padding:0; flex-shrink:0; }
body.frefta-account .form-group label { color:var(--customer-muted); font-size:13px; font-weight:500; }
body.frefta-account :is(.profile-field-help,.profile-readonly,.profile-save-status) { color:var(--customer-muted); }
body.frefta-account .profile-save-status[data-state="success"] { color:#26634e; }
body.frefta-account .profile-save-status[data-state="error"] { color:#ad3030; }
body.frefta-account .address-card { background:#faf8f5; border:1px solid var(--customer-line); border-radius:12px; box-shadow:none; }
body.frefta-account .addr-detail { color:var(--customer-muted); overflow-wrap:anywhere; }
body.frefta-account .address-actions { gap:8px; flex-wrap:wrap; }
body.frefta-account .default-tag { background:#eaf3ed; color:#26634e; font-weight:500; border-radius:6px; }
body.frefta-account #addressForm { border-top:1px solid var(--customer-line); padding-top:24px; margin-top:24px; }
body.frefta-account input[type="checkbox"] { accent-color:var(--primary); }
body.frefta-account .empty-state { background:#faf8f5; border:1px solid var(--customer-line); border-radius:12px; color:var(--customer-muted); }
body.frefta-account .empty-icon { color:#718078; }
body.frefta-account .wish-card { border:1px solid var(--customer-line); border-radius:12px; box-shadow:none; transform:none; }
body.frefta-account .wish-img { background:#f1f0eb; border-radius:10px; }
body.frefta-account .wish-name { color:var(--customer-ink); font-weight:500; line-height:1.5; display:-webkit-box; -webkit-box-orient:vertical; -webkit-line-clamp:2; overflow:hidden; }
body.frefta-account .wish-price { color:var(--customer-ink); font-weight:600; font-variant-numeric:tabular-nums; }
body.frefta-account .review-card { border-color:var(--customer-line); border-radius:12px; box-shadow:none; }
body.frefta-account :is(.review-body,.review-date) { color:var(--customer-muted); line-height:1.7; overflow-wrap:anywhere; }
/* Order detail/tracking: classes and inline progress remain driven by the existing status mapping. */
body.frefta-order-detail { padding:0; }
body.frefta-order-detail .order-container { margin-block:32px; }
body.frefta-order-detail .order-container>.back-link { min-height:44px; display:inline-flex; align-items:center; gap:8px; color:var(--primary); font-size:13px; }
body.frefta-order-detail .order-container>.card { border:1px solid var(--customer-line); border-radius:16px; box-shadow:none; padding:32px; }
body.frefta-order-detail .card h1 { color:var(--customer-ink); font-size:clamp(24px,3vw,36px); font-weight:600; line-height:1.3; letter-spacing:-.03em; overflow-wrap:anywhere; }
body.frefta-order-detail .card h3 { color:var(--customer-ink); font-size:19px; font-weight:600; }
body.frefta-order-detail .status-timeline { padding-block:12px; margin-block:32px; }
body.frefta-order-detail .step-circle { width:44px; height:44px; font-weight:500; color:var(--customer-muted); background:#f0eee5; border:1px solid var(--customer-line); }
body.frefta-order-detail .timeline-step.completed .step-circle { background:#26634e; border-color:#26634e; color:#fff; }
body.frefta-order-detail .timeline-step.active .step-circle { background:var(--primary); color:#fff; border-color:var(--primary); box-shadow:0 0 0 4px #fff0e9; }
body.frefta-order-detail .step-label { color:var(--customer-muted); font-size:13px; font-weight:500; }
body.frefta-order-detail .timeline-step:is(.active,.completed) .step-label { color:var(--customer-ink); }
body.frefta-order-detail .timeline-progress { top:34px; background:var(--customer-line); border-radius:4px; }
body.frefta-order-detail .timeline-progress-fill { background:#26634e; border-radius:4px; }
body.frefta-order-detail .cancelled-badge { background:#fff0ef; color:#ad3030; border:1px solid #e6b7b2; border-radius:8px; }
body.frefta-order-detail .info-grid { grid-template-columns:repeat(2,minmax(0,1fr)); border-color:var(--customer-line); gap:24px; padding-block:24px; }
body.frefta-order-detail .info-item { min-width:0; overflow-wrap:anywhere; }
body.frefta-order-detail .info-item strong { color:var(--customer-muted); font-weight:500; margin-bottom:8px; }
body.frefta-order-detail .info-item p { color:var(--customer-ink); font-size:14px; line-height:1.7; font-weight:400; }
body.frefta-order-detail th { color:var(--customer-muted); background:#f4f3ee; font-size:12px; font-weight:500; }
body.frefta-order-detail :is(th,td) { border-color:var(--customer-line); padding:16px 12px; }
body.frefta-order-detail td { color:var(--customer-ink); font-size:14px; }
body.frefta-order-detail .product-cell { min-width:220px; }
body.frefta-order-detail .product-thumb { background:#f1f0eb; border:1px solid var(--customer-line); border-radius:10px; }
body.frefta-order-detail .product-thumb img { object-fit:contain; }
body.frefta-order-detail .product-name a { color:var(--customer-ink); font-weight:500; }
body.frefta-order-detail .cj-tracking { background:#faf8f5; border-color:var(--customer-line); border-radius:12px; padding:24px; }
body.frefta-order-detail .cj-tracking h3 { color:var(--customer-ink); margin-bottom:20px; }
body.frefta-order-detail .cj-tracking-grid { grid-template-columns:repeat(2,minmax(0,1fr)); gap:20px; }
body.frefta-order-detail .cj-tracking-grid>div { min-width:0; overflow-wrap:anywhere; }
body.frefta-order-detail .cj-tracking-grid strong { color:var(--customer-muted); font-size:11px; letter-spacing:.04em; font-weight:500; }
body.frefta-order-detail .order-summary { border-color:var(--customer-line); gap:24px; flex-wrap:wrap; }
body.frefta-order-detail .summary-table { width:100%; max-width:360px; }
body.frefta-order-detail .summary-table .total-row { color:var(--customer-ink); font-weight:600; border-color:var(--customer-line); }
body.frefta-order-detail .total-row span { color:var(--customer-ink); font-variant-numeric:tabular-nums; }
body.frefta-order-detail .order-finance { background:#faf8f5; color:var(--customer-muted); font-size:13px; line-height:1.8; border-color:var(--customer-line) !important; }
/* The existing shared auth modal: visual changes only, available on every storefront page. */
html body #loginModal .auth-card { width:min(440px,calc(100% - 24px)) !important; padding:0 !important; max-height:calc(100dvh - 24px) !important; margin:12px; background:#fff; border:1px solid #e1e4dc; border-radius:16px; box-shadow:0 16px 48px #192f3629; }
html body #loginModal .auth-brand { background:#192f36; }
html body #loginModal .auth-brand h3 { font-weight:600; }
html body #loginModal .auth-brand h3 i { color:#f4ad92; }
html body #loginModal .auth-tab { min-height:44px; font-weight:500; border-radius:10px; color:#58686b; }
html body #loginModal .auth-tab.active { background:#fff0e9 !important; color:#b63e20 !important; box-shadow:none; }
html body #loginModal .auth-tabs { background:#f4f3ee; border-radius:12px; }
html body #loginModal .auth-field>label { color:#58686b; font-weight:500; }
html body #loginModal .auth-input-wrap input { min-height:48px; font-size:16px; color:#192f36; border-color:#718078; border-radius:10px; }
html body #loginModal .auth-input-wrap input:focus { border-color:#1d677e; box-shadow:0 0 0 3px #1d677e1f; }
html body #loginModal .auth-input-wrap input.auth-invalid { border-color:#ad3030; }
html body #loginModal .auth-toggle-pass { min-width:44px; min-height:44px; display:grid; place-items:center; }
html body #loginModal .auth-brand button { width:44px !important; height:44px !important; flex-shrink:0; }
html body #loginModal .auth-submit { min-height:48px; border-radius:10px; background:#b63e20; font-weight:600; }
html body #loginModal .auth-submit:hover { background:#923019; filter:none; }
html body #loginModal .auth-guest-btn { min-height:48px; color:#192f36; border-color:#718078; border-radius:10px; font-weight:500; }
html body #loginModal .auth-footnote { color:#58686b; line-height:1.6; }
html body #loginModal :is(button,input):focus-visible { outline:3px solid #1d677e; outline-offset:3px; }
body.frefta-login-redirect .redirect-container { border:1px solid var(--customer-line); border-radius:16px; padding:32px; color:var(--customer-ink); }
body.frefta-login-redirect .spinner { border-top-color:var(--primary); }
body.frefta-login-redirect .btn { min-height:48px; background:var(--primary); border-radius:10px; }
@media(max-width:980px) {
 body.frefta-account .shell { gap:16px; }
 body.frefta-account .sidebar { padding:20px; }
 body.frefta-account main.panel { padding:24px; }
 body.frefta-account .sidebar .nav button { min-height:48px; }
}
@media(max-width:600px) {
 body.frefta-account .account-heading { margin-top:24px; }
 body.frefta-account main.panel { padding:20px 16px; }
 body.frefta-account .title { font-size:22px !important; }
 body.frefta-account .stats { gap:8px; }
 body.frefta-account .stat { padding:16px 10px; }
 body.frefta-account .stat strong { font-size:24px; }
 body.frefta-account .address-actions .btn { flex:1; }
 body.frefta-account .form-grid { grid-template-columns:minmax(0,1fr); }
 body.frefta-account .review-header { flex-wrap:wrap; gap:12px; }
 body.frefta-order-detail .order-container { margin-block:20px; }
 body.frefta-order-detail .order-container>.card { padding:20px 16px; }
 body.frefta-order-detail .info-grid,body.frefta-order-detail .cj-tracking-grid { grid-template-columns:minmax(0,1fr); gap:16px; }
 body.frefta-order-detail .status-timeline { margin-block:24px; }
 body.frefta-order-detail .timeline-progress { display:none; }
 body.frefta-order-detail .timeline-steps { flex-direction:column; flex-wrap:nowrap; gap:0; }
 body.frefta-order-detail .timeline-step { display:grid; grid-template-columns:44px minmax(0,1fr); gap:16px; align-items:center; text-align:left; flex:auto; margin:0; padding:12px 0; }
 body.frefta-order-detail .step-circle { margin:0; }
 body.frefta-order-detail .timeline-step:not(:last-child)::after { content:""; position:absolute; width:2px; top:56px; bottom:-12px; left:21px; background:var(--customer-line); }
 body.frefta-order-detail .timeline-step.completed::after { background:#26634e; }
 body.frefta-order-detail .cj-tracking { padding:20px 16px; }
 body.frefta-order-detail .product-cell { flex-direction:row; min-width:260px; align-items:flex-start; }
 html body #loginModal .auth-brand,html body #loginModal .auth-body { padding:20px; }
}
@media(prefers-reduced-motion:reduce) {
 body.frefta-account .page,body.frefta-order-detail .fa-pulse { animation:none; }
 html body #loginModal *,body.frefta-account .shell *,body.frefta-order-detail .order-container * { transition:none !important; }
}
