/* ===========================
   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);
}

/* ── 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 {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  min-height: 0;
  overflow: hidden;
}


/* ===========================
   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; }

.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;
}

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

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

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

/* ── 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: #92400e;
  background-color: #fef3c7;
  border: 1px solid #fcd34d;
  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;
}


/* ══════════════════════════════════════════
   Marketplace listing page  (/find/)
══════════════════════════════════════════ */

/* ── Hero search bar ── */
.marketplace-hero {
  background: linear-gradient(160deg, #111827 0%, #1c1a10 100%);
  padding: 4rem 0 3.5rem;
}

.marketplace-hero-eyebrow {
  font-size: .78rem;
  font-weight: 600;
  color: var(--tp-orange-light);
  letter-spacing: .07em;
  text-transform: uppercase;
  margin-bottom: .6rem;
}

.marketplace-hero-back-link {
  color: var(--tp-orange-light);
  text-decoration: none;
  text-transform: none;
  letter-spacing: 0;
  font-weight: 500;
}
.marketplace-hero-back-link:hover { color: #fff; }

.marketplace-hero-title {
  font-size: 2rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: .4rem;
}

.marketplace-hero-subtitle {
  color: rgba(255,255,255,.7);
  margin-bottom: 1.75rem;
  font-size: 1.05rem;
}

.marketplace-search-bar {
  max-width: 560px;
}

/* Slim hero variant — city / cuisine listing pages (no search bar) */
.marketplace-hero--slim {
  padding: 2.5rem 0 2rem;
}
.marketplace-hero--slim .marketplace-hero-title { font-size: 1.6rem; }

@media (max-width: 575.98px) {
  .marketplace-hero           { padding: 2.5rem 0 2rem; }
  .marketplace-hero-title     { font-size: 1.5rem; }
  .marketplace-hero-subtitle  { font-size: .92rem; margin-bottom: 1.25rem; }
  .marketplace-hero--slim     { padding: 1.75rem 0 1.5rem; }
  .marketplace-hero--slim .marketplace-hero-title { font-size: 1.3rem; }
}

/* ── Cuisine filter strip ── */
.marketplace-filters {
  padding: .75rem 0;
  border-bottom: 1px solid rgba(0,0,0,.08);
  background: #fff;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 8px rgba(0,0,0,.05);
}

.marketplace-filter-scroll {
  display: flex;
  flex-wrap: nowrap;
  gap: .5rem;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding-bottom: 2px;
}
.marketplace-filter-scroll::-webkit-scrollbar { display: none; }

.marketplace-cuisine-pill {
  display: inline-block;
  padding: .3rem .9rem;
  border-radius: 999px;
  font-size: .83rem;
  font-weight: 500;
  color: #495057;
  background: #f1f3f5;
  text-decoration: none;
  white-space: nowrap;
  transition: background .15s, color .15s;
}

.marketplace-cuisine-pill:hover,
.marketplace-cuisine-pill.active {
  background: var(--tp-orange);
  color: #fff;
}

/* ── Results area ── */
.marketplace-results {
  padding: 2rem 0 4rem;
  background: #f8f9fa;
  min-height: 420px;
}

.marketplace-result-count {
  font-size: .875rem;
  color: #6c757d;
  margin-bottom: 1.25rem;
}

/* ── Restaurant card ── */
.marketplace-card {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  background: #fff;
  border-radius: .625rem;
  overflow: hidden;
  border: 1px solid rgba(0,0,0,.08);
  height: 100%;
  transition: box-shadow .15s, transform .15s, border-color .15s;
}

.marketplace-card:hover {
  box-shadow: 0 6px 24px rgba(249,115,22,.14);
  transform: translateY(-2px);
  border-color: rgba(249,115,22,.3);
  color: inherit;
}

.marketplace-card-img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.marketplace-card-cover {
  position: relative;
  width: 100%;
  height: 180px;
  overflow: hidden;
  background: #e9ecef;
}

.marketplace-card-cover-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .3s ease;
}

.marketplace-card:hover .marketplace-card-cover-img {
  transform: scale(1.04);
}

@media (max-width: 575.98px) {
  .marketplace-card-cover { height: 140px; }
}

.marketplace-card-claimed-badge {
  position: absolute;
  top: .5rem;
  right: .5rem;
  background: rgba(255,255,255,.92);
  color: #065f46;
  border-radius: 100px;
  padding: .2rem .45rem;
  font-size: .85rem;
  line-height: 1;
  box-shadow: 0 1px 4px rgba(0,0,0,.15);
}

/* ── Pricing page ── */
.pricing-hero {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  color: #f1f5f9;
  padding: 4rem 1rem 3.5rem;
  text-align: center;
}
.pricing-hero h1 { font-size: clamp(1.75rem, 4vw, 2.75rem); font-weight: 700; margin-bottom: .75rem; }
.pricing-hero p  { font-size: 1.1rem; color: #94a3b8; max-width: 560px; margin: 0 auto .75rem; }
.pricing-hero-badge { font-size: .82rem; color: #94a3b8; margin-top: 1.25rem; }
.pricing-hero-badge .bi { color: #22c55e; margin-right: .2rem; }

/* ── Pricing page — subscription plans grid ── */
.pricing-plans-section { padding: 3.5rem 1rem 2rem; background: #fff; }
.pricing-plans-container { max-width: 1020px; margin: 0 auto; }
.pricing-plan-card { cursor: default; }
.pricing-plan-note { font-size: .82rem; color: #64748b; }
.pricing-plan-note .bi { color: #f97316; }

.pricing-section-label {
  text-align: center; font-weight: 700; font-size: .8rem;
  letter-spacing: .08em; text-transform: uppercase;
  color: #64748b; margin-bottom: 1.25rem;
}
.pricing-fee-section { background: #f8fafc; padding: 3.5rem 1rem; }
.pricing-fee-container { max-width: 600px; margin: 0 auto; }
.pricing-fee-card {
  background: #fff; border: 2px solid #e2e8f0; border-radius: 16px;
  padding: 2.5rem 2rem; text-align: center;
  box-shadow: 0 4px 24px rgba(0,0,0,.07);
}
.pricing-fee-main { margin-bottom: 1rem; }
.pricing-fee-amount { font-size: 3rem; font-weight: 800; color: #0f172a; line-height: 1; }
.pricing-fee-currency { font-size: 1.5rem; vertical-align: super; }
.pricing-fee-plus { font-size: 2rem; color: #64748b; }
.pricing-fee-label { font-size: .95rem; color: #64748b; margin-top: .4rem; }
.pricing-fee-explain { font-size: .88rem; color: #64748b; max-width: 400px; margin: 0 auto; }
.pricing-promo-wrap { margin-top: 2rem; }
.pricing-promo-label { margin-bottom: 1rem; }
.pricing-promo-card {
  background: #fff7ed; border: 2px solid #fed7aa; border-radius: 12px;
  padding: 1.1rem 1.5rem; margin-bottom: .75rem;
  display: flex; flex-wrap: wrap; align-items: center; gap: .4rem 1.25rem;
}
.pricing-promo-badge {
  font-size: .72rem; font-weight: 700; background: #f97316;
  color: #fff; padding: .2rem .6rem; border-radius: 999px; white-space: nowrap;
}
.pricing-promo-name { font-weight: 600; color: #0f172a; flex: 1; min-width: 140px; }
.pricing-promo-amount { font-size: 1.1rem; font-weight: 700; color: #ea580c; }
.pricing-promo-per { font-size: .8rem; color: #64748b; font-weight: 400; }
.pricing-promo-expires { font-size: .78rem; color: #92400e; width: 100%; }
.pricing-features-section { padding: 3.5rem 1rem; background: #fff; }
.pricing-features-container { max-width: 900px; margin: 0 auto; text-align: center; }
.pricing-features-heading {
  font-size: clamp(1.4rem, 3vw, 2rem); font-weight: 700;
  color: #0f172a; margin-bottom: .75rem;
}
.pricing-features-sub { color: #64748b; max-width: 520px; margin: 0 auto 2.5rem; }
.pricing-feature-grid {
  list-style: none; padding: 0;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.25rem; text-align: left;
}
.pricing-feature-item {
  display: flex; gap: 1rem; align-items: flex-start;
  background: #f8fafc; border-radius: 10px; padding: 1.1rem 1.25rem;
}
.pricing-feat-icon { font-size: 1.4rem; color: #f97316; flex-shrink: 0; margin-top: .05rem; }
.pricing-feat-detail { font-size: .82rem; color: #64748b; margin-top: .2rem; }
.pricing-how-section { padding: 3.5rem 1rem; background: #f8fafc; }
.pricing-how-container { max-width: 900px; margin: 0 auto; text-align: center; }
.pricing-how-steps {
  display: flex; align-items: flex-start; justify-content: center;
  gap: .5rem; flex-wrap: wrap; margin-top: 2rem;
}
.pricing-how-step {
  background: #fff; border-radius: 12px; padding: 1.5rem 1.25rem;
  flex: 1; min-width: 200px; max-width: 260px; text-align: left;
  box-shadow: 0 2px 12px rgba(0,0,0,.07);
}
.pricing-how-num { font-size: 1.5rem; font-weight: 800; color: #f97316; margin-bottom: .5rem; }
.pricing-how-arrow { font-size: 1.5rem; color: #cbd5e1; align-self: center; flex-shrink: 0; }
.pricing-faq-section { padding: 3.5rem 1rem 4rem; background: #fff; }
.pricing-faq-container { max-width: 760px; margin: 0 auto; }
.pricing-faq-item { border-bottom: 1px solid #e2e8f0; }
.pricing-faq-q {
  font-weight: 600; cursor: pointer; display: flex;
  justify-content: space-between; align-items: center;
  list-style: none; color: #0f172a; padding: 1.1rem 0;
}
.pricing-faq-q::-webkit-details-marker { display: none; }
.pricing-faq-chevron { color: #94a3b8; }
.pricing-faq-a { color: #475569; font-size: .92rem; line-height: 1.65; padding-bottom: 1rem; margin-bottom: 0; }
.pricing-cta-section {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  color: #f1f5f9; padding: 4rem 1rem; text-align: center;
}
.pricing-cta-inner h2 { font-size: clamp(1.5rem, 3vw, 2.25rem); font-weight: 700; margin-bottom: .75rem; }
.pricing-cta-inner p  { color: #94a3b8; margin-bottom: 2rem; font-size: 1.05rem; }
.pricing-cta-actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

.marketplace-card-body {
  padding: .85rem 1rem .5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.marketplace-card-name {
  font-size: .95rem;
  font-weight: 600;
  margin-bottom: .3rem;
  color: #212529;
  line-height: 1.3;
}

.marketplace-card-cuisine {
  display: inline-block;
  font-size: .72rem;
  font-weight: 600;
  color: #ea580c;
  background: #fff3ea;
  padding: .15rem .55rem;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: .03em;
}

.marketplace-card-city {
  font-size: .82rem;
  color: #6c757d;
  display: flex;
  align-items: center;
  gap: .25rem;
  margin-top: auto;
  padding-top: .5rem;
}

.marketplace-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: .6rem 1rem .85rem;
  border-top: 1px solid rgba(0,0,0,.06);
  gap: .5rem;
}

.marketplace-card-status {
  font-size: .72rem;
  font-weight: 600;
}
.marketplace-card-status--live {
  color: #198754;
  display: flex;
  align-items: center;
  gap: .3rem;
}
.marketplace-card-status--live .bi-circle-fill { font-size: .45rem; }
.marketplace-card-status--unclaimed { color: #adb5bd; }

.marketplace-card-btn {
  font-size: .78rem;
  padding: .25rem .75rem;
  flex-shrink: 0;
}

.marketplace-clear-link {
  font-size: .82rem;
  color: #6c757d;
  text-decoration: none;
  white-space: nowrap;
}
.marketplace-clear-link:hover { color: var(--tp-orange); }

.marketplace-card-cta {
  font-size: .8rem;
  font-weight: 600;
  color: #f97316;
  margin-top: auto;
  padding-top: .6rem;
  display: flex;
  align-items: center;
  gap: .25rem;
}

/* ── Empty / no-results state ── */
.marketplace-empty-state {
  text-align: center;
  padding: 4rem 0;
}

.marketplace-empty-icon {
  font-size: 3.5rem;
  color: var(--tp-orange-light);
  margin-bottom: 1rem;
}

.marketplace-empty-title {
  font-size: 1.2rem;
  font-weight: 600;
  color: #495057;
  margin-bottom: .5rem;
}

.marketplace-empty-text {
  color: #6c757d;
  max-width: 380px;
  margin: 0 auto;
}

/* ── Home page hero image ── */
.home-hero-img {
  max-height: 320px;
}

/* ── Subdomain restaurant landing page ── */

/* Cover image */
.subdomain-cover-wrap {
  position: relative;
  background: #111;
  padding-top: 56px; /* clear fixed navbar */
}

.subdomain-cover-img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
  opacity: .9;
}

@media (min-width: 576px) {
  .subdomain-cover-img { height: 280px; }
}

@media (min-width: 768px) {
  .subdomain-cover-img { height: 360px; }
}

.subdomain-cover-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, .6) 0%, rgba(0, 0, 0, .08) 55%, transparent 100%);
  pointer-events: none;
}

/* Info panel */
.subdomain-info-panel {
  position: relative;
  background: #fff;
}

/* Floating logo */
.subdomain-logo-float {
  position: absolute;
  top: -40px;
  left: 1rem;
  z-index: 2;
}

.subdomain-logo,
.subdomain-logo-initials {
  width: 80px;
  height: 80px;
  border-radius: .75rem;
  border: 3px solid #fff;
  box-shadow: 0 2px 12px rgba(0, 0, 0, .18);
  object-fit: cover;
  display: block;
}

.subdomain-logo-initials {
  background: #f97316;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  font-weight: 700;
  color: #fff;
}

@media (min-width: 768px) {
  .subdomain-logo-float {
    top: -52px;
    left: 1.5rem;
  }

  .subdomain-logo,
  .subdomain-logo-initials {
    width: 104px;
    height: 104px;
  }

  .subdomain-logo-initials {
    font-size: 2.25rem;
  }
}

/* Name row — push content below the floating logo */
.subdomain-name-row {
  padding-top: 52px;
  padding-bottom: .75rem;
}

@media (min-width: 768px) {
  .subdomain-name-row { padding-top: 68px; }
}

.subdomain-restaurant-name {
  font-size: 1.5rem;
}

@media (min-width: 768px) {
  .subdomain-restaurant-name { font-size: 2rem; }
}

.subdomain-description {
  font-size: .9rem;
  max-width: 640px;
}

/* Feature pills */
.subdomain-pill {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  font-size: .78rem;
  font-weight: 500;
  border-radius: 100px;
  padding: .28rem .75rem;
  background: #f1f3f5;
  color: #495057;
  white-space: nowrap;
  border: none;
}

.subdomain-pill-open     { background: #d1fae5; color: #065f46; }
.subdomain-pill-closed   { background: #fee2e2; color: #991b1b; }
.subdomain-pill-pickup   { background: #dbeafe; color: #1d4ed8; }
.subdomain-pill-delivery { background: #ede9fe; color: #5b21b6; }

.subdomain-status-dot {
  font-size: .45rem;
  vertical-align: middle;
}

.subdomain-pills-row {
  min-height: 2.5rem;
}

/* Location cards */
.subdomain-location-card {
  border-radius: .75rem;
  overflow: hidden;
  transition: box-shadow .15s ease, transform .12s ease;
}

.subdomain-location-card:hover {
  box-shadow: 0 .5rem 1.5rem rgba(0, 0, 0, .12) !important;
  transform: translateY(-2px);
}

.subdomain-location-img {
  height: 160px;
  object-fit: cover;
  width: 100%;
}

.subdomain-location-img-placeholder {
  height: 160px;
}

.subdomain-placeholder-icon {
  font-size: 3rem;
  opacity: .35;
}

.subdomain-card-meta {
  font-size: .8rem;
}

.subdomain-fulfillment-badge {
  display: inline-flex;
  align-items: center;
  font-size: .72rem;
  font-weight: 500;
  padding: .2rem .6rem;
  border-radius: .4rem;
  background: #f8f9fa;
  color: #6c757d;
  border: 1px solid #dee2e6;
}

.subdomain-section-title {
  font-size: 1.1rem;
}


/* ── Restaurant Profile page (owner-side) ── */

/* Cover */
.rp-cover {
  position: relative;
  background: #111;
  padding-top: 56px; /* clear fixed navbar */
}

.rp-cover-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
  opacity: .9;
}

@media (min-width: 576px) {
  .rp-cover-img { height: 260px; }
}

@media (min-width: 768px) {
  .rp-cover-img { height: 320px; }
}

.rp-cover-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,.45) 0%, transparent 60%);
  pointer-events: none;
}

.rp-cover-edit-btn {
  position: absolute;
  bottom: .75rem;
  right: .75rem;
  z-index: 2;
  opacity: .9;
}

.rp-cover-edit-btn:hover { opacity: 1; }

/* Hero card */
.rp-hero-wrapper {
  margin-top: -1.5rem;
  position: relative;
  z-index: 3;
  margin-bottom: 1rem;
}

/* Logo */
.rp-logo-wrapper {
  line-height: 0;
}

.rp-logo {
  width: 96px;
  height: 96px;
  object-fit: cover;
  border: 3px solid #fff;
  display: block;
}

@media (min-width: 768px) {
  .rp-logo { width: 120px; height: 120px; }
}

.rp-logo-edit-btn {
  position: absolute;
  bottom: -6px;
  right: -6px;
  border-radius: 50%;
  width: 30px;
  height: 30px;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Pills */
.rp-pill {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  font-size: .78rem;
  font-weight: 500;
  border-radius: 100px;
  padding: .28rem .75rem;
  background: #f1f3f5;
  color: #495057;
  white-space: nowrap;
}

.rp-pill-active   { background: #d1fae5; color: #065f46; }
.rp-pill-inactive { background: #fee2e2; color: #991b1b; }

.rp-status-dot {
  font-size: .45rem;
  vertical-align: middle;
}

/* Info list */
.rp-info-list dt {
  font-weight: 600;
  font-size: .85rem;
  color: #6c757d;
  padding-top: .5rem;
}

.rp-info-list dd {
  font-size: .9rem;
  padding-top: .5rem;
  margin-bottom: 0;
  border-bottom: 1px solid #f0f0f0;
}

.rp-info-list dd:last-child { border-bottom: none; }

/* Badges */
.rp-badge-default {
  font-size: .7rem;
  vertical-align: middle;
}

/* Branding thumbnails */
.rp-branding-cover-thumb {
  max-height: 100px;
  width: 100%;
  object-fit: cover;
}

.rp-branding-logo-thumb {
  width: 72px;
  height: 72px;
  object-fit: cover;
  border: 2px solid #dee2e6;
}

/* Modal image preview */
.rp-cover-modal-preview {
  max-height: 160px;
  width: 100%;
  object-fit: cover;
}

.rp-logo-modal-preview {
  width: 120px;
  height: 120px;
  object-fit: cover;
  border: 2px solid #dee2e6;
}


/* -- Order Detail page ------------------------------------------------------ */

.detail-header { background: linear-gradient(135deg, #f97316 0%, #ea580c 100%); }
.detail-header-catering { background: linear-gradient(135deg, #059669 0%, #047857 100%); }

.catering-balance-due { color: #d97706; }
.catering-event-date { color: #059669; }
.catering-balance-alert {
  background-color: #fef3c7;
  border: 1px solid #fde68a;
  color: #92400e;
  border-radius: .375rem;
}

.badge-source-online { background-color: #0d6efd; }
.badge-source-par    { background-color: #6f42c1; }
.badge-pos-clover    { background-color: #ff6900; }
.badge-pos-square    { background-color: #006aff; }
.badge-pos-toast     { background-color: #e63757; }

.timeline-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
}

.item-row { border-bottom: 1px solid #f0f0f0; }
.item-row:last-child { border-bottom: none; }

/* Print button � visible only on screen */
.order-print-header { display: none; }
.order-detail-print-btn { display: inline-flex; align-items: center; }
.modifier-icon { font-size: .7rem; }

/* Print layout � hide everything except the order card */
@page { margin: 1.5cm; }

@media print {
  .order-detail-print-btn,
  nav[aria-label="breadcrumb"],
  #sidebar,
  .navbar,
  .order-print-hide,
  footer {
    display: none !important;
  }

  .order-print-header { display: block !important; margin-bottom: 1rem; }

  .col-lg-8,
  .col-lg-4 { width: 100% !important; max-width: 100% !important; flex: 0 0 100% !important; }
  .card { box-shadow: none !important; border: 1px solid #ccc !important; page-break-inside: avoid; }
  .detail-header,
  .detail-header-catering {
    background: #fff !important;
    border-bottom: 2px solid #333 !important;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }
  .detail-header *,
  .detail-header-catering * { color: #000 !important; opacity: 1 !important; }
  .detail-header .badge,
  .detail-header-catering .badge { background: #f0f0f0 !important; border: 1px solid #555 !important; }
}

/* ── Location Hours page ── */
.lh-card { border: none; box-shadow: 0 0.125rem 0.25rem rgba(0,0,0,.075); }
.lh-status-badge { font-size: .75rem; padding: .25rem .75rem; border-radius: 1rem; }
.lh-day-row { transition: background-color .2s ease; }
.lh-day-row:hover { background-color: rgba(0,0,0,.02); }
.lh-closed-row { opacity: .6; background-color: rgba(108,117,125,.05); }
.lh-time-display { font-weight: 500; font-size: 1rem; }
.lh-edit-btn { padding: .25rem .75rem; font-size: .875rem; }
.lh-modal-header { background: linear-gradient(135deg,#667eea 0%,#764ba2 100%); color: #fff; }
.lh-closed-toggle .form-check-input { width: 3rem; height: 1.5rem; cursor: pointer; }
.lh-closed-toggle .form-check-label { cursor: pointer; font-weight: 500; }

/* ── Marketplace listing detail page ── */

.listing-detail-breadcrumb {
  background: rgba(0,0,0,.35);
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 2;
  padding: .5rem 1rem;
}

.listing-detail-breadcrumb a {
  font-size: .78rem;
  color: rgba(255,255,255,.85);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: .3rem;
}
.listing-detail-breadcrumb a:hover { color: #fff; }

.listing-detail-section-title {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 1rem;
  padding-bottom: .5rem;
  border-bottom: 2px solid var(--tp-orange);
  display: flex;
  align-items: center;
}

.listing-detail-sidebar {
  position: sticky;
  top: 80px; /* sits below fixed navbar */
}

.listing-detail-card {
  border-radius: .75rem !important;
}

.listing-detail-card--cta {
  border-top: 3px solid var(--tp-orange) !important;
}

.listing-detail-card-label {
  font-size: .7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: #6c757d;
  margin-bottom: .35rem;
}

.listing-detail-location-row {
  padding: .75rem 1rem;
  background: #f8f9fa;
  border-radius: .5rem;
}

.listing-detail-loc-pin {
  color: #f97316;
  font-size: 1.1rem;
  flex-shrink: 0;
  padding-top: .1rem;
}

.listing-detail-addr {
  font-size: .9rem;
  color: #495057;
}

.listing-detail-contact-list {
  display: flex;
  flex-direction: column;
  gap: .6rem;
}

.listing-detail-contact-item {
  display: flex;
  align-items: center;
  gap: .5rem;
  font-size: .9rem;
}

.listing-detail-contact-icon {
  color: #f97316;
  flex-shrink: 0;
}

.listing-detail-claimed-pill {
  background: #fff7ed !important;
  color: #92400e !important;
  border: 1px solid #fed7aa !important;
}

/* Mobile sticky Order Now bar */
.listing-detail-mobile-cta {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  padding: .75rem 1rem;
  background: #fff;
  box-shadow: 0 -2px 8px rgba(0,0,0,.12);
  z-index: 100;
}

/* Extra bottom padding on mobile so sticky CTA doesn't overlap content */
@media (max-width: 575.98px) {
  .listing-detail-mobile-cta ~ * {
    padding-bottom: 5rem;
  }
}

/* ── Special / Advance Orders (spo-) ── */

.spo-layout {
  min-height: 80vh;
}

.spo-container {
  max-width: 860px;
  margin-inline: auto;
}

.spo-title {
  font-size: 1.75rem;
  font-weight: 700;
}

.spo-subtitle {
  font-size: 1rem;
}

.spo-intro-alert {
  border-left: 4px solid #0dcaf0;
}

.spo-section-label {
  letter-spacing: .05em;
  font-size: .7rem;
}

.spo-submit-btn {
  padding: .65rem 1.5rem;
}

.spo-back-link {
  color: #6c757d;
  font-size: .875rem;
}

.spo-back-link:hover {
  color: #f97316;
}

/* Submitted confirmation */
.spo-submitted-icon {
  font-size: 4rem;
  line-height: 1;
}

.spo-ref-badge {
  font-size: .9rem;
  letter-spacing: .04em;
}

.spo-summary-dl,
.spo-detail-dl {
  display: flex;
  flex-direction: column;
  gap: .5rem;
  margin: 0;
}

.spo-summary-row,
.spo-detail-row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  font-size: .9rem;
}

.spo-summary-row dt,
.spo-detail-row dt {
  font-weight: 600;
  color: #6c757d;
  flex-shrink: 0;
}

.spo-summary-row dd,
.spo-detail-row dd {
  margin: 0;
  text-align: right;
}

/* Owner dashboard list */
.spo-filter-select {
  max-width: 220px;
}

.spo-table-email {
  max-width: 200px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Owner detail page */
.spo-card-header {
  font-weight: 600;
  font-size: .9rem;
  background-color: #f8f9fa;
  border-bottom: 1px solid #dee2e6;
  padding: .6rem 1rem;
}

.spo-status-badge-lg {
  display: flex;
  align-items: flex-start;
}

.spo-detail-label {
  font-weight: 600;
  color: #6c757d;
  font-size: .8rem;
  text-transform: uppercase;
  letter-spacing: .04em;
  margin-bottom: .25rem;
}

.spo-detail-value {
  font-size: .95rem;
}

.spo-description-text {
  white-space: pre-wrap;
  font-size: .9rem;
  color: #343a40;
}

/* Public menu CTA banner */
.spo-cta-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  background: #fff7ed;
  border: 1px solid #fed7aa;
  border-radius: .5rem;
  padding: .9rem 1.2rem;
}

.spo-cta-content {
  display: flex;
  align-items: center;
  gap: .75rem;
}

.spo-cta-icon {
  font-size: 1.6rem;
  color: #f97316;
  flex-shrink: 0;
}

.spo-cta-title {
  font-weight: 600;
  font-size: .95rem;
  color: #1a1a2e;
}

.spo-cta-subtitle {
  font-size: .8rem;
  color: #6c757d;
}

.spo-cta-btn {
  white-space: nowrap;
  flex-shrink: 0;
}

/* Restaurant settings — deposit percent input width */
.spo-deposit-input {
  width: 100px;
}

@media (max-width: 575.98px) {
  .spo-cta-banner {
    flex-direction: column;
    align-items: flex-start;
  }

  .spo-cta-btn {
    width: 100%;
  }
}


/* ── Catering Package Manager (catering-) ── */

/* Stat cards on dashboard */
.catering-stat-card {
  border-radius: .75rem;
}
.catering-stat-value {
  font-size: 2rem;
  font-weight: 700;
  line-height: 1.1;
}
.catering-stat-label {
  font-size: .8rem;
  color: #6c757d;
  text-transform: uppercase;
  letter-spacing: .04em;
}

/* Package card (dashboard grid) */
.catering-pkg-card {
  border-radius: .75rem;
  transition: box-shadow .15s;
}
.catering-pkg-card:hover {
  box-shadow: 0 4px 16px rgba(0,0,0,.1) !important;
}
.catering-pkg-card-img {
  height: 160px;
  object-fit: cover;
  border-radius: .75rem .75rem 0 0;
}
.catering-pkg-card-img-placeholder {
  height: 160px;
  border-radius: .75rem .75rem 0 0;
}

/* Package list table thumbnail */
.catering-col-img {
  width: 56px;
}
.catering-pkg-thumb {
  width: 48px;
  height: 48px;
  object-fit: cover;
  border-radius: .375rem;
}
.catering-pkg-thumb-placeholder {
  width: 48px;
  height: 48px;
}
.catering-pkg-desc {
  font-size: .8rem;
  margin-top: .1rem;
}

/* Package detail — info grid */
.catering-detail-grid {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: .25rem .75rem;
}
.catering-detail-grid dt {
  font-weight: 600;
  color: #495057;
  font-size: .85rem;
}

/* ── Order Dashboard — order_list & catering_order_list ── */
.stat-card { border-left: 4px solid; }
.stat-card.revenue  { border-color: #198754; }
.stat-card.total    { border-color: #0d6efd; }
.stat-card.paid     { border-color: #0dcaf0; }
.stat-card.pending  { border-color: #ffc107; }
.stat-card.upcoming { border-color: #fd7e14; }
.stat-card .stat-value { font-size: 1.6rem; font-weight: 700; }

.badge-source-online { background-color: #0d6efd; }
.badge-source-par    { background-color: #6f42c1; }
.badge-pos-clover    { background-color: #ff6900; }
.badge-pos-square    { background-color: #006aff; }
.badge-pos-toast     { background-color: #e63757; }
.badge-pos-none      { background-color: #6c757d; }

.filter-bar { background: #f8f9fa; border-radius: .5rem; }
.orders-table th { white-space: nowrap; font-size: .82rem; text-transform: uppercase; letter-spacing: .03em; }
.orders-table td  { vertical-align: middle; font-size: .88rem; }
.ref-link { font-family: monospace; font-size: .82rem; }
.table-hover tbody tr:hover { background-color: rgba(13, 110, 253, .04); }
.catering-detail-grid dd {
  margin: 0;
  font-size: .9rem;
}

/* Image gallery in package detail */
.catering-image-tile {
  border-radius: .5rem;
  overflow: hidden;
}
.catering-image-tile-img {
  width: 100%;
  height: 110px;
  object-fit: cover;
  display: block;
}
.catering-image-delete-btn {
  font-size: .7rem;
  padding: .2rem .35rem;
  line-height: 1;
}
.catering-image-alt {
  padding: .2rem .4rem;
  background: rgba(0,0,0,.45);
  color: #fff;
  font-size: .7rem;
}

/* Inactive group card */
.catering-inactive-card {
  opacity: .65;
}

/* Narrow input (sort order, deposit %) */
.catering-input-narrow {
  max-width: 120px;
}

/* Empty state */
.catering-empty-state {
  color: #6c757d;
}

@media (max-width: 576px) {
  .catering-pkg-card-img,
  .catering-pkg-card-img-placeholder {
    height: 130px;
  }
}

/* ── Public Catalog (catalog-) ── */
.catalog-layout { background: var(--bs-body-bg); min-height: 100vh; }
.catalog-container { max-width: 1100px; }
.catalog-title { font-size: 2rem; font-weight: 700; }
.catalog-subtitle { font-size: 1.1rem; }

.catalog-pkg-card { transition: box-shadow 0.2s; }
.catalog-pkg-card:hover { box-shadow: 0 6px 20px rgba(0,0,0,.12) !important; }

.catalog-pkg-img {
  height: 200px;
  object-fit: cover;
  border-radius: .375rem .375rem 0 0;
}
.catalog-pkg-img-placeholder {
  height: 200px;
  background: #f3f4f6;
  border-radius: .375rem .375rem 0 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.catalog-pkg-img-icon { font-size: 3rem; color: #d1d5db; }
.catalog-pkg-price { font-size: 1.1rem; font-weight: 600; }
.catalog-pkg-price-detail { font-size: .85rem; margin-left: .25rem; }
.catalog-pkg-headcount { font-size: .8rem; }
.catalog-pkg-pricing { min-height: 2rem; }

.catalog-empty { padding: 3rem 0; }
.catalog-empty-icon { font-size: 3rem; }

/* Package detail */
.catalog-detail-img { height: 320px; object-fit: cover; }

.catalog-dl { margin: 0; }
.catalog-dl-row { display: flex; justify-content: space-between; padding: .35rem 0; border-bottom: 1px solid #f0f0f0; }
.catalog-dl-row:last-child { border-bottom: none; }
.catalog-dl-row dt { font-weight: normal; color: #6c757d; font-size: .9rem; }
.catalog-dl-row dd { margin: 0; font-weight: 500; font-size: .9rem; }

.catalog-option-group { border-bottom: 1px solid #e9ecef; padding-bottom: 1rem; }
.catalog-option-group:last-of-type { border-bottom: none; }
.catalog-option-item { margin-bottom: .4rem; }
.catalog-option-qty { max-width: 80px; }

.catalog-price-estimate {
  border: 2px solid #dee2e6;
  border-radius: .5rem;
  padding: .75rem 1rem;
  background: #f8f9fa;
}
.catalog-price-total { font-size: 1.5rem; font-weight: 700; color: #111; }

/* Deposit payment card element */
.spo-card-element { padding: .75rem 1rem; min-height: 2.75rem; }

/* ── Catalog Order Flow (catalog-event-date, catalog-cart, modal) ── */
.catalog-event-date-bar {
  background: #fff;
  border: 1px solid #dee2e6;
  border-radius: .5rem;
  padding: .875rem 1.25rem;
}
.catalog-event-date-input { max-width: 180px; }

.catalog-order-cart-bar {
  background: #fff;
  border: 1px solid #dee2e6;
  border-radius: .5rem;
  padding: .75rem 1.25rem;
}

.catalog-modal-img {
  width: 100%;
  max-height: 220px;
  object-fit: cover;
  border-radius: .375rem;
}

.catalog-headcount-control { max-width: 150px; }
.catalog-headcount-input   { max-width: 60px; }
.catalog-hc-btn            { padding-left: .65rem; padding-right: .65rem; }

.catalog-opt-qty-group  { width: 130px; }
/* Hide native browser spinners inside qty inputs — we use custom +/− buttons */
.catalog-opt-qty-input::-webkit-inner-spin-button,
.catalog-opt-qty-input::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.catalog-opt-qty-input { -moz-appearance: textfield; }

.catalog-qty-counter {
  background: #f8f9fa;
  border: 1px solid #dee2e6;
  border-radius: .375rem;
  padding: .35rem .75rem;
  font-size: .875rem;
}

.catalog-order-toast {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 1090;
  min-width: 280px;
}

/* Catalog cart table columns */
.catalog-cart-col-hc     { width: 140px; }
.catalog-cart-col-total  { width: 90px; }
.catalog-cart-col-remove { width: 50px; }
.catalog-cart-hc-group   { width: 120px; }
.catalog-cart-opt-tag    { font-size: .8rem; }

/* ── Catering Menu (cm-) ── */
.cm-layout { background: #f8f9fa; min-height: 100vh; }
.cm-container { max-width: 1200px; }
.cm-title { font-size: clamp(1.6rem, 4vw, 2.2rem); }
.cm-cart-bar { background: #fff; border: 1px solid #dee2e6; border-radius: .5rem; padding: .75rem 1.25rem; }
.cm-category-nav { overflow-x: auto; }
.cm-category-scroll { display: flex; gap: .5rem; flex-wrap: nowrap; padding-bottom: .25rem; }
.cm-category-pill { background: #fff; border: 1px solid #dee2e6; border-radius: 50rem; padding: .35rem 1rem; font-size: .875rem; text-decoration: none; color: #495057; white-space: nowrap; }
.cm-category-pill.active, .cm-category-pill:hover { background: #111; color: #fff; border-color: #111; }
.cm-item-card { transition: transform .15s, box-shadow .15s; }
.cm-item-card:hover { transform: translateY(-3px); box-shadow: 0 .5rem 1.5rem rgba(0,0,0,.1) !important; }
.cm-item-img { height: 180px; object-fit: cover; }
.cm-item-placeholder { height: 180px; background: #f3f4f6; display: flex; align-items: center; justify-content: center; }
.cm-item-placeholder-icon { font-size: 2.5rem; color: #d1d5db; }
.cm-item-price { font-size: 1.1rem; font-weight: 600; color: #111; }
.cm-lead-badge { font-size: .72rem; }
.cm-toast { position: fixed; bottom: 1.5rem; right: 1.5rem; z-index: 1090; min-width: 280px; }
.cm-confirm-icon { font-size: 4rem; }
.cm-cart-col-qty    { width: 120px; }
.cm-cart-col-total  { width: 80px; }
.cm-cart-col-remove { width: 50px; }
.cm-cart-qty-group  { width: 100px; }

/* ── Catering Checkout (cco-) ── */
.cco-fulfillment-option {
    padding: 1rem;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    transition: border-color .2s, background .2s;
    cursor: pointer;
}
.cco-fulfillment-option:hover { border-color: var(--bs-primary); background: #f8f9fa; }
.cco-fulfillment-option input[type="radio"]:checked + label { color: var(--bs-primary); }
.cco-fulfillment-option label { cursor: pointer; margin-bottom: 0; width: 100%; }

/* ── Restaurant Dashboard (rdash-) ── */
.rdash-icon-sm  { font-size: 2rem; }
.rdash-icon-md  { font-size: 2.5rem; }
.rdash-icon-lg  { font-size: 3rem; }
.rdash-badge-xs { font-size: 0.65rem; }
.rdash-card-hover { transition: transform 0.2s; }
.rdash-card-hover:hover { transform: translateY(-2px); }

/* ── 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 {
    background: #f8f9fa;
    border: 1px solid #e5e7eb;
    border-radius: .875rem;
    padding: 1rem 1.125rem;
}
.fulf-selector-label { font-size: .9375rem; }
.fulf-selector-inner { display: flex; gap: .5rem; }
.fulf-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: .625rem 1rem;
    border: 2px solid #dee2e6;
    border-radius: .625rem;
    background: #fff;
    color: #212529;
    font-size: .9375rem;
    font-weight: 500;
    cursor: pointer;
    transition: border-color .15s, background .15s, color .15s;
}
.fulf-btn:hover { border-color: #adb5bd; }
.fulf-btn.fulf-btn-active {
    border-color: #212529;
    background: #212529;
    color: #fff;
}
.fulf-delivery-info {
    margin-top: .625rem;
    font-size: .8375rem;
    color: #6c757d;
}
.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;
}

/* ── 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; }

/* ── 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; }


/* ════════════════════════════════════════════════════════════════════════════
   Onboarding Plan Selection  (Step 3 of onboarding wizard)
════════════════════════════════════════════════════════════════════════════ */

/* ── Progress bar ── */
.obp-progress {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  margin-bottom: 2rem;
}
.obp-progress__line {
  flex: 1;
  height: 2px;
  background: #dee2e6;
}
.obp-progress__line--done { background: #28a745; }

.obp-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex-shrink: 0;
}
.obp-step__badge {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .9rem;
  font-weight: 700;
  background: #dee2e6;
  color: #6c757d;
}
.obp-step--done  .obp-step__badge { background: #28a745; color: #fff; }
.obp-step--active .obp-step__badge { background: #f97316; color: #fff; }
.obp-step__badge--muted { background: #dee2e6; color: #6c757d; }
.obp-step__label {
  font-size: .72rem;
  margin-top: .4rem;
  color: #6c757d;
  white-space: nowrap;
}
.obp-step__label--muted { color: #adb5bd; }

/* ── Plan cards ── */
.obp-plan-card {
  cursor: pointer;
  border: 2px solid #dee2e6;
  border-radius: 12px;
  padding: 1.5rem 1.25rem;
  position: relative;
  transition: border-color .15s, box-shadow .15s;
  height: 100%;
  background: #fff;
}
.obp-plan-card:hover {
  border-color: #f97316;
  box-shadow: 0 0 0 .15rem rgba(249,115,22,.15);
}
.obp-plan-card--selected {
  border-color: #f97316;
  box-shadow: 0 0 0 .2rem rgba(249,115,22,.25);
}
.obp-plan-card--popular { border-color: #f97316; }

.obp-plan-badge-popular {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: #f97316;
  color: #fff;
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .05em;
  padding: .2rem .75rem;
  border-radius: 999px;
  white-space: nowrap;
}

.obp-plan-card__header { margin-bottom: 1rem; }
.obp-plan-tagline { font-size: .82rem; color: #6c757d; margin-bottom: 0; }

.obp-plan-price-block { margin-bottom: .75rem; }
.obp-plan-price { font-size: 2rem; font-weight: 700; line-height: 1; }
.obp-plan-price-unit { font-size: .875rem; color: #6c757d; }
.obp-plan-savings { font-size: .75rem; color: #6c757d; margin-top: .2rem; }

.obp-plan-fee-badge {
  font-size: .75rem;
  background: #fff7ed;
  color: #ea580c;
  border: 1px solid #fed7aa;
  border-radius: .375rem;
  padding: .2rem .5rem;
  display: inline-block;
  margin-bottom: .75rem;
}

.obp-plan-features { margin-bottom: 0; }
.obp-plan-feature-item {
  display: flex;
  gap: .5rem;
  align-items: baseline;
  font-size: .875rem;
  padding: .25rem 0;
  border-bottom: 1px solid #f8f9fa;
}
.obp-plan-feature-item:last-child { border-bottom: none; }
.obp-plan-feature-icon { font-size: .85rem; min-width: 16px; }
.obp-plan-feature-icon--off { color: #adb5bd; }

.obp-plan-upgrade-note { font-size: .82rem; color: #6c757d; }


/* ════════════════════════════════════════════════════════════════════════════
   Onboarding POS Selection  (Step 2 of onboarding wizard)
════════════════════════════════════════════════════════════════════════════ */

.pos-option-card {
  cursor: pointer;
  border: 2px solid #dee2e6;
  border-radius: 12px;
  padding: 1.5rem 1.25rem;
  height: 100%;
  background: #fff;
  transition: border-color .15s, box-shadow .15s, transform .15s;
  text-align: center;
}
.pos-option-card:hover {
  border-color: #f97316;
  box-shadow: 0 0 0 .15rem rgba(249,115,22,.15);
  transform: translateY(-3px);
}
.pos-option-card--muted {
  border-color: #e9ecef;
  background: #f8f9fa;
}
.pos-option-card--muted:hover {
  border-color: #adb5bd;
  box-shadow: 0 0 0 .15rem rgba(108,117,125,.12);
}
.pos-option-logo {
  display: flex;
  justify-content: center;
  margin-bottom: 1rem;
}

/* ── Restaurant Dashboard — Subscription card ── */
.rdash-plan-icon {
  width: 2.75rem;
  height: 2.75rem;
  border-radius: .6rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  flex-shrink: 0;
}
.rdash-plan-icon--free    { background: #f1f3f5; color: #6c757d; }
.rdash-plan-icon--plus    { background: #dbeafe; color: #1d4ed8; }
.rdash-plan-icon--pro     { background: #fef3c7; color: #b45309; }

.rdash-badge-pro {
  background: linear-gradient(135deg, #f59e0b, #ef4444);
  color: #fff;
}

.rdash-billing-meta {
  background: #f8f9fa;
  border-radius: .5rem;
  padding: .75rem 1rem;
}
.rdash-billing-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: .2rem 0;
}
.rdash-billing-row + .rdash-billing-row {
  border-top: 1px solid #e9ecef;
}
.rdash-status-badge {
  font-size: .7rem;
}
.rdash-upgrade-nudge {
  background: #fffbeb;
  border-color: #fde68a;
  font-size: .875rem;
}
.rdash-icon-md {
  font-size: 2rem;
}

/* ── Upgrade Plan page — billing cycle toggle ── */
.upg-cycle-toggle {
  display: flex;
  align-items: center;
  gap: .75rem;
  justify-content: center;
  font-weight: 500;
}
.upg-toggle-switch {
  position: relative;
  display: inline-block;
  width: 2.75rem;
  height: 1.5rem;
}
.upg-toggle-switch input { opacity: 0; width: 0; height: 0; }
.upg-toggle-slider {
  position: absolute;
  cursor: pointer;
  inset: 0;
  background: #ced4da;
  border-radius: 1.5rem;
  transition: background .2s;
}
.upg-toggle-slider::before {
  content: "";
  position: absolute;
  width: 1.1rem;
  height: 1.1rem;
  left: .2rem;
  bottom: .2rem;
  background: #fff;
  border-radius: 50%;
  transition: transform .2s;
}
.upg-toggle-switch input:checked + .upg-toggle-slider          { background: #0d6efd; }
.upg-toggle-switch input:checked + .upg-toggle-slider::before  { transform: translateX(1.25rem); }
.upg-savings-badge {
  background: #d1fae5;
  color: #065f46;
  font-size: .7rem;
  font-weight: 600;
  padding: .15rem .45rem;
  border-radius: .25rem;
}

/* ── Upgrade Plan page — current plan card state ── */
.upg-plan-card--current {
  border: 2px solid #198754 !important;
}
.upg-current-badge {
  display: inline-block;
  background: #198754;
  color: #fff;
  font-size: .7rem;
  font-weight: 600;
  padding: .2rem .6rem;
  border-radius: .25rem;
  margin-bottom: .5rem;
}
.upg-portal-info {
  font-size: .875rem;
}

