.customer-page { min-height: calc(100vh - 77px); padding: 70px 0 88px; }
.customer-main { width: min(100% - 48px, 900px); margin: 0 auto; }
.customer-intro { margin-bottom: 27px; }
.customer-intro .eyebrow { margin-bottom: 14px; padding: 0; border: 0; background: transparent; color: var(--brand-coral); font-size: .73rem; font-weight: 800; letter-spacing: .13em; }
.customer-intro h1 { margin: 0 0 10px; }
.customer-intro p { margin: 0; color: var(--brand-muted); font-size: .92rem; }
.customer-card { padding: 29px; }
.loading-state { display: grid; gap: 12px; }
.loading-line { width: 42%; height: 13px; border-radius: 8px; background: #ebe8e2; }
.loading-line.short { width: 25%; }
.loading-block { height: 100px; border-radius: var(--radius-sm); background: #f0eee9; }
.customer-order-number { margin: 0 0 18px; color: var(--brand-muted); font-size: .8rem; }
.status-hero { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; padding-bottom: 25px; border-bottom: 1px solid var(--brand-border); }
.status-hero h1 { margin: 0; font-size: clamp(1.65rem, 4vw, 2.4rem); }
.status-hero .status-pill { flex: 0 0 auto; }
.status-timeline { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; margin: 28px 0; padding: 0; list-style: none; }
.timeline-step { position: relative; display: grid; justify-items: center; gap: 9px; color: var(--brand-muted); text-align: center; font-size: .74rem; }
.timeline-step::before { content: ""; position: absolute; z-index: 0; top: 15px; right: 50%; width: 100%; border-top: 2px solid #ebe8e2; }
.timeline-step:first-child::before { display: none; }
.timeline-step.is-complete::before, .timeline-step.is-current::before { border-color: var(--brand-mint-dark); }
.timeline-dot { position: relative; z-index: 1; display: grid; width: 32px; height: 32px; place-items: center; border: 2px solid #e4e1db; border-radius: 50%; background: var(--brand-surface); font-size: .74rem; font-weight: 800; }
.timeline-step.is-complete .timeline-dot { border-color: var(--brand-mint-dark); background: var(--brand-mint); color: var(--brand-mint-dark); }
.timeline-step.is-current .timeline-dot { border-color: var(--brand-coral); background: var(--brand-coral); color: var(--brand-ink); }
.timeline-step.is-current strong { color: #a94b43; }
.order-detail-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin: 25px 0; }
.order-detail { padding: 15px; border-radius: var(--radius-sm); background: #fffaf6; }
.order-detail dt { margin-bottom: 5px; color: var(--brand-muted); font-size: .73rem; }
.order-detail dd { margin: 0; font-size: .9rem; font-weight: 750; }
.guide-box { margin: 25px 0 0; padding: 18px; border-radius: var(--radius-sm); background: var(--brand-mint); color: #315d4e; }
.guide-box strong { display: block; margin-bottom: 4px; font-size: .86rem; }
.guide-box p { margin: 0; font-size: .84rem; }
.payment-box { display: grid; gap: 9px; background: #fff3ed; color: #714b43; }
.payment-box strong, .payment-box p { margin: 0; }
.payment-box .button { justify-self: start; margin-top: 5px; }
.customer-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 23px; }
.cancelled-card { border-color: rgba(180, 67, 59, .28); background: #fff9f7; }
.cancelled-card .status-pill { background: var(--brand-coral-soft); color: #a9443c; }
.error-card { text-align: center; }
.error-card h1 { margin-bottom: 12px; font-size: 1.8rem; }
.error-card p { color: var(--brand-muted); }

.delivery-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; margin-bottom: 28px; }
.delivery-header h1 { margin: 0 0 8px; }
.delivery-header p { margin: 0; color: var(--brand-muted); font-size: .85rem; }
.delivery-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.delivery-card { overflow: hidden; border: 1px solid var(--brand-border); border-radius: var(--radius-md); background: var(--brand-surface); }
.delivery-preview { display: grid; aspect-ratio: 4 / 5; place-items: center; overflow: hidden; background: #f1eee9; }
.delivery-preview img { width: 100%; height: 100%; object-fit: contain; }
.delivery-preview .preview-placeholder { color: var(--brand-muted); font-size: .8rem; }
.delivery-card-body { padding: 17px; }
.delivery-card-body strong { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .87rem; }
.delivery-card-meta { margin: 5px 0 15px; color: var(--brand-muted); font-size: .74rem; }
.delivery-card .button { width: 100%; }
.delivery-guide { margin-top: 26px; padding: 19px; border-radius: var(--radius-sm); background: var(--brand-mint); color: #315d4e; }
.delivery-guide h2 { margin: 0 0 7px; font-size: 1rem; }
.delivery-guide p { margin: 0; font-size: .83rem; }

.legal-page { padding: 59px 0 88px; }
.legal-document { width: min(100% - 48px, 780px); margin: 0 auto; }
.legal-header { padding-bottom: 27px; border-bottom: 1px solid var(--brand-border); }
.legal-header .eyebrow { margin-bottom: 13px; padding: 0; border: 0; background: transparent; color: var(--brand-coral); font-size: .73rem; font-weight: 800; letter-spacing: .13em; }
.legal-header h1 { margin: 0 0 11px; }
.legal-header p { margin: 0; color: var(--brand-muted); font-size: .8rem; }
.legal-toc { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 20px; margin: 25px 0 39px; padding: 18px 20px; border-radius: var(--radius-sm); background: #fffaf6; }
.legal-toc strong { grid-column: 1 / -1; font-size: .79rem; }
.legal-toc a { color: var(--brand-muted); font-size: .78rem; text-decoration: none; }
.legal-toc a:hover { color: var(--brand-coral); }
.legal-body section { padding: 28px 0; border-bottom: 1px solid var(--brand-border); }
.legal-body section:first-child { padding-top: 0; }
.legal-body section:last-child { border-bottom: 0; }
.legal-body h2 { margin: 0 0 12px; font-size: 1.18rem; }
.legal-body p, .legal-body li { margin: 0; color: #4f535c; font-size: .9rem; line-height: 1.95; }
.legal-body ul { margin: 11px 0 0; padding-left: 1.3em; }
.legal-top { display: inline-block; margin-top: 35px; color: var(--brand-muted); font-size: .8rem; }

@media (max-width: 700px) {
  .customer-page, .legal-page { padding-top: 47px; padding-bottom: 62px; }
  .customer-main, .legal-document { width: min(100% - 40px, 900px); }
  .customer-card { padding: 21px; }
  .status-hero, .delivery-header { align-items: flex-start; flex-direction: column; }
  .status-timeline { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .timeline-step { font-size: .63rem; }
  .timeline-dot { width: 28px; height: 28px; }
  .timeline-step::before { top: 13px; }
  .order-detail-grid { grid-template-columns: 1fr; }
  .delivery-grid { grid-template-columns: 1fr; }
  .delivery-preview { min-height: 225px; }
  .delivery-preview img { min-height: 0; height: 100%; }
  .legal-toc { grid-template-columns: 1fr; }
  .legal-toc strong { grid-column: auto; }
  .legal-body p, .legal-body li { font-size: .86rem; }
}
