/* Order history */
.orders-page{padding-top:42px;padding-bottom:80px}
.orders-lead{color:var(--muted);margin:-4px 0 26px;max-width:60ch}
.order-list{display:grid;gap:14px}
.order-card{display:flex;align-items:center;justify-content:space-between;gap:18px;background:var(--paper);border:1px solid var(--line);border-radius:18px;padding:18px 20px;transition:border-color .18s ease,box-shadow .18s ease}
.order-card:hover{border-color:#c9d4c4;box-shadow:0 10px 24px rgba(31,38,30,.07)}
.order-card-main{display:flex;flex-direction:column;gap:4px;min-width:0;flex:1;color:var(--ink)}
.order-card-main:hover{text-decoration:none}
.order-vendor{font-family:'Fraunces',serif;font-size:1.18rem;font-weight:700}
.order-status{display:inline-block;width:fit-content;background:#e8eee5;color:var(--green);border-radius:999px;padding:3px 9px;font-size:.7rem;font-weight:700;text-transform:uppercase;letter-spacing:.06em}
.order-meta{font-size:.84rem;color:var(--muted)}
.order-card-side{display:flex;align-items:center;gap:18px;flex:none}
.order-card-side>strong{font-size:1rem}
.order-card-amount{display:flex;flex-direction:column;align-items:flex-start;gap:2px}
.order-card-amount>strong{font-size:1rem}
.order-covered{display:inline-block;margin:0;color:var(--green);font-size:.7rem;font-weight:700;letter-spacing:.03em}
.order-card-actions{display:flex;align-items:center;gap:8px}
.order-view{border:1px solid #d5d9cf;border-radius:9px;padding:8px 12px;font-size:.8rem;font-weight:700;color:var(--ink);background:#fff}
.order-view:hover{text-decoration:none;background:#f1f3ec}
.order-reorder{border:0;border-radius:9px;padding:9px 14px;font-size:.8rem;font-weight:700;background:var(--green);color:#fff}
.order-reorder:hover{filter:brightness(1.08)}
.orders-empty{background:var(--paper);border:1px dashed var(--line);border-radius:20px;padding:44px 24px;text-align:center}
.orders-empty h2{font-size:1.5rem;margin:0 0 6px}
.orders-empty p{color:var(--muted);margin:0 0 18px}

/* Order detail / confirmation */
.order-page{padding-block:34px 88px}
.order-back{display:inline-flex;align-items:center;gap:6px;font-size:.82rem;font-weight:700;color:var(--muted);margin-bottom:18px}
.order-back:hover{color:var(--green);text-decoration:none}

.order-hero{position:relative;display:flex;align-items:center;justify-content:space-between;gap:24px;flex-wrap:wrap;background:linear-gradient(135deg,#fffdf9 0%,#f2f6ec 100%);border:1px solid #dfe7d8;border-radius:26px;padding:clamp(22px,3vw,34px);box-shadow:0 18px 44px rgba(31,38,30,.06);overflow:hidden}
.order-hero::after{content:"";position:absolute;inset-inline-end:-70px;top:-90px;width:240px;height:240px;border-radius:50%;background:radial-gradient(circle,rgba(233,169,67,.16),rgba(233,169,67,0) 68%);pointer-events:none}
.order-hero.is-waiting{background:linear-gradient(135deg,#fffdf9 0%,#fbf4e6 100%);border-color:#efe0c6}
.order-hero-copy{display:flex;gap:18px;align-items:flex-start;min-width:0;flex:1 1 420px;position:relative;z-index:1}
.order-hero-mark{flex:none;display:grid;place-items:center;width:54px;height:54px;border-radius:50%;background:var(--green);color:#fff;box-shadow:0 10px 22px rgba(40,90,61,.25)}
.order-hero-mark svg{width:26px;height:26px}
.order-hero.is-waiting .order-hero-mark{background:#b97a1f;box-shadow:0 10px 22px rgba(185,122,31,.25)}
.order-hero-text{min-width:0}
.order-hero-text .eyebrow{margin:0 0 4px}
.order-hero h1{font-size:clamp(1.8rem,3.6vw,2.6rem);margin:0}
.order-hero-sub{margin:6px 0 0;color:var(--muted);font-size:.95rem}
.order-pills{display:flex;flex-wrap:wrap;gap:7px;margin-top:13px}
.order-pill{display:inline-flex;align-items:center;border-radius:999px;padding:4px 11px;font-size:.69rem;font-weight:800;letter-spacing:.05em;text-transform:uppercase;background:#eef1e8;color:var(--green);border:1px solid transparent;white-space:nowrap}
.order-pill--paid{background:#e8eee5;color:#285a3d;border-color:#d8e4d4}
.order-pill--pending{background:#fbf1dd;color:#8a5a12;border-color:#f1dfbd}
.order-pill--danger{background:#fbe9e5;color:#a4392b;border-color:#f2d4cc}
.order-hero-actions{display:flex;align-items:center;gap:12px;flex-wrap:wrap;position:relative;z-index:1}
.order-hero-reorder{gap:8px;padding-inline:21px}
.order-hero-reorder svg{width:18px;height:18px}

.order-layout{display:grid;grid-template-columns:minmax(0,1.65fr) minmax(290px,.85fr);gap:20px;align-items:start;margin-top:20px}
.order-content,.order-side{display:grid;gap:16px;min-width:0}
.order-side{position:sticky;top:20px}

.order-panel{background:var(--paper);border:1px solid var(--line);border-radius:22px;padding:22px;box-shadow:0 8px 26px rgba(31,38,30,.035)}
.order-panel-head{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;margin-bottom:18px}
.order-panel-head .eyebrow{margin:0 0 3px}
.order-panel-head h2{font-size:1.45rem;margin:0}
.order-panel-icon{display:grid;place-items:center;width:40px;height:40px;border-radius:13px;background:#eef3e9;color:var(--green);flex:none}
.order-panel-icon svg{width:21px;height:21px}

.order-delivery-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
.order-delivery-cell{display:flex;flex-direction:column;gap:3px;padding:14px;border:1px solid #ece9df;border-radius:15px;background:#fbf9f4;min-width:0}
.order-delivery-cell strong{font-size:.94rem;line-height:1.35;overflow-wrap:anywhere}
.order-label{font-size:.67rem;font-weight:800;letter-spacing:.09em;text-transform:uppercase;color:var(--muted)}
.order-muted{color:var(--muted);font-size:.82rem}
.order-delivery-note{margin:14px 0 0;padding:12px 14px;border-radius:12px;background:#f6f2e8;border:1px solid #ece3d4;font-size:.84rem;color:#6d5e45}
.order-delivery-note span{font-weight:800;text-transform:uppercase;font-size:.66rem;letter-spacing:.08em;color:#8a6a3a;margin-inline-end:6px}

.order-count{font-size:.76rem;font-weight:800;color:var(--muted);background:#f2f4ec;border:1px solid #e5e9dc;border-radius:999px;padding:5px 11px;white-space:nowrap}
.order-item-list{display:grid;gap:11px}
.order-item-card{display:grid;grid-template-columns:76px minmax(0,1fr) auto;align-items:center;gap:16px;padding:13px;border:1px solid #e9e5da;border-radius:17px;background:#fff;transition:border-color .18s ease,box-shadow .18s ease,transform .18s ease}
.order-item-card:hover{border-color:#ccd8c6;box-shadow:0 10px 24px rgba(31,38,30,.07);transform:translateY(-1px)}
.order-item-thumb{width:76px;height:76px;border-radius:13px;overflow:hidden;background:#f3ead9}
.order-item-thumb img{width:100%;height:100%;object-fit:cover;display:block}
.order-item-main{min-width:0}
.order-item-heading{display:flex;align-items:center;gap:9px;flex-wrap:wrap}
.order-item-heading h3{font-family:'DM Sans',sans-serif;font-size:.98rem;font-weight:800;letter-spacing:-.01em;margin:0;line-height:1.3}
.order-item-qty{display:inline-flex;align-items:center;border-radius:999px;background:#f6efe1;color:#8a5a12;font-size:.7rem;font-weight:800;padding:2px 8px}
.order-item-card .cart-contents{margin-top:7px}
.order-item-unit{margin:6px 0 0;font-size:.75rem;color:var(--muted)}
.order-item-note{margin:7px 0 0;font-size:.8rem;color:#6d5e45;font-style:italic}
.order-item-price{display:flex;flex-direction:column;align-items:flex-end;gap:2px;text-align:end;white-space:nowrap}
.order-item-price strong{font-size:.98rem}
.order-item-price-label{font-size:.64rem;text-transform:uppercase;letter-spacing:.08em;color:var(--muted);font-weight:800}

.order-timeline{list-style:none;margin:0;padding:0}
.order-timeline-item{position:relative;display:grid;grid-template-columns:16px minmax(0,1fr);gap:12px;padding-bottom:18px}
.order-timeline-item:last-child{padding-bottom:0}
.order-timeline-item:not(:last-child)::before{content:"";position:absolute;inset-inline-start:7px;top:17px;bottom:0;width:2px;background:#e6e8de}
.order-timeline-dot{width:12px;height:12px;margin-top:3px;border-radius:50%;background:#d9ddd2;border:2px solid var(--paper);box-shadow:0 0 0 1px #d9ddd2}
.order-timeline-item.is-current .order-timeline-dot{background:var(--green);box-shadow:0 0 0 1px var(--green)}
.order-timeline-body{display:flex;flex-direction:column;gap:1px;min-width:0}
.order-timeline-body strong{font-size:.9rem}
.order-timeline-body p{margin:5px 0 0;font-size:.82rem;color:var(--muted)}

.order-summary-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:16px}
.order-summary-head h2{font-size:1.35rem;margin:0}
.order-total-rows{margin:0;padding:0;display:grid;gap:9px}
.order-total-rows>div{display:flex;justify-content:space-between;gap:16px;font-size:.87rem;color:var(--muted)}
.order-total-rows dt{font-weight:500}
.order-total-rows dd{margin:0;color:var(--ink);font-weight:600}
.order-total{display:flex;justify-content:space-between;align-items:baseline;gap:16px;margin-top:15px;padding-top:15px;border-top:1px solid var(--line)}
.order-total span{font-size:.9rem;font-weight:700}
.order-total strong{font-family:'Fraunces',serif;font-size:1.65rem;line-height:1;color:var(--green)}
.order-payment-line{display:flex;align-items:center;gap:11px;margin-top:17px;padding:12px;border-radius:14px;background:#fbf9f4;border:1px solid #ece9df}
.order-payment-icon{display:grid;place-items:center;width:34px;height:34px;border-radius:10px;background:#eef3e9;color:var(--green);flex:none}
.order-payment-icon svg{width:18px;height:18px}
.order-payment-line>div{display:flex;flex-direction:column;gap:0;min-width:0}
.order-payment-line strong{font-size:.86rem}
.order-payment-error{margin:10px 0 0;padding:9px 11px;border-radius:10px;background:#fbe9e5;color:#a4392b;font-size:.78rem}
.order-paybox{margin-top:14px;padding:15px;border-radius:15px;background:#fdf6e8;border:1px solid #f0dfbe}
.order-paybox-title{margin:0 0 4px;font-weight:800;font-size:.9rem;color:#7a4f0f}
.order-paybox p{margin:0}
.order-paybox .order-muted{font-size:.8rem;line-height:1.5}
.order-paybox .button{width:100%;margin-top:11px}
.order-summary-meta{margin:14px 0 0;font-size:.76rem;color:var(--muted);text-align:center}
.order-note h2{font-size:1.25rem;margin:2px 0 6px}
.order-note p{margin:0}
.order-note .order-muted{font-size:.84rem;line-height:1.55}

@media(max-width:900px){
  .order-layout{grid-template-columns:1fr}
  .order-side{position:static}
  .order-delivery-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:640px){
  .order-card{align-items:flex-start;flex-direction:column;gap:12px}
  .order-card-side{width:100%;justify-content:space-between}
  .order-again{padding:18px}
  .order-again .button{width:100%}
  .order-page{padding-block:22px 64px}
  .order-hero{padding:20px;border-radius:20px;gap:18px}
  .order-hero-copy{gap:13px;flex-basis:100%}
  .order-hero-mark{width:44px;height:44px}
  .order-hero-mark svg{width:21px;height:21px}
  .order-hero-actions{width:100%;flex-direction:column;align-items:stretch}
  .order-hero-reorder{width:100%}
  .order-panel{padding:17px;border-radius:18px}
  .order-delivery-grid{grid-template-columns:1fr}
  .order-item-card{grid-template-columns:62px minmax(0,1fr);gap:12px;align-items:start;padding:11px}
  .order-item-thumb{width:62px;height:62px}
  .order-item-price{grid-column:2;flex-direction:row;align-items:center;justify-content:space-between;width:100%;border-top:1px solid #f0ece2;padding-top:9px;margin-top:1px;text-align:start}
}
