/* Orders + Account — theme.css tokens. */

.phone.orders,
.phone.account { padding-bottom: calc(72px + env(safe-area-inset-bottom)); }

.acct-title {
  flex: 1; min-width: 0;
  font-family: var(--font-serif);
  font-size: 16px; font-weight: 600; color: var(--navy);
  text-align: center;
}
.acct-title span {
  display: block;
  font-family: var(--font-sans);
  font-size: 11px; font-weight: 600; color: var(--muted);
  margin-top: 2px;
}

.tab.cart-tab { position: relative; }
.tab.cart-tab .cart-fab {
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--navy-deep);
  display: flex; align-items: center; justify-content: center;
  margin-top: -26px;
  box-shadow: 0 6px 14px rgba(21, 44, 70, 0.32);
  border: 4px solid var(--white);
}
.tab.cart-tab span { margin-top: 1px; color: var(--navy); }

/* Filter tabs */
.ord-tabs {
  display: flex;
  margin: 0 16px;
  border-bottom: 1px solid var(--line);
}
.ord-tab {
  flex: 1; text-align: center;
  padding: 10px 4px 9px;
  font-size: 12px; font-weight: 700;
  color: var(--muted);
  background: none; border: 0;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
}
.ord-tab.is-on { color: var(--navy); border-bottom-color: var(--navy); }

.ord-body { padding: 12px 16px 8px; }

.ord-card {
  display: block;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 14px;
  margin-bottom: 10px;
}
.ord-card.is-tracked { border-color: var(--lime-line); box-shadow: 0 0 0 2px var(--lime-tint); }
.ord-card-top {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  margin-bottom: 10px;
}
.ord-ref { font-size: 12px; font-weight: 800; color: var(--navy); letter-spacing: 0.01em; }
.ord-mid { display: flex; align-items: flex-start; gap: 10px; }
.ord-emoji {
  width: 40px; height: 40px; border-radius: 12px; flex-shrink: 0;
  background: var(--lime-tint);
  display: flex; align-items: center; justify-content: center;
  font-size: 20px;
}
.ord-info { min-width: 0; flex: 1; }
.ord-name { font-size: 13.5px; font-weight: 700; color: var(--navy); line-height: 1.3; }
.ord-meta { font-size: 12px; color: var(--muted); margin-top: 3px; }
.ord-foot {
  display: flex; align-items: center; justify-content: space-between;
  margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--line);
}
.ord-amt { font-size: 14px; font-weight: 800; color: var(--navy); }
.ord-view { font-size: 12px; font-weight: 700; color: var(--navy); }

.ord-badge {
  font-size: 10px; font-weight: 800; letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 3px 8px; border-radius: 99px; white-space: nowrap;
}
.ord-badge.is-delivered { background: var(--lime-tint); color: var(--green2); }
.ord-badge.is-cancelled { background: #fdecec; color: #b4533a; }
.ord-badge.is-shipped,
.ord-badge.is-transit { background: var(--amber-tint); color: #9a5b12; }
.ord-badge.is-processing { background: #eef3f8; color: var(--navy); }

.ord-empty, .ord-error, .ord-loading {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 28px 18px;
  text-align: center;
}
.ord-error { border-color: #f0b4a8; }
.ord-empty h3, .ord-error h3 {
  font-family: var(--font-serif);
  font-size: 18px; font-weight: 600; color: var(--navy); margin: 0 0 6px;
}
.ord-empty p, .ord-error p, .ord-loading p {
  font-size: 13px; color: var(--muted); margin: 0 0 14px;
}
.ord-error p { color: #b4533a; font-weight: 700; }
.ord-track-pill {
  display: inline-block; margin-bottom: 8px;
  font-size: 10px; font-weight: 800;
  background: var(--lime-tint); color: var(--green2);
  padding: 3px 8px; border-radius: 99px;
}

/* Account hero */
.acct-hero {
  margin: 0 16px;
  padding: 18px 16px;
  border-radius: 18px;
  background: linear-gradient(160deg, var(--navy) 0%, var(--navy-deep) 62%, #1a3a18 100%);
  color: var(--white);
  display: flex; align-items: center; gap: 12px;
}
.acct-av {
  width: 56px; height: 56px; border-radius: 50%; flex-shrink: 0;
  background: rgba(255,255,255,.18);
  border: 2px solid rgba(255,255,255,.35);
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; font-weight: 800;
}
.acct-hero .who { min-width: 0; flex: 1; }
.acct-hero .who b { display: block; font-size: 16px; font-weight: 800; }
.acct-hero .who span { display: block; font-size: 12px; color: rgba(255,255,255,.72); margin-top: 2px; }
.acct-hero .who .since {
  display: inline-block; margin-top: 8px;
  font-size: 10px; font-weight: 800;
  background: var(--lime); color: var(--navy-deep);
  padding: 3px 8px; border-radius: 99px;
}
.acct-hero .edit {
  width: 34px; height: 34px; border-radius: 50%;
  background: rgba(255,255,255,.12); border: 0;
  display: flex; align-items: center; justify-content: center; color: var(--white);
}

.acct-stats {
  display: grid; grid-template-columns: 1fr 1fr 1fr;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 16px;
  margin: -12px 16px 0;
  position: relative; z-index: 1;
  overflow: hidden;
}
.acct-stats a {
  padding: 14px 8px; text-align: center;
  border-right: 1px solid var(--line);
}
.acct-stats a:last-child { border-right: 0; }
.acct-stats b { display: block; font-size: 16px; font-weight: 800; color: var(--navy); }
.acct-stats span { font-size: 11px; color: var(--muted); font-weight: 600; }

.acct-sec { margin: 18px 16px 0; }
.acct-sec h3 {
  font-size: 11px; font-weight: 800; letter-spacing: 0.06em;
  text-transform: uppercase; color: var(--muted); margin: 0 0 10px;
}
.acct-sec-head {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 10px;
}
.acct-sec-head h3 { margin: 0; }
.acct-sec-head a { font-size: 12px; font-weight: 700; color: var(--navy); }

.acct-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.menu-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 14px;
  display: flex; align-items: flex-start; gap: 10px;
}
.menu-ic {
  width: 36px; height: 36px; border-radius: 12px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
}
.menu-ic svg { width: 18px; height: 18px; }
.menu-card b { display: block; font-size: 13px; font-weight: 800; color: var(--navy); }
.menu-card span { display: block; font-size: 11px; color: var(--muted); margin-top: 2px; }

.acct-list {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
}
.acct-list a {
  display: flex; align-items: center; justify-content: space-between;
  padding: 13px 14px;
  border-bottom: 1px solid var(--line);
}
.acct-list a:last-child { border-bottom: 0; }
.acct-list .left { display: flex; align-items: center; gap: 10px; font-size: 13.5px; font-weight: 600; color: var(--navy); }
.acct-list svg { width: 16px; height: 16px; color: var(--muted); }
.acct-list a.is-out .left { color: #b4533a; }
.acct-list a.is-out svg { color: #b4533a; }

/* Desktop extras */
.acct-banner {
  background: linear-gradient(135deg, var(--navy-deep) 0%, var(--navy) 55%, #1a3a18 100%);
  border-radius: 18px; padding: 22px 24px; color: var(--white); margin-bottom: 16px;
}
.acct-banner .k { font-size: 11px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--lime); }
.acct-banner h1 { font-family: var(--font-serif); font-size: 26px; font-weight: 600; margin: 4px 0 6px; }
.acct-banner p { margin: 0; font-size: 13px; color: rgba(255,255,255,.7); }

.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 16px; }
.stat-card {
  background: var(--white); border: 1px solid var(--line);
  border-radius: 16px; padding: 16px;
}
.stat-card .ic {
  width: 34px; height: 34px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  background: #eef3f8; margin-bottom: 10px;
}
.stat-card b { display: block; font-size: 22px; font-weight: 800; color: var(--navy); }
.stat-card span { font-size: 12px; color: var(--muted); font-weight: 600; }

.ord-desk-head {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  margin-bottom: 14px;
}
.ord-desk-head h1 {
  font-family: var(--font-serif); font-size: 26px; font-weight: 600; color: var(--navy); margin: 0;
}
.ord-search {
  display: flex; align-items: center; gap: 8px;
  background: var(--white); border: 1px solid var(--line);
  border-radius: 12px; padding: 8px 12px; min-width: 240px;
}
.ord-search input {
  border: 0; outline: 0; background: none; flex: 1; min-width: 0;
  font-size: 13px; color: var(--navy);
}
.ord-desk-tabs {
  display: flex; gap: 6px;
  background: var(--white); border: 1px solid var(--line);
  border-radius: 14px; padding: 6px; margin-bottom: 14px;
}
.ord-desk-tabs button {
  border: 0; background: none; color: var(--muted);
  font-size: 13px; font-weight: 700;
  padding: 8px 14px; border-radius: 10px;
}
.ord-desk-tabs button.is-on { background: var(--navy); color: var(--white); }

.ord-table { width: 100%; border-collapse: collapse; }
.ord-table th {
  text-align: left; font-size: 11px; font-weight: 800;
  letter-spacing: 0.05em; text-transform: uppercase; color: var(--muted);
  padding: 12px 14px; border-bottom: 1px solid var(--line);
}
.ord-table td { padding: 14px; border-bottom: 1px solid var(--line); font-size: 13px; vertical-align: middle; }
.ord-table tr:last-child td { border-bottom: 0; }
.ord-table tr:hover td { background: var(--bg); }
.ord-table .view {
  font-size: 12px; font-weight: 700; color: var(--navy);
  border: 1px solid var(--line); border-radius: 8px; padding: 6px 10px;
}

.acct-split { display: grid; grid-template-columns: minmax(0, 1.6fr) 280px; gap: 16px; }
.quick-link {
  display: flex; align-items: center; gap: 10px;
  padding: 10px; border-radius: 12px;
}
.quick-link:hover { background: var(--bg); }
.quick-link b { font-size: 13.5px; font-weight: 700; color: var(--navy); }

.acct-desktop-foot { padding: 24px 0 40px; font-size: 12px; color: var(--muted); }

@media (max-width: 960px) {
  .stat-grid { grid-template-columns: 1fr 1fr; }
  .acct-split { grid-template-columns: 1fr; }
  .ord-desk-head { flex-direction: column; align-items: flex-start; }
}
