.voucher-expiry{
  margin-top:6px;
  color:#ea580c;
  font-size:12px;
  font-weight:700;
}
:root{
  --primary:#1d4ed8;
  --primary-dark:#1e3a8a;
  --secondary:#0f172a;
  --accent:#f97316;
  --accent-2:#06b6d4;
  --success:#16a34a;
  --danger:#dc2626;
  --warning:#f59e0b;

  --bg:#090909;
  --card:#ffffff;
  --surface:#111111;
  --surface-2:#181818;

  --text:#111827;
  --text-light:#ffffff;
  --muted:#6b7280;
  --muted-light:#cbd5e1;

  --line:#e5e7eb;
  --line-strong:#d1d5db;
  --line-dark:rgba(255,255,255,.10);

  --shadow-sm:0 8px 20px rgba(15,23,42,.06);
  --shadow-md:0 18px 40px rgba(15,23,42,.10);
  --shadow-lg:0 28px 60px rgba(15,23,42,.14);

  --radius:18px;
  --radius-sm:14px;
  --container:1280px;

  --hot-grad:linear-gradient(90deg,#ef4444,#f97316);
  --cool-grad:linear-gradient(135deg,#1e3a8a 0%, #1d4ed8 58%, #06b6d4 100%);
}

*{box-sizing:border-box}
html,body{margin:0;padding:0}

body{
  font-family:Inter,system-ui,-apple-system,"Segoe UI",Roboto,Arial,sans-serif;
  background:#ffffff;
  color:var(--text);
  line-height:1.4;
}

body.modal-open{
  overflow:hidden;
}

a{text-decoration:none;color:inherit}
button,input,textarea{font:inherit}

.container{
  width:min(var(--container),calc(100% - 32px));
  margin:0 auto;
}

/* use same main nav feel as storefront */
/* Header styles moved to shared_navbar.css */


/* page */
.orders-shell{
  padding:34px 0 48px;
  background:#ffffff;
  margin:0 auto;
  max-width:var(--container);
}

.orders-hero{
  background:
    radial-gradient(circle at left top, rgba(239,68,68,.10), transparent 24%),
    radial-gradient(circle at right top, rgba(59,130,246,.10), transparent 24%),
    linear-gradient(180deg,#060606 0%, #111111 100%);
  color:#fff;
  border-radius:24px 24px 0 0;
  padding:34px 32px 26px;
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:24px;
  flex-wrap:wrap;
  border:1px solid rgba(255,255,255,.08);
  border-bottom:none;
}

.orders-hero-copy{
  max-width:700px;
}

.orders-kicker{
  display:inline-flex;
  align-items:center;
  padding:7px 12px;
  border-radius:999px;
  background:rgba(255,255,255,.08);
  border:1px solid rgba(255,255,255,.10);
  color:#f8fafc;
  font-size:11px;
  font-weight:800;
  letter-spacing:.08em;
  text-transform:uppercase;
  margin-bottom:14px;
}

.orders-hero-copy h1{
  margin:0 0 10px;
  font-size:clamp(30px,4vw,44px);
  line-height:1.02;
  letter-spacing:-.03em;
  color:#ffffff;
  text-transform:uppercase;
  font-family:Orbitron, Inter, system-ui, sans-serif;
}

.orders-hero-copy p{
  margin:0;
  font-size:13px;
  line-height:1.7;
  color:#cbd5e1;
}

.orders-hero-tools{
  display:flex;
  gap:12px;
  align-items:center;
  flex-wrap:wrap;
}

.order-search{
  width:100%;
  max-width:none;
}

.search-box{
  display:flex;
  align-items:center;
  gap:12px;
  background:#f8fafc;
  border:1px solid #e5e7eb;
  border-radius:16px;
  padding:10px 12px 10px 16px;
}

.search-box i{
  font-size:14px;
  color:#64748b;
}

.search-box input{
  flex:1 1 auto;
  min-width:0;
  border:none;
  outline:none;
  background:transparent;
  color:#111827;
  font-size:13px;
}

.search-box input::placeholder{
  color:#94a3b8;
}

.search-box button{
  border:none;
  background:var(--hot-grad);
  color:#fff;
  min-width:92px;
  min-height:40px;
  padding:0 15px;
  border-radius:12px;
  font-weight:800;
  cursor:pointer;
  transition:transform .18s ease, opacity .18s ease;
}

.search-box button:hover{
  transform:translateY(-1px);
  opacity:.96;
}

.cart-back-btn{
  display:inline-flex;
  align-items:center;
  gap:10px;
  min-height:44px;
  padding:12px 16px;
  border-radius:14px;
  background:#ffffff;
  color:#111827;
  border:1px solid #e5e7eb;
  font-weight:800;
  box-shadow:0 10px 20px rgba(15,23,42,.08);
  transition:transform .18s ease, box-shadow .18s ease;
}

.cart-back-btn:hover{
  transform:translateY(-2px);
  box-shadow:0 14px 24px rgba(15,23,42,.12);
}

.cart-back-btn i{
  color:#f97316;
}

/* tabs */
.cart-tabs-wrap{
  background:#ffffff;
  padding:20px 32px 0;
  border-left:1px solid rgba(17,24,39,.08);
  border-right:1px solid rgba(17,24,39,.08);
}

.compact-tabs{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,220px));
  gap:14px;
  justify-content:flex-start;
  align-items:stretch;
}

.compact-tabs-four{
  grid-template-columns:repeat(4,minmax(0,1fr));
}

.tab,
button.tab,
a.tab{
  position:relative;
  background:#ffffff !important;
  color:#0f172a !important;
  border:1px solid #e5e7eb !important;
  border-radius:20px !important;
  box-shadow:0 8px 20px rgba(15,23,42,.06);
  padding:16px 18px !important;
  display:flex;
  align-items:center;
  gap:14px;
  justify-content:flex-start;
  min-height:84px;
  cursor:pointer;
  transition:transform .16s ease, box-shadow .16s ease, border-color .16s ease, background .16s ease;
}

.tab:hover{
  transform:translateY(-1px);
  box-shadow:0 14px 24px rgba(15,23,42,.10);
}

.tab.active{
  border-color:rgba(249,115,22,.35) !important;
  background:linear-gradient(135deg,#fff7ed,#ffffff) !important;
  box-shadow:0 16px 30px rgba(249,115,22,.16);
}

.tab-icon{
  width:46px;
  height:46px;
  border-radius:15px;
  background:linear-gradient(135deg,#eff6ff,#dbeafe);
  color:#1d4ed8;
  display:grid;
  place-items:center;
  position:relative;
  flex-shrink:0;
}

.tab.active .tab-icon{
  background:var(--hot-grad);
  color:#fff;
}

.tab-icon svg{
  width:20px;
  height:20px;
  stroke:currentColor;
  fill:none;
  stroke-width:2;
  stroke-linecap:round;
  stroke-linejoin:round;
}

.tab-count{
  position:absolute;
  top:-8px;
  right:-8px;
  min-width:22px;
  height:22px;
  padding:0 6px;
  border-radius:999px;
  background:#111827;
  color:#fff;
  font-size:11px;
  font-weight:800;
  display:grid;
  place-items:center;
  box-shadow:0 6px 14px rgba(15,23,42,.18);
}

.tab strong{
  font-size:15px;
  font-weight:900;
  letter-spacing:-.01em;
}

/* content */
.orders-section{
  background:#ffffff;
  border:1px solid rgba(17,24,39,.08);
  border-top:none;
  border-radius:0 0 24px 24px;
  padding:24px 32px 32px;
  box-shadow:var(--shadow-sm);
}

/* Cart layout - items scroll in fixed area, summary stays at bottom */
.cart-layout{
  display:flex;
  flex-direction:column;
  gap:24px;
  max-height:calc(100vh - 160px);
}

.cart-items-scrollable{
  flex:1 1 auto;
  overflow-y:auto;
  padding-right:8px;
  min-height:0;
}

.cart-items-scrollable::-webkit-scrollbar{
  width:6px;
}

.cart-items-scrollable::-webkit-scrollbar-track{
  background:#f1f5f9;
  border-radius:3px;
}

.cart-items-scrollable::-webkit-scrollbar-thumb{
  background:#cbd5e1;
  border-radius:3px;
}

.cart-items-scrollable::-webkit-scrollbar-thumb:hover{
  background:#94a3b8;
}

.clean-head{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:16px;
  margin-bottom:20px;
}

.clean-head .section-title{
  margin:0 0 6px;
  font-size:28px;
  line-height:1.05;
  letter-spacing:-.03em;
  color:#111827;
  text-transform:none;
  font-family:Inter,system-ui,sans-serif;
}

.clean-head .section-note{
  color:#64748b;
  font-size:13px;
  line-height:1.65;
}

.order-grid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:18px;
}

.order-grid:has(.cart-table-row),
.order-grid.cart-grid{
  grid-template-columns:1fr;
}

/* Cart table row layout (new table style) */
.cart-table-row{
  display:grid;
  grid-template-columns:40px 70px 1fr 120px 120px 50px;
  align-items:center;
  gap:16px;
  padding:16px 20px;
  background:#fff;
  border:1px solid #e5e7eb;
  border-radius:12px;
  margin-bottom:12px;
}

.cart-select-col{
  display:flex;
  align-items:center;
  justify-content:center;
}

.cart-item-checkbox{
  width:20px;
  height:20px;
  cursor:pointer;
  accent-color:#1d4ed8;
}

.cart-image-col{
  width:70px;
  height:70px;
  flex-shrink:0;
}

.cart-product-image{
  width:70px;
  height:70px;
  object-fit:cover;
  border-radius:12px;
  border:1px solid #e5e7eb;
}

.cart-image-placeholder{
  width:70px;
  height:70px;
  border-radius:12px;
  background:linear-gradient(135deg,#111827,#374151);
  color:#fff;
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:20px;
  font-weight:800;
}

.cart-product-col{
  min-width:0;
}

.cart-product-name{
  font-size:15px;
  font-weight:700;
  color:#111827;
  margin:0 0 4px;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}

.cart-product-price{
  font-size:13px;
  color:#6b7280;
}

.cart-qty-col{
  display:flex;
  justify-content:center;
}

.cart-qty-control{
  display:flex;
  align-items:center;
  gap:0;
  border:1px solid #d1d5db;
  border-radius:8px;
  overflow:hidden;
  background:#fff;
}

.cart-qty-btn{
  width:28px;
  height:32px;
  border:none;
  background:#f9fafb;
  color:#374151;
  font-size:14px;
  font-weight:600;
  cursor:pointer;
  display:flex;
  align-items:center;
  justify-content:center;
  transition:background .15s ease;
}

.cart-qty-btn:hover{
  background:#f3f4f6;
}

.cart-qty-value{
  width:36px;
  height:32px;
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:14px;
  font-weight:600;
  color:#111827;
}

.cart-subtotal-col{
  text-align:right;
}

.cart-subtotal{
  font-size:15px;
  font-weight:700;
  color:#111827;
}

.cart-action-col{
  display:flex;
  justify-content:flex-end;
}

.cart-delete-btn{
  width:36px;
  height:36px;
  border:none;
  background:transparent;
  color:#ef4444;
  font-size:16px;
  cursor:pointer;
  border-radius:8px;
  display:flex;
  align-items:center;
  justify-content:center;
  transition:background .15s ease;
}

.cart-delete-btn:hover{
  background:#fef2f2;
}

.order-card{
  background:#fff;
  border:1px solid #e5e7eb;
  border-radius:22px;
  box-shadow:0 10px 24px rgba(15,23,42,.05);
  overflow:hidden;
}

.order-top{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:12px;
  padding:18px 18px 14px;
  border-bottom:1px solid #edf2f7;
}

.order-id{
  font-size:13px;
  font-weight:900;
  color:#0f172a;
}

.order-date{
  margin-top:5px;
  font-size:12px;
  color:#64748b;
}

.status{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:32px;
  padding:0 12px;
  border-radius:999px;
  font-size:12px;
  font-weight:900;
  letter-spacing:.03em;
  white-space:nowrap;
}

.status.cart{
  background:#eff6ff;
  color:#1d4ed8;
}
.status.dispatch{
  background:#fff7ed;
  color:#ea580c;
}
.status.ship{
  background:#ecfeff;
  color:#0891b2;
}
.status.completed{
  background:#ecfdf5;
  color:#059669;
}

.status.status-pending{
  background:#fef3c7;
  color:#d97706;
}
.status.status-accepted{
  background:#dbeafe;
  color:#2563eb;
}
.status.status-preparing{
  background:#f3e8ff;
  color:#9333ea;
}
.status.status-waiting{
  background:#ffedd5;
  color:#ea580c;
}
.status.status-shipped{
  background:#ecfeff;
  color:#0891b2;
}
.status.status-complete{
  background:#ecfdf5;
  color:#059669;
}
.status.status-cancelled{
  background:#fee2e2;
  color:#dc2626;
}

.order-body{
  padding:18px;
}

.product-row{
  display:grid;
  grid-template-columns:auto minmax(0,1fr) auto;
  gap:16px;
  align-items:center;
}

.thumb,
.cart-thumb-image{
  width:74px;
  height:74px;
  border-radius:18px;
  flex-shrink:0;
}

.thumb{
  display:grid;
  place-items:center;
  background:linear-gradient(135deg,#111827,#374151);
  color:#fff;
  font-size:24px;
  font-weight:900;
}

.cart-thumb-image{
  object-fit:cover;
  border:1px solid #e5e7eb;
  background:#f8fafc;
}

.product-name{
  margin:0 0 8px;
  font-size:20px;
  line-height:1.3;
  color:#0f172a;
  font-weight:600;
}

.product-meta{
  font-size:15px;
  color:#64748b;
  line-height:1.6;
  font-weight:500;
}

.price{
  font-size:18px;
  font-weight:900;
  color:#111827;
  text-align:right;
}

.order-footer{
  padding:16px 18px 18px;
  border-top:1px solid #edf2f7;
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:14px;
}

.summary{
  display:grid;
  gap:8px;
}

.summary div{
  display:flex;
  gap:10px;
  align-items:center;
  flex-wrap:wrap;
}

.summary span{
  font-size:12px;
  color:#64748b;
}

.summary strong{
  font-size:13px;
  color:#0f172a;
}

.actions{
  display:flex;
  gap:8px;
  flex-wrap:wrap;
  justify-content:flex-end;
}

.cart-actions-group{
  align-items:center;
}

.action-btn{
  min-height:40px;
  border-radius:12px;
  border:1px solid #e5e7eb;
  background:#fff;
  color:#111827;
  padding:0 14px;
  font-size:13px;
  font-weight:800;
  cursor:pointer;
  transition:transform .16s ease, box-shadow .16s ease, opacity .16s ease;
}

.action-btn:hover{
  transform:translateY(-1px);
  box-shadow:0 10px 18px rgba(15,23,42,.08);
}

.action-btn.hot{
  background:var(--hot-grad);
  color:#fff;
  border:none;
}

.action-btn.warm{
  background:#fff7ed;
  color:#ea580c;
  border-color:#fed7aa;
}

.qty-btn{
  width:40px;
  padding:0;
}

.qty-value{
  min-width:44px;
  pointer-events:none;
  background:#f8fafc;
}

/* empty */
.empty{
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  min-height:240px;
  border:2px dashed #e2e8f0;
  border-radius:24px;
  color:#64748b;
  background:linear-gradient(180deg,#f8fafc,#f1f5f9);
  font-size:15px;
  margin-top:16px;
  padding:40px 24px;
  text-align:center;
  gap:12px;
}

.empty::before{
  content:"🛒";
  font-size:48px;
  opacity:0.4;
  margin-bottom:8px;
}

.empty strong{
  color:#334155;
  font-size:16px;
  font-weight:600;
}

/* summary panel - fixed at bottom, doesn't scroll */
.cart-summary-panel{
  flex:0 0 auto;
  position:static;
}

.cart-summary-card{
  width:100%;
  max-width:none;
  border:1px solid #e2e8f0;
  border-radius:24px;
  background:#ffffff;
  padding:24px;
  box-shadow:0 20px 40px rgba(15,23,42,.12);
}

.cart-summary-row{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding:10px 0;
  color:#475569;
  font-size:14px;
}

.cart-summary-row.compact-row{
  padding:8px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.summary-label{
  color:#475569;
  font-size:14px;
}

.summary-label strong{
  color:#0f172a;
  font-weight:600;
}

.cart-summary-row strong{
  color:#0f172a;
  font-size:15px;
}

.cart-summary-total{
  margin-top:8px;
  padding-top:16px;
  border-top:2px solid #e2e8f0;
  background:linear-gradient(135deg,#f8fafc,#f1f5f9);
  margin:12px -12px 0;
  padding:16px 12px;
  border-radius:12px;
}

.cart-summary-total span,
.cart-summary-total strong{
  color:#0f172a;
  font-size:20px;
  font-weight:900;
}

.cart-summary-total strong{
  color:#1d4ed8;
}

.cart-summary-actions{
  display:flex;
  gap:10px;
  margin-top:18px;
}

.ghost-action-btn,
.primary-action-btn{
  flex:1 1 auto;
  min-height:46px;
  border-radius:14px;
  font-size:14px;
  font-weight:900;
  cursor:pointer;
  transition:transform .16s ease, box-shadow .16s ease, opacity .16s ease;
}

.ghost-action-btn{
  border:1px solid #dbe1ea;
  background:#fff;
  color:#0f172a;
}

.primary-action-btn{
  border:none;
  background:var(--hot-grad);
  color:#fff;
  box-shadow:0 14px 28px rgba(239,68,68,.16);
}

.ghost-action-btn:hover,
.primary-action-btn:hover{
  transform:translateY(-1px);
}

/* modal */
.modal-shell{
  position:fixed;
  inset:0;
  z-index:120;
  display:grid;
  place-items:center;
  padding:20px;
}

.modal-shell[hidden]{
  display:none;
}

.modal-backdrop{
  position:absolute;
  inset:0;
  background:rgba(2,6,23,.62);
  backdrop-filter:blur(6px);
}

.checkout-modal-card{
  position:relative;
  z-index:1;
  width:min(800px,95%);
  max-height:90vh;
  background:#fff;
  border-radius:24px;
  border:1px solid #e5e7eb;
  box-shadow:0 28px 70px rgba(15,23,42,.24);
  overflow-y:auto;
  display:flex;
  flex-direction:column;
}

.checkout-modal-card.compact{
  width:min(740px,95%);
}

.modal-close{
  position:absolute;
  top:16px;
  right:16px;
  width:56px;
  height:48px;
  border:none;
  border-radius:12px;
  background:#f8fafc;
  color:#334155;
  display:grid;
  place-items:center;
  cursor:pointer;
  transition:background .2s ease;
  flex-shrink:0;
  z-index:10;
  font-size:20px;
}

.checkout-modal-head{
  padding:18px 22px 14px;
  background:
    radial-gradient(circle at top left, rgba(239,68,68,.10), transparent 22%),
    radial-gradient(circle at top right, rgba(59,130,246,.10), transparent 22%),
    linear-gradient(180deg,#060606,#111111);
  color:#fff;
  flex-shrink:0;
}

.checkout-modal-kicker{
  display:inline-flex;
  align-items:center;
  padding:7px 12px;
  border-radius:999px;
  background:rgba(255,255,255,.10);
  border:1px solid rgba(255,255,255,.12);
  font-size:11px;
  font-weight:800;
  letter-spacing:.08em;
  text-transform:uppercase;
}

.checkout-modal-head h3{
  margin:10px 0 6px;
  font-size:24px;
  line-height:1.1;
  font-family:Orbitron, Inter, system-ui, sans-serif;
}

.checkout-modal-head p{
  margin:0;
  color:#cbd5e1;
  font-size:13px;
  line-height:1.65;
}

.checkout-modal-form{
  padding:16px;
  overflow-y:auto;
}

.checkout-modal-layout{
  display:flex;
  flex-direction:column;
  gap:14px;
}

.checkout-panel{
  background:#fff;
}

.checkout-summary-card{
  background:#fff;
  order:2;
}

.panel-block{
  border:1px solid #e5e7eb;
  border-radius:20px;
  padding:16px;
  margin-bottom:14px;
  background:#fff;
}

.panel-block:last-child{
  margin-bottom:0;
}

.panel-block-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  margin-bottom:14px;
}

.panel-block-head h4{
  margin:0;
  font-size:16px;
  color:#0f172a;
}

.text-link-btn{
  font-size:12px;
  font-weight:800;
  color:#ef4444;
}

.checkout-address-list{
  display:grid;
  gap:10px;
}

.checkout-address-card{
  display:block;
  border:1px solid #e5e7eb;
  border-radius:16px;
  padding:14px;
  cursor:pointer;
  transition:all .16s ease;
  background:#fff;
}

.checkout-address-card:hover{
  border-color:#cbd5e1;
  box-shadow:0 10px 20px rgba(15,23,42,.05);
}

.checkout-address-card.selected{
  border-color:rgba(59,130,246,.34);
  background:linear-gradient(135deg,#eff6ff,#ffffff);
}

.checkout-address-card input{
  display:none;
}

.checkout-address-card-top{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  margin-bottom:8px;
}

.checkout-address-label{
  font-size:12px;
  font-weight:900;
  color:#0f172a;
  text-transform:uppercase;
  letter-spacing:.04em;
}

.checkout-address-primary{
  display:inline-flex;
  padding:4px 8px;
  border-radius:999px;
  background:#dbeafe;
  color:#1d4ed8;
  font-size:11px;
  font-weight:800;
}

.checkout-address-card strong{
  display:block;
  margin-bottom:6px;
  color:#111827;
  font-size:15px;
}

.checkout-address-card p{
  margin:0 0 6px;
  color:#475569;
  font-size:13px;
  line-height:1.55;
}

.checkout-address-card small{
  color:#64748b;
  font-size:12px;
}

.checkout-empty-address[hidden]{
  display:none !important;
}

.checkout-empty-address{
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  min-height:100px;
  border:2px dashed #cbd5e1;
  border-radius:14px;
  background:linear-gradient(135deg, #f8fafc, #f1f5f9);
  color:#64748b;
  text-align:center;
  padding:16px;
  gap:8px;
}

.checkout-empty-address i{
  font-size:24px;
  color:#ef4444;
}

.checkout-empty-address p{
  font-size:14px;
  font-weight:500;
  color:#475569;
  margin:0;
}

.checkout-empty-address .action-btn.hot{
  padding:8px 16px;
  font-size:13px;
  font-weight:600;
  border-radius:8px;
  text-decoration:none;
}

.customer-preview-grid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:12px;
}

.customer-preview-grid div{
  background:#f8fafc;
  border:1px solid #e5e7eb;
  border-radius:14px;
  padding:12px;
}

.customer-preview-grid span{
  display:block;
  font-size:11px;
  color:#64748b;
  text-transform:uppercase;
  letter-spacing:.06em;
  margin-bottom:6px;
}

.customer-preview-grid strong{
  color:#0f172a;
  font-size:14px;
  line-height:1.5;
}

.customer-preview-grid .full-row{
  grid-column:1 / -1;
}

.checkout-choice-grid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:10px;
}

.pickup-schedule-fields{
  grid-column:1 / -1;
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:10px;
  padding:12px;
  border:1px solid #fed7aa;
  border-radius:12px;
  background:#fffaf5;
}

.pickup-schedule-fields[hidden]{display:none}
.pickup-schedule-fields label{display:block;margin-bottom:6px;color:#374151;font-size:12px;font-weight:700}
.pickup-schedule-fields input{width:100%;min-height:42px;padding:8px 10px;border:1px solid #d1d5db;border-radius:8px;background:#fff;color:#111827;font:inherit}
.pickup-schedule-note{grid-column:1 / -1;color:#64748b;font-size:11px;line-height:1.4}

@media(max-width:520px){
  .pickup-schedule-fields{grid-template-columns:1fr}
}

.checkout-choice-card{
  display:flex;
  align-items:flex-start;
  gap:12px;
  border:1px solid #e5e7eb;
  border-radius:16px;
  padding:14px;
  cursor:pointer;
  background:#fff;
  transition:all .16s ease;
}

.checkout-choice-card.selected{
  border-color:rgba(249,115,22,.34);
  background:linear-gradient(135deg,#fff7ed,#ffffff);
}

.checkout-choice-card input{
  margin-top:3px;
}

.checkout-choice-card strong{
  display:block;
  margin-bottom:5px;
  color:#111827;
  font-size:15px;
}

.checkout-choice-card p{
  margin:0;
  color:#64748b;
  font-size:12px;
  line-height:1.55;
}

.paymongo-panel{
  margin-top:12px;
  border-radius:16px;
  background:linear-gradient(135deg,#ecfeff,#ffffff);
  border:1px solid #bae6fd;
  padding:14px;
  text-align:center;
}

.paymongo-panel p{
  margin:10px 0 0;
  color:#0f172a;
  font-size:13px;
  line-height:1.6;
}

.paymongo-badge{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:7px 10px;
  border-radius:999px;
  background:#0ea5e9;
  color:#fff;
  font-size:12px;
  font-weight:800;
}

.checkout-summary-card{
  border:1px solid #e5e7eb;
  border-radius:22px;
  padding:18px;
  background:linear-gradient(180deg,#ffffff,#f8fafc);
  box-shadow:0 12px 24px rgba(15,23,42,.05);
  width:100%;
}

.summary-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  margin-bottom:12px;
}

.summary-head h4{
  margin:0;
  color:#0f172a;
  font-size:16px;
}

.summary-head span{
  min-width:30px;
  height:30px;
  padding:0 8px;
  border-radius:999px;
  background:#111827;
  color:#fff;
  display:grid;
  place-items:center;
  font-size:12px;
  font-weight:900;
}

.summary-items-list{
  list-style:none;
  margin:0;
  padding:0;
  display:grid;
  gap:10px;
  max-height:240px;
  overflow:auto;
}

.summary-items-list li{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:12px;
  padding:10px 0;
  border-bottom:1px solid #e5e7eb;
  font-size:13px;
  color:#475569;
}

.summary-items-list strong{
  color:#0f172a;
}

.summary-totals{
  display:grid;
  gap:10px;
  margin-top:14px;
}

.summary-totals div{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  color:#475569;
  font-size:13px;
}

.summary-totals strong{
  color:#0f172a;
  font-size:14px;
}

.summary-totals .grand-total{
  margin-top:2px;
  padding-top:12px;
  border-top:1px solid #e5e7eb;
}

.summary-totals .grand-total span,
.summary-totals .grand-total strong{
  font-size:17px;
  font-weight:900;
  color:#0f172a;
}

.summary-actions{
  display:flex;
  gap:10px;
  margin-top:18px;
}

/* success */
.success-shell{
  padding:20px;
}

.success-modal-card{
  position:relative;
  z-index:1;
  width:min(420px,100%);
  border-radius:24px;
  background:#fff;
  border:1px solid #e5e7eb;
  box-shadow:0 28px 70px rgba(15,23,42,.24);
  padding:28px 24px 24px;
  text-align:center;
}

.success-icon{
  width:72px;
  height:72px;
  border-radius:24px;
  margin:0 auto 16px;
  display:grid;
  place-items:center;
  background:linear-gradient(135deg,#22c55e,#16a34a);
  color:#fff;
  font-size:28px;
  box-shadow:0 14px 28px rgba(34,197,94,.22);
}

.success-modal-card h3{
  margin:0 0 8px;
  font-size:26px;
  color:#0f172a;
}

.success-modal-card p{
  margin:0 0 18px;
  color:#64748b;
  line-height:1.7;
  font-size:14px;
}

/* responsive */
@media (max-width: 1100px){
  .order-grid{
    grid-template-columns:1fr;
  }

  .compact-tabs-four{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }

  .cart-items-scrollable{
    max-height:none;
    overflow-y:visible;
    padding-right:0;
  }

  .cart-summary-panel{
    position:static;
  }
}

@media (max-width: 920px){
  .checkout-modal-layout{
    grid-template-columns:1fr;
  }
}

@media (max-width: 760px){
  .orders-hero{
    padding:22px 18px 18px;
    border-radius:20px 20px 0 0;
  }

  .cart-tabs-wrap,
  .orders-section{
    padding-left:18px;
    padding-right:18px;
  }

  .compact-tabs,
  .compact-tabs-four{
    grid-template-columns:1fr;
  }

  .tab{
    min-height:72px;
  }

  .product-row{
    grid-template-columns:auto 1fr;
  }

  .price{
    grid-column:2;
  }

  /* Cart table row mobile */
  .cart-table-row{
    grid-template-columns:30px 60px 1fr auto;
    gap:10px;
    padding:14px 16px;
  }

  .cart-select-col{
    grid-row:1 / 3;
    align-self:center;
  }

  .cart-image-col{
    width:60px;
    height:60px;
    grid-row:1 / 3;
  }

  .cart-product-image,
  .cart-image-placeholder{
    width:60px;
    height:60px;
  }

  .cart-product-col{
    grid-column:2 / -1;
  }

  .cart-qty-col{
    justify-content:flex-start;
  }

  .cart-subtotal-col{
    text-align:left;
  }

  .cart-action-col{
    grid-column:2;
    grid-row:2 / 4;
    align-self:center;
  }

  .order-footer{
    flex-direction:column;
    align-items:stretch;
  }

  .actions{
    justify-content:flex-start;
  }

  .cart-summary-card{
    width:100%;
  }

  .customer-preview-grid,
  .checkout-choice-grid{
    grid-template-columns:1fr;
  }

  .summary-actions,
  .cart-summary-actions{
    flex-direction:column;
  }

  .ghost-action-btn,
  .primary-action-btn{
    width:100%;
  }
}

@media (max-width: 560px){
  .search-box{
    width:100%;
  }

  .order-search{
    min-width:100%;
  }

  .checkout-modal-head{
    padding:20px 18px 16px;
  }

  .checkout-modal-form{
    padding:16px;
  }

  .checkout-modal-card,
  .success-modal-card{
    border-radius:20px;
  }
}