.customer-area{padding-top:32px;padding-bottom:55px;min-height:65vh;color-scheme:light}
.customer-area h1{font-size:32px;line-height:1.25;letter-spacing:-.7px;color:var(--navy);margin:0 0 8px}
.customer-area h2{font-size:22px;margin:0 0 18px;color:var(--navy)}
.customer-area h3{font-size:17px;line-height:1.45;margin:14px 0}
.customer-area p{line-height:1.65}
.customer-area .muted{color:var(--muted)}
.customer-area .button{white-space:normal;text-align:center;min-height:46px;display:inline-flex;align-items:center;justify-content:center;gap:6px}
.customer-area :focus-visible{outline:3px solid var(--accent);outline-offset:2px}
.customer-card{border:1px solid var(--line);border-radius:18px;background:#fff;padding:26px;min-width:0}
.customer-card strong{overflow-wrap:anywhere}
.customer-card a:not(.button){color:var(--accent-text)}
.customer-card form{display:grid;gap:16px}
.customer-card label{font-size:13px;font-weight:600;color:var(--ink)}
.customer-card input,.customer-card textarea{box-sizing:border-box;width:100%;margin-top:6px;font:inherit;font-size:16px;font-weight:400;color:inherit;border:1px solid #dce2eb;border-radius:10px;background:#fff}
.customer-card input{min-height:48px;padding:0 14px}
.customer-card textarea{padding:12px 14px;resize:vertical;min-height:90px}
.customer-card input:focus,.customer-card textarea:focus{border-color:var(--accent);outline:none;box-shadow:0 0 0 3px var(--accent-pale)}
.customer-card small{font-size:12px;color:var(--muted);line-height:1.6}
.customer-error{padding:14px 18px;border-radius:12px;background:#fff0f1;color:#8f2027}
.customer-notice{padding:14px 18px;border-radius:12px;background:#eaf7ef;color:#216436}

/* Sign in / registration */
.customer-auth{max-width:500px;margin:0 auto;box-shadow:0 12px 45px #25265e0d}
.customer-switch{display:grid;grid-template-columns:1fr 1fr;background:var(--pale);border-radius:12px;padding:4px;margin:6px 0 22px}
.customer-switch a{display:flex;align-items:center;justify-content:center;min-height:42px;border-radius:9px;color:var(--muted)!important;font-weight:600;text-decoration:none}
.customer-switch [aria-current=page]{background:#fff;color:var(--navy)!important;box-shadow:0 1px 4px #25265e1a}
.customer-auth .button{width:100%}
.customer-forgot{font-size:13px;justify-self:end;margin-top:-6px}
.customer-password{position:relative;display:block}
.customer-password input{padding-right:52px}
.customer-eye{position:absolute;right:4px;bottom:2px;width:44px;height:44px;border:0;background:transparent;color:var(--muted);display:grid;place-items:center;border-radius:8px;cursor:pointer}
.customer-eye svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round}
.customer-guest{border-top:1px solid var(--line);padding-top:16px;margin-top:24px;font-size:14px}

/* Signed-in header */
.customer-heading{display:flex;align-items:flex-end;justify-content:space-between;gap:24px;margin:8px 0 22px}
.customer-summary{display:flex;flex-wrap:wrap;gap:8px;margin:6px 0 0;font-size:14px}
.customer-summary strong,.customer-summary span{display:inline-flex;align-items:center;min-height:32px;padding:0 12px;border-radius:999px;background:var(--pale);color:var(--muted);font-weight:500}
.customer-summary strong{background:var(--accent-pale);color:var(--accent-text);font-weight:650}
.customer-tabs{display:flex;align-items:center;gap:8px;border-bottom:1px solid var(--line);padding-bottom:14px;margin-bottom:26px;flex-wrap:wrap}
.customer-tabs a{padding:10px 14px;border-radius:10px;color:var(--ink);text-decoration:none;font-weight:500}
.customer-tabs a:hover{background:var(--pale)}
.customer-tabs [aria-current=page]{background:var(--accent-pale);color:var(--accent-text);font-weight:650}
.customer-tabs form{margin-left:auto}
.customer-tabs button{border:1px solid var(--line);padding:10px 16px;border-radius:10px;background:#fff;font:inherit;cursor:pointer}

/* Shipment list */
.customer-list-head{display:flex;align-items:center;justify-content:space-between;gap:16px;flex-wrap:wrap;margin-bottom:18px}
.customer-list-head h2{margin:0}
.customer-filters{display:flex;gap:6px;flex-wrap:wrap}
.customer-filters a{padding:8px 14px;min-height:40px;display:inline-flex;align-items:center;border:1px solid var(--line);border-radius:999px;color:var(--ink);text-decoration:none;font-size:14px;background:#fff}
.customer-filters [aria-current=page]{background:var(--navy);border-color:var(--navy);color:#fff}
.customer-orders,.customer-columns{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px}
.customer-order{position:relative;transition:border-color .15s,box-shadow .15s}
.customer-order:hover{border-color:var(--accent);box-shadow:0 10px 30px #25265e10}
.customer-order h3{margin:12px 0 14px}
.customer-order-link{color:var(--navy)!important;text-decoration:none}
.customer-order-link::after{content:'';position:absolute;inset:0;border-radius:18px}
.customer-order-top{display:flex;align-items:center;gap:6px;flex-wrap:wrap}
.customer-order-top .customer-pill{margin-left:auto}
.customer-area .customer-number{margin:0}
.customer-number{font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;font-weight:650;font-size:15px;letter-spacing:.2px;color:var(--ink);margin:0;overflow-wrap:anywhere}
h2.customer-number{font-size:20px}
.customer-copy{position:relative;z-index:1;width:36px;height:36px;border:1px solid transparent;border-radius:9px;background:transparent;color:var(--muted);display:inline-grid;place-items:center;cursor:pointer;flex-shrink:0}
.customer-copy:hover{background:var(--pale);border-color:var(--line)}
.customer-copy svg{width:17px;height:17px;fill:none;stroke:currentColor;stroke-width:1.8}
.customer-copy.copied{color:#216436;background:#eaf7ef}
.customer-route{display:inline-flex;align-items:center;gap:7px;flex-wrap:wrap}
.customer-flag{width:20px;height:15px;border-radius:3px;object-fit:cover;box-shadow:0 0 0 1px #0000001a;font-size:17px;line-height:15px;display:inline-block;text-align:center}
.customer-arrow{color:var(--accent)}
.customer-track-chip{margin:0 0 6px;font-size:14px}
.customer-order-bottom{display:flex;align-items:center;gap:12px;margin-top:16px;padding-top:14px;border-top:1px solid var(--line);font-size:14px}
.customer-order-bottom strong{margin-left:auto;font-size:16px}
.customer-open{color:var(--accent-text);font-weight:600}
.customer-empty{text-align:center;padding:40px 26px}
.customer-pagination{display:flex;justify-content:space-between;margin:22px 0}
.customer-note{font-size:13px;margin-top:18px}

/* Status pills and progress */
.customer-pill{display:inline-block;border-radius:999px;padding:4px 11px;font-size:12px;line-height:1.5;font-weight:650;background:#eef0f4;color:#485269;white-space:nowrap}
.customer-pill.new,.customer-pill.confirmed{background:#e7f1ff;color:#1756a6}
.customer-pill.processing,.customer-pill.collected,.customer-pill.warehouse{background:#fff1d6;color:#8a4b00}
.customer-pill.shipped,.customer-pill.transit{background:#f0e9ff;color:#6337a6}
.customer-pill.customs{background:#e6f6f7;color:#0f6470}
.customer-pill.delivered{background:#e5f5e9;color:#216436}
.customer-pill.cancelled{background:#fdecee;color:#9b1c2c}
.customer-steps{list-style:none;display:grid;grid-template-columns:repeat(5,1fr);margin:16px 0 4px;padding:0;counter-reset:none}
.customer-steps li{position:relative;padding-top:20px;font-size:11.5px;color:var(--muted);text-align:center;line-height:1.3}
.customer-steps li::before{content:'';position:absolute;top:5px;left:50%;width:12px;height:12px;margin-left:-6px;border-radius:50%;background:#fff;border:2px solid #d5dae3;box-sizing:border-box;z-index:1}
.customer-steps li::after{content:'';position:absolute;top:10px;left:-50%;width:100%;height:2px;background:#d5dae3}
.customer-steps li:first-child::after{display:none}
.customer-steps li.done::before,.customer-steps li.current::before{background:var(--accent);border-color:var(--accent)}
.customer-steps li.done::after,.customer-steps li.current::after{background:var(--accent)}
.customer-steps li.current{color:var(--ink);font-weight:650}
.customer-steps li.current::before{box-shadow:0 0 0 4px var(--accent-pale)}

/* Order page */
.customer-back{display:inline-flex;align-items:center;min-height:40px;margin-bottom:10px;color:var(--ink);text-decoration:none;font-weight:500}
.customer-order-head{margin-bottom:20px}
.customer-order-route{font-size:18px;font-weight:650;color:var(--navy);margin:10px 0 0}
.customer-actions{display:flex;flex-wrap:wrap;gap:10px;margin-top:20px}
.customer-actions .button{padding-left:18px;padding-right:18px}
.customer-details{display:grid;gap:14px;align-content:start}
.customer-group{padding:0}
.customer-group summary{list-style:none;cursor:pointer;display:flex;align-items:center;justify-content:space-between;padding:18px 24px;min-height:44px}
.customer-group summary::-webkit-details-marker{display:none}
.customer-group summary::after{content:'';width:9px;height:9px;border-right:2px solid var(--muted);border-bottom:2px solid var(--muted);transform:rotate(45deg);margin-top:-4px;transition:transform .15s}
.customer-group[open] summary::after{transform:rotate(-135deg);margin-top:4px}
.customer-group summary h3{margin:0;font-size:16px;color:var(--navy)}
.customer-group dl{margin:0;padding:0 24px 20px;display:grid;grid-template-columns:minmax(120px,38%) 1fr;gap:10px 16px}
.customer-area dt{font-size:13px;color:var(--muted);margin:0}
.customer-area dd{margin:0;overflow-wrap:anywhere}
.customer-track-line{display:flex;align-items:center;gap:6px;flex-wrap:wrap;margin:0 0 6px}
.customer-history{list-style:none;margin:8px 0 0;padding:0}
.customer-history li{position:relative;padding:0 0 20px 26px;margin:0}
.customer-history li::before{content:'';position:absolute;left:5px;top:6px;width:10px;height:10px;border-radius:50%;background:#fff;border:2px solid #c9cfd9;box-sizing:border-box}
.customer-history li::after{content:'';position:absolute;left:9px;top:18px;bottom:0;width:2px;background:#e3e6eb}
.customer-history li:last-child{padding-bottom:0}
.customer-history li:last-child::after{display:none}
.customer-history li:first-child::before{background:var(--accent);border-color:var(--accent);box-shadow:0 0 0 4px var(--accent-pale)}
.customer-history time{font-size:12.5px;color:var(--muted)}
.customer-history p{margin:2px 0;overflow-wrap:anywhere;font-weight:500}
.customer-history li:first-child p{font-weight:650;color:var(--navy)}
.customer-history small{font-size:12.5px;color:var(--muted)}
.customer-help{margin-top:26px}
.customer-logout-mobile,.customer-bottom{display:none}

.customer-toast{position:fixed;left:50%;bottom:calc(96px + env(safe-area-inset-bottom,0px));transform:translate(-50%,12px);background:var(--navy);color:#fff;padding:10px 18px;border-radius:999px;font-size:14px;opacity:0;pointer-events:none;transition:opacity .2s,transform .2s;z-index:10000}
.customer-toast.show{opacity:1;transform:translate(-50%,0)}

/* Address book */
.customer-card select{box-sizing:border-box;width:100%;min-height:48px;margin-top:6px;padding:0 12px;font:inherit;font-size:16px;font-weight:400;color:inherit;border:1px solid #dce2eb;border-radius:10px;background:#fff}
.customer-recipient-form{margin-bottom:20px}
.customer-recipient-form h3{margin:0 0 10px;color:var(--navy)}
.customer-form-grid{display:grid;grid-template-columns:1fr 1fr;gap:16px}
.customer-form-grid .customer-wide{grid-column:1/-1}
.customer-form-grid small{display:block;margin-top:6px;font-weight:400}
.customer-form-actions{display:flex;gap:10px;flex-wrap:wrap}
.customer-recipient h3{margin:6px 0 8px;color:var(--navy)}
.customer-recipient-line{margin:0 0 8px;overflow-wrap:anywhere}
.customer-recipient-line a{color:var(--ink)!important;text-decoration:none;font-weight:500}
.customer-recipient-actions{display:flex;flex-wrap:wrap;align-items:center;gap:10px;margin-top:16px;padding-top:14px;border-top:1px solid var(--line)}
.customer-recipient-actions form{margin-left:auto;display:block}
.customer-link-danger{border:0;background:transparent;color:#9b1c2c;font:inherit;font-weight:600;min-height:44px;padding:0 6px;cursor:pointer}
@media(max-width:720px){
 .customer-area{padding-top:20px}
 .customer-area h1{font-size:26px}
 .customer-card{padding:20px;border-radius:16px}
 .customer-heading{flex-direction:column;align-items:stretch;gap:14px;margin-bottom:18px}
 .customer-area .customer-new{display:none}
 .customer-order-top .customer-pill{order:-1;margin:0 100% 2px 0}
 .customer-timeline-col{order:-1}
 .customer-view-order .customer-heading{display:none}
 .customer-tabs,.customer-help{display:none}
 .customer-orders,.customer-columns{grid-template-columns:1fr;gap:14px}
 .customer-list-head{flex-direction:column;align-items:stretch}
 .customer-filters{flex-wrap:nowrap;overflow-x:auto;scrollbar-width:none;margin:0 -16px;padding:0 16px}
 .customer-filters a{flex-shrink:0}
 .customer-order-link::after{border-radius:16px}
 .customer-steps li{font-size:10.5px}
 .customer-actions{display:grid;grid-template-columns:1fr 1fr}
 .customer-actions .button.primary{grid-column:1/-1}
 .customer-group summary{padding:16px 20px}
 .customer-group dl{grid-template-columns:1fr;gap:2px;padding:0 20px 18px}
 .customer-group dd{margin-bottom:10px}
 .customer-logout-mobile{display:flex;width:100%;margin-top:18px}
 .customer-signed{padding-bottom:calc(96px + env(safe-area-inset-bottom,0px))}
 .customer-bottom{display:grid;grid-template-columns:repeat(5,1fr);position:fixed;left:0;right:0;bottom:0;z-index:900;background:#fffffff2;backdrop-filter:blur(10px);-webkit-backdrop-filter:blur(10px);border-top:1px solid var(--line);padding:6px 6px calc(6px + env(safe-area-inset-bottom,0px))}
 .customer-bottom a{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;min-height:52px;border-radius:12px;color:var(--muted);text-decoration:none;font-size:11px;font-weight:600;text-align:center;line-height:1.15;padding:0 2px}
 .customer-form-grid{grid-template-columns:1fr}
 .customer-recipient-actions .button{flex:1}
 .customer-recipient-actions form{margin-left:0;width:100%;text-align:center}
 .customer-bottom svg{width:24px;height:24px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
 .customer-bottom [aria-current=page]{color:var(--accent-text)}
 .customer-bottom [aria-current=page] svg{stroke:var(--accent)}
}
@media(prefers-reduced-motion:reduce){.customer-toast,.customer-order,.customer-group summary::after{transition:none}}
