/* ===========================
   Brand Colour Tokens
=========================== */

:root {
  --bs-primary:        #f97316;
  --bs-primary-rgb:    249, 115, 22;
  --tp-orange:         #f97316;  /* brand primary   */
  --tp-orange-dark:    #ea580c;  /* hover / pressed */
  --tp-orange-light:   #fb923c;  /* subtle tints    */
  --tp-orange-tint-bg: #fff7ed;  /* pale warm bg    */
  --tp-orange-tint-bd: #fed7aa;  /* warm border     */
}

/* ===========================
   Global Defaults
=========================== */

body {
  background-color: #f8f9fa;
  color: #212529;
}

a {
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}


/* ===========================
   Navigation / Navbar
=========================== */

/* Cart icon accent colour — replaces inline style="color:#f97316" */
.navbar-cart-icon {
  color: #f97316;
}

/* Prevent nav-link text from wrapping to multiple lines on any viewport */
.navbar .navbar-nav .nav-link {
  white-space: nowrap;
}

/* Language toggle li — align vertically centred within the navbar row */
.navbar .navbar-nav .nav-item.lang-toggle-item {
  display: flex;
  align-items: center;
}

.offcanvas-body .nav-link {
  font-size: 1rem;
  padding: 10px;
  border-radius: 6px;
}

.offcanvas-body .nav-link:hover {
  background-color: rgba(0, 0, 0, 0.05);
}

/* ── Demo Mode Banner ── */
.demo-mode-banner {
  background-color: #1a1a2e;
  color: #e0e0f0;
  text-align: center;
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  letter-spacing: 0.01em;
  border-bottom: 2px solid #4a4aff;
}

.demo-mode-banner__card {
  font-family: monospace;
  background-color: rgba(255, 255, 255, 0.12);
  padding: 0.1em 0.45em;
  border-radius: 3px;
  letter-spacing: 0.05em;
}

/* ── Platform support-mode banner ── */
.support-mode-banner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  background-color: #7a3e00;
  color: #fff;
  text-align: center;
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  border-bottom: 2px solid var(--tp-orange);
}

.support-mode-banner__end {
  margin: 0;
}

/* ── Language Toggle (EN | ES) ── */
.lang-toggle {
  display: flex;
  align-items: center;
  background: none;
  border: none;
  padding: 0;
  margin: 0;
}

.lang-toggle-btn {
  background: none;
  border: none;
  padding: 0.15rem 0.35rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: #6c757d;
  cursor: pointer;
  line-height: 1;
  border-radius: 3px;
  transition: color 0.15s;
}

.lang-toggle-btn:hover {
  color: #212529;
}

.lang-toggle-active {
  color: #212529;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.lang-toggle-sep {
  color: #ced4da;
  font-size: 0.75rem;
  user-select: none;
}

/* Dark navbar variant — Mode 2 (owner nav) */
.lang-toggle-dark .lang-toggle-btn {
  color: rgba(255, 255, 255, 0.5);
}

.lang-toggle-dark .lang-toggle-btn:hover {
  color: rgba(255, 255, 255, 0.9);
}

.lang-toggle-dark .lang-toggle-active {
  color: #fff;
}

.lang-toggle-dark .lang-toggle-sep {
  color: rgba(255, 255, 255, 0.25);
}


/* ===========================
   Menu Categories
=========================== */

.menu-category {
  font-weight: 600;
  font-size: 1.1rem;
  margin: 1.5rem 0 0.75rem;
}


/* ===========================
   Menu Item Card
=========================== */

.menu-item-card {
  border-radius: 0.75rem;
  overflow: hidden;
  background: #fff;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.menu-item-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 0.75rem 1.5rem rgba(0, 0, 0, 0.08);
}

.menu-item-image {
  aspect-ratio: 4 / 3;
  background-color: #f1f3f5;
  overflow: hidden;
}

.menu-item-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.menu-item-body {
  padding: 0.75rem;
}

.menu-item-title {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.menu-item-description {
  font-size: 0.875rem;
  color: #6c757d;
  margin-bottom: 0.5rem;
}

.menu-item-price {
  font-weight: 600;
  font-size: 0.95rem;
}


/* ===========================
   Quantity Controls
=========================== */

.qty-control {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.qty-control button {
  width: 32px;
  height: 32px;
  border-radius: 6px;
  padding: 0;
}


/* ===========================
   Cart / Order Summary
=========================== */

.cart-summary {
  background: #fff;
  border-radius: 0.75rem;
  padding: 1rem;
  box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.05);
}

.cart-item {
  display: flex;
  justify-content: space-between;
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
}

.cart-special-instructions {
  font-size: 0.8rem;
  color: #6c757d;
  font-style: italic;
  margin-top: 0.25rem;
}

.cart-total {
  font-weight: 700;
  font-size: 1.1rem;
}


/* ===========================
   Fixed Checkout Bar (Mobile)
=========================== */

.checkout-bar {
  position: sticky;
  bottom: 0;
  background: #fff;
  padding: 0.75rem 1rem;
  border-top: 1px solid #dee2e6;
  z-index: 1020;
}


/* ===========================
   Modal Overrides
=========================== */

.modal-content {
  color: #212529 !important;
  border-radius: 0.75rem;
}

/* Fix: form wrapper inside modal-dialog-scrollable must relay Bootstrap's
   flex-column layout so modal-body scrolls and modal-footer stays pinned. */
#menu-item-form,
#cm-item-form {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  min-height: 0;
  overflow: hidden;
}

/* Fix: Bootstrap's modal-dialog-scrollable does not set min-height:0 on
   modal-body, so without a form wrapper the flex item can't shrink below
   its content size and the modal-footer gets clipped.  */
.modal-dialog-scrollable .modal-body {
  min-height: 0;
}


/* ===========================
   Responsive Helpers
=========================== */

@media (max-width: 576px) {
  .menu-item-title {
    font-size: 0.95rem;
  }

  .menu-item-description {
    font-size: 0.8rem;
  }
}


/* Custom utility to hide the badge when empty */
.badge-hidden {
    display: none !important;
}


/* ════════════════════════════════════════════════════════════════════════════
   How It Works page  (/how-it-works/)
════════════════════════════════════════════════════════════════════════════ */

.hiw-hero {
  background: linear-gradient(135deg, #f0f4ff 0%, #e8f0fe 100%);
  padding-top: 6rem;
}
.hiw-hero-text { max-width: 580px; }

.hiw-sticky-nav { top: 56px; z-index: 900; }

.hiw-step-badge {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  font-weight: 700;
}
.hiw-step-content { padding: 1rem 0; }
.hiw-checklist li { font-size: .9rem; margin-bottom: .4rem; }
.hiw-connector { text-align: center; margin: .5rem 0 1rem; }

.hiw-mockup-card {
  border-radius: .75rem;
  padding: 1.25rem;
  box-shadow: 0 4px 24px rgba(0,0,0,.08);
}
.hiw-mockup-bar { display: flex; align-items: center; gap: 6px; }
.hiw-dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; }
.hiw-url-bar {
  background: rgba(0,0,0,.06);
  border-radius: 4px;
  padding: 2px 10px;
  font-size: .7rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 220px;
}

.hiw-field-mock {
  background: #fff;
  border-radius: .375rem;
  padding: .5rem .75rem;
  border: 1px solid #dee2e6;
}
.hiw-field-label {
  font-size: .65rem;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: #6c757d;
}
.hiw-field-value { font-size: .875rem; font-weight: 500; }
.hiw-btn-static   { pointer-events: none; }

.hiw-ticket { font-size: .8rem; }
.hiw-stat-box { background: #fff; border: 1px solid #e9ecef; }

/* Mockup bar chart */
.hiw-chart { height: 60px; }
.hiw-bar   { display: inline-block; }
.hiw-bar--h35 { height: 35%; flex: 1; border-radius: 3px 3px 0 0; opacity: .8; }
.hiw-bar--h40 { height: 40%; flex: 1; border-radius: 3px 3px 0 0; opacity: .8; }
.hiw-bar--h50 { height: 50%; flex: 1; border-radius: 3px 3px 0 0; opacity: .8; }
.hiw-bar--h55 { height: 55%; flex: 1; border-radius: 3px 3px 0 0; opacity: .8; }
.hiw-bar--h65 { height: 65%; flex: 1; border-radius: 3px 3px 0 0; opacity: .8; }
.hiw-bar--h70 { height: 70%; flex: 1; border-radius: 3px 3px 0 0; opacity: .8; }
.hiw-bar--h90 { height: 90%; flex: 1; border-radius: 3px 3px 0 0; opacity: .8; }

/* Typography helpers (inline style= replacements) */
.hiw-text-xs   { font-size: .75rem; }
.hiw-text-xxs  { font-size: .7rem; }
.hiw-text-xxxs { font-size: .65rem; }

/* Customer steps */
.hiw-cust-card {
  background: #fff;
  border-radius: .75rem;
  padding: 2rem 1.5rem;
  box-shadow: 0 2px 12px rgba(0,0,0,.06);
  transition: transform .2s ease;
}
.hiw-cust-card:hover { transform: translateY(-4px); }
.hiw-cust-icon-wrap {
  width: 72px;
  height: 72px;
  border-radius: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
}
.hiw-cust-step-num {
  display: inline-block;
  width: 26px;
  height: 26px;
  line-height: 26px;
  background: var(--bs-primary);
  color: #fff;
  border-radius: 50%;
  font-size: .8rem;
  font-weight: 700;
  text-align: center;
  margin: .75rem auto .5rem;
}

/* Feature cards (Features at a Glance) */
.hiw-feature-card {
  background: #fff;
  border-radius: .75rem;
  padding: 1.75rem 1.5rem;
  box-shadow: 0 2px 12px rgba(0,0,0,.06);
  border: 1px solid rgba(0,0,0,.05);
  transition: transform .2s ease, box-shadow .2s ease;
}
.hiw-feature-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 20px rgba(0,0,0,.1);
}

/* Testimonial avatars */
.hiw-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .75rem;
  font-weight: 700;
  flex-shrink: 0;
}

.hiw-cta-section {
  background: linear-gradient(135deg, #f97316 0%, #ea580c 100%);
}

html { scroll-behavior: smooth; }


/* ════════════════════════════════════════════════════════════════════════════
   Integrations page  (/integrations/)
════════════════════════════════════════════════════════════════════════════ */

.integrations-hero {
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  padding-top: 6rem;
}
.integrations-hero-text { max-width: 560px; }

.integration-card {
  transition: transform .2s ease, box-shadow .2s ease;
  border-radius: .75rem;
}
.integration-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 .75rem 1.5rem rgba(0,0,0,.10) !important;
}

.integration-logo-wrap {
  width: 64px;
  height: 64px;
  border-radius: .5rem;
  display: flex;
  align-items: center;
  justify-content: center;
}
/* POS brand colour backgrounds (replaces inline style="background:#...") */
.integration-logo-wrap--square { background: #3E4348; }
.integration-logo-wrap--toast  { background: #D32F2F; }
.integration-logo-wrap--clover { background: #6CC04A; }
/* Delivery brand colour backgrounds */
.integration-logo-wrap--selfdelivery { background: #198754; }
.integration-logo-wrap--uber   { background: #000000; }
/* Printer / KDS hardware brand colour backgrounds */
.integration-logo-wrap--star   { background: #003087; }
.integration-logo-wrap--epson  { background: #003399; }

.integration-features li { font-size: .875rem; margin-bottom: .35rem; }

.builtin-card {
  border-radius: .75rem;
  transition: transform .2s ease, box-shadow .2s ease;
}
.builtin-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 .75rem 1.5rem rgba(0,0,0,.10) !important;
}
.builtin-icon-wrap {
  width: 64px;
  height: 64px;
  border-radius: .75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
}

.integrations-table th,
.integrations-table td { vertical-align: middle; white-space: nowrap; }
.integrations-table thead th { font-size: .875rem; letter-spacing: .03em; }


/* ════════════════════════════════════════════════════════════════════════════
   Team Management page  (/restaurants/team/)
════════════════════════════════════════════════════════════════════════════ */

/* ── Stats bar ── */
.team-stat-card {
  border-radius: .75rem;
  transition: transform .15s ease;
}
.team-stat-card:hover { transform: translateY(-2px); }
.team-stat-num {
  font-size: 1.75rem;
  font-weight: 700;
  line-height: 1.1;
}
.team-stat-label {
  font-size: .75rem;
  color: #6c757d;
  text-transform: uppercase;
  letter-spacing: .05em;
  margin-top: .25rem;
}

/* ── Member avatar circle ── */
.team-avatar {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: .875rem;
  flex-shrink: 0;
}
.team-avatar--owner   { background: #212529; color: #fff; }
.team-avatar--manager { background: #0d6efd; color: #fff; }
.team-avatar--staff   { background: #6c757d; color: #fff; }

/* ── Role badges ── */
.team-role-badge {
  font-size: .75rem;
  font-weight: 600;
  padding: .3em .6em;
  border-radius: .4rem;
}
.team-role-badge--owner   { background: #212529; color: #fff; }
.team-role-badge--manager { background: #0d6efd; color: #fff; }
.team-role-badge--staff   { background: #6c757d; color: #fff; }

/* ── Subtle "You" badge ── */
.team-badge-you {
  font-size: .65rem;
  padding: .1em .4em;
}

/* ── Table typography ── */
.team-member-email { font-size: .8rem; }
.team-row-self     { background: rgba(13, 110, 253, .03); }

/* ── Invite icon in pending table ── */
.team-invite-icon {
  width: 2rem;
  height: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255, 193, 7, .12);
  flex-shrink: 0;
}

/* ── Sidebar invite card ── */
.team-invite-card { border-radius: .75rem; overflow: hidden; }

/* ── Role reference list ── */
.team-perm-list li { font-size: .8rem; margin-bottom: .2rem; }
.team-role-ref     { margin-bottom: .5rem; }


/* ════════════════════════════════════════════════════════════════════════════
   User Profile page  (/profile/)  — works across all 3 navbar modes
════════════════════════════════════════════════════════════════════════════ */

/* ── Profile hero header ── */
.profile-hero {
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 60%, #0f3460 100%);
}
.profile-hero--owner   { background: linear-gradient(135deg, #1a1a2e 0%, #0d2137 100%); }
.profile-hero--customer { background: linear-gradient(135deg, #0f3460 0%, #1a1a2e 100%); }

/* ── Avatar ── */
.profile-avatar-wrap {
  position: relative;
  display: inline-block;
}
.profile-avatar {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid rgba(255,255,255,.25);
}
.profile-avatar-initials {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  font-weight: 700;
  color: #fff;
  border: 3px solid rgba(255,255,255,.25);
  background: rgba(255,255,255,.15);
}
.profile-avatar-edit-btn {
  position: absolute;
  bottom: 4px;
  right: 4px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #f97316;
  border: 2px solid #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background .2s;
}
.profile-avatar-edit-btn:hover { background: #ea580c; }
.profile-avatar-edit-btn i     { font-size: .7rem; color: #fff; }

/* ── Role badge in hero ── */
.profile-role-pill {
  font-size: .7rem;
  font-weight: 600;
  padding: .25em .7em;
  border-radius: 2rem;
  letter-spacing: .04em;
  text-transform: uppercase;
}

/* ── Section cards ── */
.profile-card {
  border-radius: .75rem;
  border: 1px solid rgba(0,0,0,.08);
  transition: box-shadow .2s;
}
.profile-card:hover { box-shadow: 0 .25rem .75rem rgba(0,0,0,.08) !important; }
.profile-card .card-header { border-radius: .75rem .75rem 0 0 !important; }

/* ── Membership row ── */
.profile-membership-row {
  padding: .75rem 1rem;
  border-bottom: 1px solid rgba(0,0,0,.06);
  transition: background .15s;
}
.profile-membership-row:last-child  { border-bottom: none; }
.profile-membership-row:hover       { background: rgba(13,110,253,.04); }

/* ── Restaurant initials badge (membership list) ── */
.profile-rest-initial {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: .4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: .85rem;
  flex-shrink: 0;
}

/* ── Security row ── */
.profile-security-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: .75rem 0;
  border-bottom: 1px solid rgba(0,0,0,.06);
}
.profile-security-row:last-child { border-bottom: none; }

/* ── Notification toggle label ── */
.profile-notif-label { font-size: .875rem; font-weight: 500; }
.profile-notif-desc  { font-size: .78rem; color: #6c757d; }
.profile-security-desc { font-size: .78rem; }

/* ── Menu Items page — Export / Import ── */

/* Truncate item description in the items table */
.menu-item-desc-truncate {
  max-width: 200px;
}

/* Category list — row number column width */
.menu-cat-col-num { width: 40px; }

/* Import result table: fixed max height so it scrolls for large imports */
.menu-import-result-table {
  max-height: 380px;
  overflow-y: auto;
}

/* Column widths inside the result table */
.menu-import-col-row    { width: 4rem; }
.menu-import-col-status { width: 7rem; }

/* Badge sizing in the summary row */
.menu-import-badge {
  font-size: .82rem;
  padding: .35rem .65rem;
}

/* Template download links inside the import modal */
.menu-import-template-link {
  font-size: .875rem;
  color: #f97316;
  text-decoration: none;
}
.menu-import-template-link:hover {
  text-decoration: underline;
}

/* ── Welcome page ── */
.welcome-page-wrapper {
  min-height: 70vh;
}

/* ── Location List page ── */

/* Card tweaks */
.loc-card {
  border-radius: .5rem;
  transition: box-shadow .15s ease;
}
.loc-card:hover {
  box-shadow: 0 .25rem .75rem rgba(0, 0, 0, .12) !important;
}
.loc-card-title {
  font-size: 1rem;
  font-weight: 600;
  max-width: 14rem;
}
.loc-status-badge {
  font-size: .75rem;
  padding: .3em .65em;
  white-space: nowrap;
}

/* ── Add-to-Cart / Catering Modal — shared modal chrome ── */
.menu-modal-image-wrapper { width: 100%; }
.menu-modal-image-wrapper img {
  width: 100%;
  max-height: 260px;
  object-fit: cover;
  border-radius: 12px;
  margin-bottom: 1rem;
  display: block;
}
.menu-qty-wrapper { margin-top: 1rem; }
.menu-qty-control {
  display: flex;
  align-items: center;
  gap: 1rem;
  max-width: 200px;
}
.menu-qty-control .form-control { max-width: 70px; font-weight: 600; }
#cm-modifier-container .form-check { margin-bottom: .5rem; }
#cm-modifier-container .form-check-label { display: flex; justify-content: space-between; width: 100%; }

/* ── Special Instructions ── */
.menu-special-instructions-wrapper { margin-top: 1rem; }
.menu-special-instructions-optional { font-size: 0.8rem; font-weight: 400; color: #6c757d; }
.menu-special-instructions-count { font-size: 0.75rem; color: #6c757d; text-align: right; margin-top: 0.25rem; }

/* ── Add-to-Cart Modal — Modifier Groups ── */
.modifier-group-block {
  border-bottom: 1px solid #f0f0f0;
  padding-bottom: 1rem;
}
.modifier-group-block:last-child {
  border-bottom: none;
}
.mod-group-badge {
  font-size: 0.7rem;
  font-weight: 500;
  padding: 0.2em 0.6em;
  border-radius: 4px;
  vertical-align: middle;
  white-space: nowrap;
}
.mod-group-badge-required {
  background-color: #212529;
  color: #fff;
}
.mod-group-badge-optional {
  background-color: #e9ecef;
  color: #495057;
}
.mod-group-error {
  font-size: 0.8rem;
  color: #dc3545;
  margin-top: 0.15rem;
}
.mod-price-tag {
  font-size: 0.85rem;
  color: #6c757d;
  flex-shrink: 0;
  margin-left: 0.5rem;
}

/* Location image within card */
.loc-card-img {
  width: 100%;
  height: 140px;
  object-fit: cover;
  border-radius: .375rem;
}

/* Detail rows (address, phone, email) */
.loc-detail-row {
  font-size: .875rem;
  display: flex;
  align-items: flex-start;
  gap: .25rem;
  margin-bottom: .35rem;
}
.loc-detail-icon {
  margin-top: .1rem;
  flex-shrink: 0;
}

/* Hours block */
.loc-hours-block {
  border-top: 1px solid rgba(0, 0, 0, .06);
  padding-top: .75rem;
}
.loc-hours-heading {
  font-size: .8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: #6c757d;
}

/* Hours pills — individual day */
.loc-hours-pill {
  display: flex;
  flex-direction: column;
  align-items: center;
  border-radius: .375rem;
  padding: .25rem .5rem;
  min-width: 3.5rem;
  text-align: center;
}
.loc-hours-pill-open {
  background-color: #d1e7dd;
  color: #0a3622;
}
.loc-hours-pill-closed {
  background-color: #f1f3f5;
  color: #6c757d;
}
.loc-hours-day {
  font-size: .7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
}
.loc-hours-time {
  font-size: .65rem;
  white-space: nowrap;
}

/* Empty state */
.loc-empty-state {
  max-width: 420px;
  margin: 0 auto;
}
.loc-empty-icon {
  font-size: 4rem;
  color: #dee2e6;
}

/* ── Create Restaurant page — subdomain preview ── */
.create-subdomain-preview {
  font-size: .875rem;
}
.create-subdomain-url {
  font-family: monospace;
  word-break: break-all;
}

/* ── Error pages (403, 404, 500) ── */
.error-page-min-height {
  min-height: 70vh;
}

/* ── Location Settings page ── */
.loc-settings-icon-wrap {
  width: 3rem;
  height: 3rem;
  flex-shrink: 0;
}
.loc-settings-hidden {
  display: none;
}

/* ── Settings hub — clickable area cards ── */
.settings-hub-card {
  transition: transform 0.12s ease-in-out, box-shadow 0.12s ease-in-out;
}
.settings-hub-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.1) !important;
}

/* ── Location Settings — in-page section nav ── */
.loc-settings-nav {
  position: sticky;
  top: 0.5rem;
  z-index: 3;
}
.loc-settings-nav .loc-settings-nav-scroll {
  display: flex;
  flex-wrap: nowrap;
  gap: 0.4rem;
  overflow-x: auto;
  padding-bottom: 0.25rem;
  -webkit-overflow-scrolling: touch;
}
/* Offset anchor jumps so the sticky section nav doesn't cover the heading. */
.loc-settings-section {
  scroll-margin-top: 4.5rem;
}

/* ── Location Settings — sticky save bar ── */
.loc-settings-savebar {
  position: sticky;
  bottom: 0;
  z-index: 4;
  background: var(--bs-body-bg);
  border-top: 1px solid var(--bs-border-color);
}

/* ── Location Settings — delivery provider status card ── */
.loc-settings-provider-card {
  border: 1px solid var(--bs-border-color);
  border-radius: 0.5rem;
  padding: 0.75rem 1rem;
  background: var(--bs-tertiary-bg);
}
.loc-settings-provider-label {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: var(--bs-secondary-color);
  margin-bottom: 0.4rem;
}
.loc-settings-provider-active {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}
.loc-settings-provider-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.3rem 0.7rem;
  border-radius: 2rem;
  font-size: 0.8125rem;
  font-weight: 600;
}
.loc-settings-badge-doordash {
  background: #ff3008;
  color: #fff;
}
.loc-settings-badge-uber {
  background: #000;
  color: #fff;
}
.loc-settings-badge-other {
  background: var(--bs-primary);
  color: #fff;
}
.loc-settings-provider-status {
  font-size: 0.8125rem;
  color: var(--bs-secondary-color);
}
.loc-settings-provider-unconfigured {
  font-size: 0.875rem;
  color: var(--bs-secondary-color);
}
.loc-settings-provider-help {
  font-size: 0.8125rem;
}

/* ── Admin delivery provider page ── */
.admin-delivery-provider-container {
  max-width: 720px;
}

/* ── Location Settings — tip percentage preset buttons ── */
.tip-pct-presets {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.tip-pct-preset-btn {
  min-width: 3rem;
}

/* ── Print Settings page ── */
.print-setup-steps {
  padding-left: 1.25rem;
  margin-bottom: 0;
}
.print-setup-steps li {
  margin-bottom: 0.6rem;
}
.print-setup-steps li:last-child {
  margin-bottom: 0;
}
.print-method-card {
  transition: border-color 0.15s ease-in-out;
}

/* ── Checkout — service fee disclosure ── */
.checkout-fee-disclosure {
  font-size: 0.72rem;
  color: #6c757d;
  margin-top: 0.15rem;
  margin-bottom: 0;
}

/* ── Checkout — tip selector (restaurant tip + driver tip) ── */
.checkout-tip-heading {
  font-size: 0.9rem;
}

.checkout-tip-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.checkout-driver-tip-note {
  font-size: 0.75rem;
  color: #6c757d;
}

/* ── Checkout — Delivery order type ── */
/* .checkout-delivery-address and .checkout-delivery-fee-row are toggled
   via Bootstrap's d-none class by checkout.js (toggleOrderType).
   Both sections start with d-none applied server-side.            */

/* ── Checkout — Delivery radius out-of-range warning ── */
.checkout-radius-warning {
  font-size: 0.875rem;
  font-weight: 500;
  color: #991b1b;
  background-color: #fef2f2;
  border: 1px solid #fca5a5;
  border-radius: 0.375rem;
  padding: 0.5rem 0.75rem;
}

/* ── Menu Item Image Modal ── */
.item-img-preview-wrap {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 0.5rem;
  overflow: hidden;
  background-color: #f8f9fa;
  display: flex;
  align-items: center;
  justify-content: center;
}
.item-img-preview {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.item-img-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  color: #adb5bd;
}
.item-img-placeholder-icon {
  font-size: 3rem;
}
.item-img-placeholder-text {
  font-size: 0.85rem;
}
.item-img-modal-subtitle {
  font-size: 0.85rem;
}
.item-img-feedback-error {
  font-size: 0.85rem;
  color: #dc3545;
}
.item-img-feedback-success {
  font-size: 0.85rem;
  color: #198754;
}
.item-img-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.item-img-footer-right {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}


/* ── Home page hero ── */
.home-hero {
  position: relative;
  min-height: 600px;
  display: flex;
  /*
   * Content is anchored to the bottom so the food image is fully
   * visible in the upper portion of the hero. The gradient scrim
   * only darkens the lower strip where the text and buttons sit.
   *
   * Image: static/images/hero-food.png
   * Replace with a wide landscape food photo for best results.
   */
  align-items: flex-end;
  background:
    linear-gradient(
      to bottom,
      transparent           0%,
      transparent           38%,
      rgba(0,0,0,.58)       68%,
      rgba(0,0,0,.78)      100%
    ),
    url("../images/hero-food.d2ffb228a49d.jpg") center / cover no-repeat,
    #1a1209;
}

.home-hero-content {
  position: relative;
  z-index: 1;
  padding-top: 2.5rem;
  padding-bottom: 3.5rem;
}

.home-hero-title {
  font-size: 2.8rem;
  font-weight: 800;
  color: #fff;
  line-height: 1.15;
  margin-bottom: .75rem;
  text-shadow: 0 2px 18px rgba(0,0,0,.55);
}

.home-hero-subtitle {
  font-size: 1.15rem;
  color: rgba(255,255,255,.85);
  margin: 0 auto 2rem;
  max-width: 560px;
  text-shadow: 0 1px 8px rgba(0,0,0,.45);
}

@media (max-width: 767.98px) {
  .home-hero         { min-height: 460px; }
  .home-hero-title   { font-size: 2rem; }
  .home-hero-subtitle { font-size: 1rem; }
  .home-hero-content { padding-bottom: 2.5rem; }
}

@media (max-width: 575.98px) {
  .home-hero         { min-height: 380px; }
  .home-hero-title   { font-size: 1.65rem; }
  .home-hero-content { padding-bottom: 2rem; }
}

/* ── Contact page  (/contact/) ────────────────────────────────────────── */
.contact-hero {
  background: linear-gradient(135deg, #f0f4ff 0%, #fafafa 100%);
  padding: 4rem 1rem 3rem;
  text-align: center;
}
.contact-hero-inner {
  max-width: 560px;
  margin: 0 auto;
}
.contact-hero-sub {
  color: #6c757d;
  font-size: 1.05rem;
  margin-bottom: 0;
}
.contact-messages-wrap {
  max-width: 780px;
  margin: 1.5rem auto 0;
}
.contact-section {
  padding: 3rem 0 4rem;
}
.contact-info-card {
  transition: box-shadow 0.15s;
}
.contact-info-card:hover {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08) !important;
}
.contact-info-icon-wrap {
  flex-shrink: 0;
}
.contact-info-icon {
  font-size: 1.25rem;
  display: block;
}

/* ── Site Footer (footer.html) ─────────────────────────────────────────
   MODE 1  main marketing footer
   MODE 2  owner/staff subdomain compact footer
   MODE 3  customer subdomain branded footer
──────────────────────────────────────────────────────────────────────── */

/* ── Mode 1 — full marketing footer ── */
.site-footer {
  background-color: #1a1a2e;
  color: #adb5bd;
  padding: 4rem 0 0;
  margin-top: auto;
}
.site-footer-brand {
  text-decoration: none;
}
.site-footer-brand:hover {
  opacity: 0.85;
}
.site-footer-tagline {
  font-size: 0.875rem;
  line-height: 1.6;
  color: #8a8fa8;
  max-width: 320px;
}
.site-footer-legal-line {
  font-size: 0.8rem;
  color: #6c7280;
}
.site-footer-heading {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #e2e8f0;
  margin-bottom: 1rem;
}
.site-footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}
.site-footer-links li {
  margin-bottom: 0.5rem;
}
.site-footer-links a {
  color: #8a8fa8;
  font-size: 0.9rem;
  text-decoration: none;
  transition: color 0.15s;
}
.site-footer-links a:hover {
  color: #ffffff;
}
.site-footer-bottom {
  margin-top: 3rem;
  border-top: 1px solid #2d2d44;
  padding: 1.25rem 0;
  color: #6c7280;
}
.site-footer-bottom-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.25rem;
}
.site-footer-bottom-links a {
  color: #8a8fa8;
  font-size: 0.8rem;
  text-decoration: none;
  transition: color 0.15s;
}
.site-footer-bottom-links a:hover {
  color: #ffffff;
}

/* ── Mode 2 — owner/staff compact footer ── */
.site-footer-compact {
  background-color: #1c1c1c;
  color: #9ca3af;
  padding: 0.85rem 0;
  margin-top: auto;
  font-size: 0.8rem;
}
.site-footer-compact-brand {
  color: #f97316;
  text-decoration: none;
  font-weight: 600;
}
.site-footer-compact-brand:hover {
  color: #fb923c;
}
.site-footer-compact .site-footer-bottom-links a {
  color: #9ca3af;
}
.site-footer-compact .site-footer-bottom-links a:hover {
  color: #e5e7eb;
}

/* ── Mode 3 — customer subdomain footer ── */
.site-footer-customer {
  background-color: #111827;
  color: #9ca3af;
  padding: 1.25rem 0;
  margin-top: auto;
  font-size: 0.85rem;
}
.site-footer-customer-copy {
  color: #6b7280;
}
.site-footer-customer-link {
  color: #f97316;
  text-decoration: none;
  font-weight: 500;
}
.site-footer-customer-link:hover {
  color: #fb923c;
}
.site-footer-customer .site-footer-bottom-links a {
  color: #9ca3af;
}
.site-footer-customer .site-footer-bottom-links a:hover {
  color: #f3f4f6;
}



/* -- Fulfillment Selector (Pickup / Delivery) � menu page + cart page -- */
.fulf-selector {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}
.fulf-selector-label { font-size: .9375rem; }
.fulf-selector-inner { display: flex; gap: .375rem; }
.fulf-btn {
    display: inline-flex;
    align-items: center;
    padding: .3rem .75rem;
    border: 1.5px solid #dee2e6;
    border-radius: 999px;
    background: #fff;
    color: #495057;
    font-size: .8125rem;
    font-weight: 500;
    cursor: pointer;
    line-height: 1.5;
    white-space: nowrap;
    transition: border-color .15s, background .15s, color .15s;
}
.fulf-btn .bi { font-size: .8125rem; }
.fulf-btn:hover { border-color: #adb5bd; background: #f8f9fa; }
.fulf-btn.fulf-btn-active {
    border-color: #212529;
    background: #212529;
    color: #fff;
}
.fulf-delivery-info {
    margin-top: .375rem;
    font-size: .8rem;
    color: #6c757d;
    text-align: right;
}

@media (max-width: 575.98px) {
    .fulf-selector {
        align-items: center;
    }
    .fulf-selector-inner {
        justify-content: center;
    }
    .fulf-pickup-info,
    .fulf-delivery-info {
        text-align: center;
    }
}

.fulf-readonly-badge {
    display: inline-flex;
    align-items: center;
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 999px;
    padding: .375rem .875rem;
    font-size: .875rem;
    font-weight: 500;
    color: #495057;
}

/* ── Third-party delivery badge (checkout / cart / menu) ── */
.tpd-badge {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: #0d6efd;
  background-color: #e7f1ff;
  border: 1px solid #b6d4fe;
  border-radius: 0.35rem;
  padding: 0.1rem 0.45rem;
  vertical-align: middle;
  white-space: nowrap;
}

/* ── Delivery fee tier badges (Standard / Extended) ── */
.checkout-tier-badge {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border-radius: 0.3rem;
  padding: 0.1rem 0.4rem;
  vertical-align: middle;
  white-space: nowrap;
}
.checkout-tier-standard {
  color: #065f46;
  background-color: #d1fae5;
  border: 1px solid #6ee7b7;
}
.checkout-tier-extended {
  color: #1e40af;
  background-color: #dbeafe;
  border: 1px solid #93c5fd;
}

/* ── Order confirmation — third-party delivery tracking card ── */
.conf-delivery-card          { border-left: 4px solid #0d6efd; }
.conf-delivery-status-row    { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; }
.conf-delivery-status-badge  { font-size: .8rem; font-weight: 600; padding: .2rem .55rem;
                                border-radius: 999px; white-space: nowrap; }
.conf-tpd-dispatched         { background: #dbeafe; color: #1d4ed8; }
.conf-tpd-driver-assigned    { background: #dcfce7; color: #15803d; }
.conf-tpd-picked-up          { background: #f3e8ff; color: #7c3aed; }
.conf-tpd-delivered          { background: #dcfce7; color: #15803d; }
.conf-tpd-failed             { background: #fee2e2; color: #b91c1c; }
.conf-tpd-cancelled          { background: #f3f4f6; color: #6b7280; }
.conf-tpd-pending            { background: #fef9c3; color: #854d0e; }
.conf-tpd-track-link         { font-size: .85rem; font-weight: 600; }
.conf-tpd-eta                { font-size: .8rem; color: #6b7280; }
/* Self-delivery status badges */
.conf-self-preparing         { background: #fef9c3; color: #854d0e; }
.conf-self-out               { background: #dbeafe; color: #1d4ed8; }
.conf-self-delivered         { background: #dcfce7; color: #15803d; }

/* ── Active Deliveries dashboard ── */
.ad-table th              { font-size: .72rem; font-weight: 700; text-transform: uppercase;
                            letter-spacing: .04em; color: #6b7280;
                            border-bottom: 2px solid #e5e7eb; white-space: nowrap; }
.ad-table td              { font-size: .875rem; vertical-align: middle; }
.ad-time                  { font-size: .75rem; }
.ad-empty-state           { text-align: center; padding: 2.5rem 1rem; color: #9ca3af; }
.ad-provider-badge        { display: inline-block; font-size: .7rem; font-weight: 600;
                            letter-spacing: .03em; text-transform: uppercase;
                            padding: .15rem .45rem; border-radius: .3rem;
                            border: 1px solid; white-space: nowrap; }
.ad-provider-doordash     { color: #dc2626; background: #fef2f2; border-color: #fca5a5; }
.ad-provider-uber         { color: #15803d; background: #f0fdf4; border-color: #86efac; }
.ad-provider-other        { color: #6b7280; background: #f9fafb; border-color: #d1d5db; }
/* Self-delivery kitchen status badges (delivery mgmt view) */
.ad-sd-new               { background: #f3f4f6; color: #374151; }
.ad-sd-preparing         { background: #fef9c3; color: #854d0e; }
.ad-sd-ready             { background: #dbeafe; color: #1d4ed8; }
.ad-sd-out               { background: #ede9fe; color: #6d28d9; }
.ad-sd-delivered         { background: #dcfce7; color: #15803d; }
/* POS restaurant — prep tracked in Clover/Square KDS, not built-in kitchen */
.ad-sd-pos-prep          { background: #f0f4ff; color: #3730a3; border: 1px solid #c7d2fe; }

/* Row urgency states — self-delivery OFD elapsed time */
.ad-row-new              { background-color: #fffbeb; }            /* new order waiting */
.ad-row-out              { background-color: #faf5ff; }            /* out for delivery — normal */
.ad-row-warn             { background-color: #fff7ed !important; } /* 30+ min on road — yellow */
.ad-row-warn td          { border-left: 3px solid #f59e0b; }
.ad-row-alert            { background-color: #fff1f2 !important; } /* 45+ min on road — red */
.ad-row-alert td         { border-left: 3px solid #ef4444; }

/* Delivery notes badge on address cell */
.ad-delivery-note        { font-size: .72rem; color: #1d4ed8; background: #eff6ff;
                           border: 1px solid #bfdbfe; border-radius: .3rem;
                           padding: .1rem .35rem; display: inline-block; }


/* ── Pickup / Delivery Detail Modals ── */

/* Option card (ASAP / Schedule for later) */
.pickup-mode-option {
    border: 1.5px solid #dee2e6;
    border-radius: .625rem;
    margin-bottom: .5rem;
    transition: border-color .15s, box-shadow .15s;
    cursor: pointer;
}
.pickup-mode-option:has(.pickup-mode-radio:checked) {
    border-color: #212529;
    box-shadow: 0 0 0 1px #212529;
}
.pickup-mode-label {
    display: flex;
    align-items: center;
    gap: .875rem;
    padding: .75rem 1rem;
    cursor: pointer;
    width: 100%;
    margin-bottom: 0;
}
.pickup-mode-radio {
    flex-shrink: 0;
    width: 1.125rem;
    height: 1.125rem;
    margin-top: 0;
    cursor: pointer;
    accent-color: #212529;
}
.pickup-mode-content {
    display: flex;
    flex-direction: column;
    gap: .1rem;
    flex: 1;
}
.pickup-mode-title {
    font-weight: 600;
    font-size: .9375rem;
    color: #212529;
    line-height: 1.3;
}
.pickup-mode-subtitle {
    font-size: .8rem;
    color: #6c757d;
    line-height: 1.3;
}
.pickup-mode-check-icon {
    font-size: 1rem;
    color: #dee2e6;
    flex-shrink: 0;
    transition: color .15s;
}
.pickup-mode-option:has(.pickup-mode-radio:checked) .pickup-mode-check-icon {
    color: #212529;
}

/* Fulfillment info strip (below pickup/delivery buttons) */
.fulf-pickup-info {
    margin-top: .375rem;
    font-size: .8rem;
    color: #6c757d;
    text-align: right;
}

/* ── Delivery modal specifics ── */

/*
 * Mapbox Address Autofill — Bootstrap modal z-index fix
 *
 * Mapbox v1.0.0 appends `mapbox-search-listbox` directly to document.body
 * (via document.body.appendChild in connectedCallback), NOT inside the modal
 * DOM tree — so no overflow:visible override is needed on the modal itself.
 * We only raise z-index so the dropdown appears above Bootstrap's modal layer.
 */
#cco-delivery-address-section,
#cco-delivery-address-section .card-body {
    overflow: visible;
}

[class*="--MapboxSearch"] {
    z-index: 1060 !important;
}

[class*="--Results"],
[class*="--ResultsList"] {
    z-index: 1060 !important;
}

/* ── Delivery detail modal — mobile-first ── */

/* Prevent any child from creating horizontal overflow */
#deliveryDetailModal .modal-content {
    overflow-x: hidden;
}

/* Prevent scroll chaining / rubber-band bounce through the modal */
#deliveryDetailModal .modal-body {
    overflow-x: hidden;
    overscroll-behavior: contain;
}

/* ── Mobile-specific improvements ── */
@media (max-width: 767.98px) {

    /* Cap the modal to 90% of the *dynamic* viewport height so it shrinks
       when the browser chrome (address bar) is visible and expands when it
       collapses — avoids content being hidden behind the browser UI. */
    #deliveryDetailModal .modal-dialog {
        max-height: 90dvh;
    }

    /* Hide the scrollbar visually while keeping the body scrollable.
       Content added after autofill (fee row, schedule section) can still
       be reached by swiping, but no jarring scrollbar thumb appears. */
    #deliveryDetailModal .modal-body {
        scrollbar-width: none;          /* Firefox */
        -ms-overflow-style: none;       /* IE / Edge legacy */
    }
    #deliveryDetailModal .modal-body::-webkit-scrollbar {
        display: none;                  /* Chrome / Safari / iOS */
    }

    /* Push the footer up above the iPhone home indicator and Safari
       floating toolbar by reserving the safe-area-inset-bottom space.
       Falls back to 0.75rem on devices that don't support env(). */
    #deliveryDetailModal .modal-footer {
        padding-bottom: max(0.75rem, env(safe-area-inset-bottom, 0.75rem));
    }
}

.deliv-fee-row {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: .5rem;
    padding: .625rem .875rem;
}
.deliv-radius-warning {
    font-size: .825rem;
    color: #842029;
    background: #f8d7da;
    border: 1px solid #f5c2c7;
    border-radius: .375rem;
    padding: .5rem .75rem;
}

/* ── Advance Orders Dashboard ───────────────────────────────────────────── */

/* Date-group section heading */
.adv-orders-date-heading {
    font-size: .7rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: #6c757d;
    padding: .375rem .75rem;
    background: #f8f9fa;
    border-radius: .375rem;
    border-left: 3px solid #0d6efd;
    margin-bottom: .75rem;
}

.adv-orders-date-heading.today {
    border-left-color: #0d6efd;
    background: #e8f0fe;
    color: #0d47a1;
}

.adv-orders-date-heading.tomorrow {
    border-left-color: #0dcaf0;
    background: #e0f7fa;
    color: #0277bd;
}

.adv-orders-date-heading.future {
    border-left-color: #adb5bd;
}

/* Individual order card */
.adv-order-card {
    border: 1px solid #dee2e6;
    border-radius: .5rem;
    transition: opacity .3s ease;
}

.adv-order-card.adv-order-released {
    opacity: .55;
}

/* Scheduled time — the big number */
.adv-order-time {
    font-size: 1.75rem;
    font-weight: 700;
    line-height: 1;
    color: #212529;
}

/* Fire-at / countdown row */
.adv-order-fire-row {
    font-size: .78rem;
    color: #6c757d;
    margin-top: .2rem;
}

.adv-order-fire-row.overdue {
    color: #dc3545;
    font-weight: 600;
}

/* Empty-state */
.adv-orders-empty-state {
    padding: 3rem 1rem;
    text-align: center;
    color: #6c757d;
}

/* ── Legal pages (Restaurant Agreement, Terms, Privacy, Data Deletion) ── */
.legal-toc {
    background-color: #f8f9fa;
}
.legal-toc-heading {
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .04em;
    font-size: .8rem;
    color: #6c757d;
}
.legal-toc-list {
    columns: 2;
    column-gap: 2rem;
    padding-left: 1.25rem;
}
.legal-toc-list li {
    font-size: .9rem;
    margin-bottom: .25rem;
}
@media (max-width: 575.98px) {
    .legal-toc-list {
        columns: 1;
    }
}
.legal-dl dt {
    font-weight: 600;
    margin-top: 1rem;
}
.legal-dl dd {
    margin-left: 1rem;
    color: #495057;
}
.legal-plan-table th,
.legal-plan-table td {
    vertical-align: middle;
    font-size: .9rem;
}

.adv-orders-empty-icon {
    font-size: 3.5rem;
    color: #dee2e6;
    margin-bottom: 1rem;
}


/* ── Order Tracking page ────────────────────────────────────────────────────── */

.order-tracker-steps {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 1.5rem 0;
}

.order-tracker-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
    max-width: 130px;
}

.order-tracker-circle {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: .95rem;
    font-weight: 700;
    border: 2px solid #d1d5db;
    background: #f9fafb;
    color: #9ca3af;
    transition: background .35s ease, border-color .35s ease, color .35s ease;
    position: relative;
    z-index: 1;
}

.order-tracker-step.completed .order-tracker-circle {
    background: #16a34a;
    border-color: #16a34a;
    color: #fff;
}

.order-tracker-step.active .order-tracker-circle {
    background: #2563eb;
    border-color: #2563eb;
    color: #fff;
    animation: tracker-pulse 2s ease-in-out infinite;
}

.order-tracker-label {
    font-size: .72rem;
    text-align: center;
    margin-top: .5rem;
    color: #9ca3af;
    font-weight: 500;
    max-width: 6rem;
    line-height: 1.3;
}

.order-tracker-step.completed .order-tracker-label {
    color: #15803d;
    font-weight: 600;
}

.order-tracker-step.active .order-tracker-label {
    color: #1d4ed8;
    font-weight: 700;
}

.order-tracker-connector {
    flex: 1;
    height: 2px;
    background: #e5e7eb;
    margin-top: 1.22rem;
    min-width: 1rem;
    transition: background .35s ease;
}

.order-tracker-connector.completed {
    background: #16a34a;
}

.order-tracker-status-label {
    font-size: 1.1rem;
    font-weight: 700;
    color: #1d4ed8;
    text-align: center;
    min-height: 1.6rem;
}

.order-tracker-ws-badge {
    font-size: .72rem;
    color: #9ca3af;
    text-align: center;
}

.order-tracker-ws-badge.live {
    color: #16a34a;
}

.order-tracker-ws-dot {
    font-size: .5rem;
    vertical-align: middle;
}

@keyframes tracker-pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(37, 99, 235, .45); }
    60%       { box-shadow: 0 0 0 8px rgba(37, 99, 235, 0); }
}

/* ── Driver Management page ── */

.driver-stat-num {
  font-size: 1.75rem;
  font-weight: 700;
  line-height: 1.1;
}

.driver-stat-label {
  font-size: .75rem;
  color: #6c757d;
  text-transform: uppercase;
  letter-spacing: .05em;
  margin-top: .25rem;
}

.driver-avatar-circle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  color: #fff;
  font-size: .8rem;
  font-weight: 700;
  flex-shrink: 0;
}

.driver-collapse-icon {
  transition: transform .2s ease;
}

.card-header[aria-expanded="true"] .driver-collapse-icon {
  transform: rotate(-180deg);
}

/* ── Self-Delivery Dashboard ── */

/* Checkbox column — narrow so it doesn't waste space */
.sd-cb-col {
  width: 2.25rem;
  padding-right: 0;
}

/* Sticky batch-assign bar — hidden until rows are checked */
.sd-batch-bar {
  display: none;
  position: sticky;
  bottom: 1rem;
  z-index: 100;
  background: #fff;
  border: 1px solid #dee2e6;
  border-radius: .5rem;
  padding: .75rem 1rem;
  box-shadow: 0 -2px 12px rgba(0, 0, 0, .1);
  margin-bottom: 1rem;
}

.sd-batch-bar.sd-batch-bar-visible {
  display: block;
}

.sd-batch-driver-select {
  min-width: 200px;
}

/* "or enter manually" divider between roster dropdown and text fields */
.sd-manual-fields-divider {
  font-size: .75rem;
  position: relative;
}

.sd-manual-fields-divider::before,
.sd-manual-fields-divider::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 35%;
  height: 1px;
  background: #dee2e6;
}

.sd-manual-fields-divider::before { left: 0; }
.sd-manual-fields-divider::after  { right: 0; }

/* Drivers panel — sticky on large screens so it stays visible while scrolling */
@media (min-width: 992px) {
  .sd-drivers-panel {
    position: sticky;
    top: 1rem;
  }
}

/* ── City + Cuisine Landing Pages ── */
.landing-hero {
  background: linear-gradient(135deg, #0d6efd 0%, #0a58ca 100%);
  color: #fff;
  padding: 4rem 0 3rem;
}

.landing-hero .badge {
  background-color: rgba(255,255,255,.15) !important;
  color: #fff !important;
}

.landing-hero h1 { color: #fff; }

.landing-hero .lead,
.landing-hero .text-muted { color: rgba(255,255,255,.85) !important; }

.landing-hero .small.text-muted { color: rgba(255,255,255,.7) !important; }

.landing-hero-intro { max-width: 620px; }

.landing-step-num {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.1rem;
}

/* ── Production UI utilities (extracted from inline styles for CSP) ──────────
   These replace style="" attributes so templates comply with the strict
   Content-Security-Policy (no 'unsafe-inline' in style-src). See CLAUDE.md. */
.container-narrow { max-width: 640px; }   /* single-column pages (order tracking) */
.input-w-100      { width: 100px; }       /* fixed-width number inputs (sort order) */
.toast-stack-top  { z-index: 1100; }      /* toast container above modals (BS modal = 1055) */

/* Location Hours table column widths */
.lh-col-day    { width: 25%; }
.lh-col-hours  { width: 30%; }
.lh-col-status { width: 20%; }
.lh-col-action { width: 25%; }
