:root {
  --bm-red: #c61d16;
  --bm-red-hover: #a81812;
  --bm-text: #1a1a1a;
  --bm-muted: #5c5c5c;
  --bm-border: #e8e8e8;
  --bm-bg: #ffffff;
  --bm-soft: #f5f5f5;
  --bm-radius: 12px;
  --bm-font: "DM Sans", system-ui, sans-serif;
  --bm-serif: "Playfair Display", Georgia, serif;
}

body.city-buffet-theme {
  margin: 0;
  font-family: var(--bm-font);
  background: var(--bm-bg);
  color: var(--bm-text);
  line-height: 1.55;
}

a {
  color: #1a73e8;
}

.cb-wrap {
  width: min(1140px, calc(100% - 2rem));
  margin-inline: auto;
}

/* Header — landing style */
.cb-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: #fff;
  border-bottom: 1px solid var(--bm-border);
}

.cb-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  gap: 1rem;
}

.cb-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--bm-red);
  font-family: var(--bm-serif);
  font-weight: 700;
  font-size: 1.35rem;
  text-decoration: none;
}

.cb-logo svg {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
}

/* Landing: keep header usable — full nav hidden on desktop only; cart + order stay visible */
.cb-header--landing .cb-nav {
  display: none;
}

.cb-header--landing .cb-phone {
  display: none;
}

@media (min-width: 861px) {
  .cb-header--landing .cb-nav-toggle {
    display: none;
  }
}

.cb-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.65rem 1.35rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
}

.cb-btn-primary {
  background: var(--bm-red);
  color: #fff;
}

.cb-btn-primary:hover {
  background: var(--bm-red-hover);
  color: #fff;
}

.cb-btn-outline {
  background: #fff;
  color: var(--bm-text);
  border-color: #ccc;
}

.cb-btn-outline:hover {
  border-color: var(--bm-text);
  color: var(--bm-text);
}

/* Hero blocks */
.bm-hero {
  padding: 2.5rem 0 3rem;
}

.bm-hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: center;
}

.bm-hero-grid--reverse .bm-hero-media {
  order: 2;
}

.bm-hero-grid--reverse .bm-hero-copy {
  order: 1;
}

.bm-hero-media img,
.bm-hero-img {
  width: 100%;
  height: auto;
  border-radius: var(--bm-radius);
  display: block;
  object-fit: cover;
}

.bm-hero-ph {
  aspect-ratio: 4/3;
  border: 2px dashed var(--bm-border);
  border-radius: var(--bm-radius);
  display: grid;
  place-content: center;
  gap: 0.5rem;
  text-align: center;
  color: var(--bm-muted);
  background: var(--bm-soft);
  padding: 1rem;
}

.bm-hero-ph span {
  font-size: 2rem;
  color: var(--bm-red);
  font-weight: 700;
}

.bm-hero-ph p {
  margin: 0;
  font-size: 0.85rem;
  max-width: 22ch;
}

.bm-hero-copy h1 {
  font-size: clamp(1.75rem, 3vw, 2.35rem);
  line-height: 1.2;
  margin: 0 0 1rem;
  font-weight: 700;
}

.bm-hero-copy p {
  color: var(--bm-muted);
  margin: 0 0 1.25rem;
}

.bm-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.bm-section-title {
  font-size: 1.75rem;
  font-weight: 700;
  margin: 0 0 1.25rem;
}

/* Location */
.bm-location {
  padding: 2rem 0 3rem;
}

.bm-location-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.bm-map iframe {
  width: 100%;
  height: 360px;
  border: 0;
  border-radius: var(--bm-radius);
}

.bm-store-card h3 {
  font-size: 1.35rem;
  margin: 0 0 0.5rem;
}

.bm-status-pill {
  display: inline-block;
  color: var(--bm-red);
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.bm-tabs {
  display: inline-flex;
  background: var(--bm-soft);
  border-radius: 8px;
  padding: 4px;
  margin: 1rem 0;
}

.bm-tab {
  border: 0;
  background: transparent;
  padding: 0.45rem 0.85rem;
  border-radius: 6px;
  font: inherit;
  font-weight: 600;
  color: var(--bm-muted);
  cursor: pointer;
}

.bm-tab.is-active {
  background: #1a1a1a;
  color: #fff;
}

.bm-hours dt {
  font-weight: 600;
  margin-top: 0.5rem;
}

.bm-hours dd {
  margin: 0.15rem 0 0;
  color: var(--bm-muted);
}

/* Google review bar */
.bm-google-bar {
  background: var(--bm-soft);
  border-radius: var(--bm-radius);
  padding: 1.25rem 1.5rem;
  margin: 2rem 0 3rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
}

.bm-google-stars {
  color: #f4b400;
  letter-spacing: 2px;
}

.bm-quick-links {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
  margin: 2rem 0 1rem;
}

.bm-quick-card {
  display: block;
  padding: 1.15rem 1.25rem;
  background: #fff;
  border: 1px solid var(--bm-border);
  border-radius: var(--bm-radius);
  text-decoration: none;
  color: var(--bm-text);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.bm-quick-card:hover {
  border-color: var(--bm-red);
  box-shadow: 0 4px 16px rgb(0 0 0 / 6%);
  color: var(--bm-text);
}

.bm-quick-card strong {
  display: block;
  font-family: var(--bm-serif);
  font-size: 1.05rem;
  margin-bottom: 0.35rem;
}

.bm-quick-card span {
  font-size: 0.88rem;
  color: var(--bm-muted);
}

.cb-footer-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1rem;
  padding: 1.25rem 0;
  margin-top: 1rem;
  border-top: 1px solid var(--bm-border);
}

.cb-footer-cta p {
  margin: 0;
  flex: 1 1 180px;
  font-weight: 600;
}

/* Footer */
.cb-footer {
  border-top: 1px solid var(--bm-border);
  padding: 2rem 0;
  background: #fff;
}

.cb-footer-grid {
  display: block;
}

.cb-footer h2 {
  font-family: var(--bm-serif);
  font-size: 1.25rem;
  margin: 0 0 1rem;
  color: var(--bm-text);
}

.cb-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.cb-footer-links a {
  color: var(--bm-muted);
  font-size: 0.9rem;
  text-decoration: none;
}

.cb-footer-bottom,
.cb-footer p {
  display: none;
}

/* Menu / shop — Beyond Menu layout */
body.city-buffet-shop .cb-header--landing .cb-cart-wrap {
  display: inline-flex;
}

.bm-menu-page {
  padding: 1rem 0 3rem;
}

.bm-menu-top {
  position: sticky;
  top: 72px;
  z-index: 30;
  background: var(--bm-bg, #f5f0e8);
  padding-bottom: 0.35rem;
  margin-bottom: 0.5rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  align-items: flex-start;
}

.bm-menu-toolbar {
  position: sticky;
  top: calc(72px + 4.5rem);
  z-index: 29;
  background: var(--bm-bg, #f5f0e8);
  padding-bottom: 0.65rem;
}

.bm-menu-top h1 {
  font-family: var(--bm-serif);
  font-size: 2rem;
  margin: 0;
}

.bm-menu-meta {
  color: var(--bm-muted);
  font-size: 0.92rem;
}

.bm-menu-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
  margin-bottom: 1rem;
}

.bm-menu-search {
  flex: 1;
  min-width: 200px;
  display: flex;
  align-items: center;
  border: 1px solid var(--bm-border);
  border-radius: 8px;
  padding: 0.5rem 0.75rem;
  background: #fff;
}

.bm-menu-search input {
  border: 0;
  flex: 1;
  font: inherit;
  outline: none;
}

.bm-order-toggle {
  display: inline-flex;
  background: var(--bm-soft);
  border-radius: 999px;
  padding: 3px;
}

.bm-order-toggle button {
  border: 0;
  background: transparent;
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}

.bm-order-toggle button.is-active {
  background: #1a1a1a;
  color: #fff;
}

.bm-menu-layout {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 1.5rem;
  align-items: start;
}

.bm-sidebar {
  position: sticky;
  top: 88px;
  border: 1px solid var(--bm-border);
  border-radius: 8px;
  padding: 0.75rem 0;
  background: #fff;
}

.bm-sidebar a {
  display: block;
  padding: 0.4rem 1rem;
  color: var(--bm-text);
  text-decoration: none;
  font-size: 0.92rem;
}

.bm-sidebar a:hover,
.bm-sidebar a.is-active {
  background: var(--bm-soft);
  font-weight: 600;
}

.bm-cat-section {
  margin-bottom: 2rem;
  scroll-margin-top: 96px;
}

.bm-cat-section h2 {
  font-size: 1.15rem;
  margin: 0 0 0.75rem;
  padding-bottom: 0.35rem;
  border-bottom: 1px solid var(--bm-border);
}

body.city-buffet-shop ul.products {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
  margin: 0 !important;
  padding: 0 !important;
  list-style: none;
}

.bm-menu-banner {
  margin: 0 0 0.85rem;
  padding: 0.55rem 0.85rem;
  background: var(--bm-soft);
  border-radius: 8px;
  font-size: 0.88rem;
  color: var(--bm-muted);
  border-left: 3px solid var(--bm-red);
}

body.cb-takeout-closed.city-buffet-shop a.add_to_cart_button,
body.cb-takeout-closed.city-buffet-shop a.product_type_simple {
  opacity: 0.45;
  pointer-events: none;
  cursor: not-allowed;
}

body.cb-takeout-closed.city-buffet-shop .bm-menu-banner {
  background: #fff4e5;
  border-left-color: #c45c26;
  color: var(--bm-text);
  font-weight: 600;
}

.bm-delivery-zips {
  flex: 1 1 100%;
  margin: 0;
  font-size: 0.88rem;
}

body.city-buffet-cart.cb-fulfilment-pickup .bm-delivery-zips--cart,
body.city-buffet-checkout.cb-fulfilment-pickup .bm-delivery-zips--checkout {
  display: none;
}

body.city-buffet-checkout.cb-fulfilment-pickup .woocommerce-billing-fields .cb-pickup-address-field,
body.city-buffet-checkout.cb-fulfilment-pickup #billing_address_1_field,
body.city-buffet-checkout.cb-fulfilment-pickup #billing_address_2_field,
body.city-buffet-checkout.cb-fulfilment-pickup #billing_city_field,
body.city-buffet-checkout.cb-fulfilment-pickup #billing_state_field,
body.city-buffet-checkout.cb-fulfilment-pickup #billing_postcode_field {
  display: none !important;
}

.cb-skip-link:focus,
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--bm-red);
  outline-offset: 2px;
}

body.city-buffet-shop ul.products li.product.bm-product-card.is-menu-hidden {
  display: none !important;
}

body.city-buffet-shop ul.products li.product.bm-product-card {
  width: 100% !important;
  margin: 0 !important;
  float: none !important;
  border: 1px solid var(--bm-border);
  border-radius: 8px;
  padding: 0.85rem 3.25rem 0.85rem 1rem !important;
  background: #fff;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 0.75rem;
  position: relative;
  min-height: 4.5rem;
}

body.city-buffet-shop ul.products li.product .bm-product-main {
  flex: 1;
  min-width: 0;
}

body.city-buffet-shop ul.products li.product .woocommerce-loop-product__link {
  color: var(--bm-text);
  text-decoration: none;
  display: block;
}

body.city-buffet-shop ul.products li.product img {
  display: none !important;
}

body.city-buffet-shop ul.products li.product .woocommerce-loop-product__title {
  font-size: 0.98rem !important;
  font-weight: 700 !important;
  padding: 0 !important;
  margin: 0 0 0.2rem !important;
  line-height: 1.25;
}

body.city-buffet-shop ul.products li.product .bm-product-desc {
  margin: 0 0 0.35rem;
  font-size: 0.82rem;
  color: var(--bm-muted);
  line-height: 1.35;
}

body.city-buffet-shop ul.products li.product .price {
  color: var(--bm-text) !important;
  font-weight: 700;
  font-size: 0.95rem !important;
  margin: 0 !important;
}

body.city-buffet-shop a.add_to_cart_button,
body.city-buffet-shop a.product_type_simple {
  position: absolute !important;
  right: 0.65rem;
  top: 50%;
  transform: translateY(-50%);
  width: 2.25rem;
  height: 2.25rem;
  min-height: 2.25rem;
  padding: 0 !important;
  border-radius: 8px !important;
  background: var(--bm-red) !important;
  color: #fff !important;
  font-size: 0 !important;
  line-height: 0 !important;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  border: none !important;
  box-shadow: none !important;
}

body.city-buffet-shop a.add_to_cart_button:hover,
body.city-buffet-shop a.product_type_simple:hover {
  background: var(--bm-red-hover) !important;
  color: #fff !important;
}

.bm-cart-dock {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 60;
  background: #fff;
  border-top: 1px solid var(--bm-border);
  box-shadow: 0 -6px 24px rgba(0, 0, 0, 0.08);
  padding: 0.65rem 0;
}

.bm-cart-dock[hidden] {
  display: none !important;
}

.bm-cart-dock-inner {
  width: min(1140px, calc(100% - 2rem));
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.bm-cart-dock-label {
  font-size: 0.92rem;
  color: var(--bm-muted);
}

.bm-cart-dock-label strong {
  color: var(--bm-text);
  font-size: 1.05rem;
}

body.city-buffet-shop.bm-dock-visible {
  padding-bottom: 4.5rem;
}

@media (min-width: 901px) {
  .bm-cart-dock {
    display: none !important;
  }
}

body.city-buffet-shop .woocommerce-result-count,
body.city-buffet-shop .woocommerce-ordering,
body.city-buffet-shop .cb-shop-cats,
body.city-buffet-shop .woocommerce-breadcrumb {
  display: none !important;
}

.bm-subtotal-bar {
  text-align: right;
  font-size: 0.9rem;
}

.bm-subtotal-bar strong {
  display: block;
  font-size: 1rem;
}

@media (max-width: 900px) {
  .bm-hero-grid,
  .bm-location-grid,
  .bm-menu-layout {
    grid-template-columns: 1fr;
  }

  .bm-sidebar {
    position: static;
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem;
  }

  .bm-sidebar a {
    padding: 0.35rem 0.65rem;
    background: var(--bm-soft);
    border-radius: 999px;
  }

  body.city-buffet-shop ul.products {
    grid-template-columns: 1fr;
  }
}

.cb-skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  padding: 0.5rem 1rem;
  background: var(--bm-red);
  color: #fff;
}

.cb-skip-link:focus {
  left: 0;
}

.cb-nav-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.cb-nav-list a {
  color: var(--bm-muted);
  text-decoration: none;
}

.cb-cart,
.cb-track,
.cb-account {
  color: var(--bm-muted);
  font-weight: 600;
  text-decoration: none;
  font-size: 0.92rem;
}

.cb-header-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.city-buffet-tip-select {
  width: 100%;
  max-width: 12rem;
  padding: 0.5rem 0.65rem;
  border: 1px solid var(--bm-border);
  border-radius: 8px;
  font: inherit;
}

.cb-cart-count {
  display: inline-flex;
  min-width: 1.25rem;
  justify-content: center;
  padding: 0 0.35rem;
  border-radius: 999px;
  background: var(--bm-red);
  color: #fff;
  font-size: 0.75rem;
  margin-left: 0.25rem;
}

.cb-cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 80;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.85rem 1.25rem;
  background: #fff;
  border-top: 1px solid var(--bm-border);
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.06);
  font-size: 0.9rem;
}

.cb-cookie-banner[hidden] {
  display: none !important;
}

.cb-nav-toggle {
  display: none;
  border: 1px solid var(--bm-border);
  background: #fff;
  border-radius: 8px;
  padding: 0.4rem 0.65rem;
  font: inherit;
}

@media (max-width: 860px) {
  .cb-header-inner {
    flex-wrap: wrap;
  }

  .cb-header:not(.cb-header--landing) .cb-nav-toggle {
    display: inline-flex;
  }

  .cb-header:not(.cb-header--landing) .cb-nav {
    display: none;
    width: 100%;
    order: 3;
  }

  .cb-header:not(.cb-header--landing) .cb-nav.is-open {
    display: block;
  }
}

/* Cart / checkout / product — Beyond Menu layout */
.bm-commerce-shell {
  padding: 2rem 0 3rem;
}

.bm-commerce-head {
  margin-bottom: 1.5rem;
}

.bm-commerce-head h1 {
  font-family: var(--bm-serif);
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  margin: 0 0 0.35rem;
}

.bm-cart-continue {
  margin: 0 0 1rem;
}

.bm-cart-continue a {
  font-weight: 600;
  text-decoration: none;
  color: var(--bm-text);
}

.bm-cart-fulfilment {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1.25rem;
  margin: 0 0 1.25rem;
  padding: 1rem 1.15rem;
  background: var(--bm-soft);
  border: 1px solid var(--bm-border);
  border-radius: var(--bm-radius);
}

.bm-cart-fulfilment--checkout {
  margin-top: 0;
}

.bm-cart-fulfilment-note {
  margin: 0;
  flex: 1 1 220px;
  font-size: 0.92rem;
  color: var(--bm-muted);
}

body.city-buffet-thankyou .woocommerce-order {
  margin-top: 0;
}

body.city-buffet-thankyou .woocommerce-thankyou-order-received {
  font-size: 1.05rem;
  font-weight: 600;
}

body.city-buffet-theme .woocommerce-message,
body.city-buffet-theme .woocommerce-info,
body.city-buffet-theme .woocommerce-error {
  background: #fff;
  border-top-color: var(--bm-red);
  border-radius: 8px;
  box-shadow: 0 1px 0 var(--bm-border);
}

body.city-buffet-theme .woocommerce form .form-row input.input-text,
body.city-buffet-theme .woocommerce form .form-row textarea,
body.city-buffet-theme .woocommerce form .form-row select {
  background: #fff;
  border: 1px solid var(--bm-border);
  border-radius: 8px;
  padding: 0.55rem 0.65rem;
  font: inherit;
  width: 100%;
}

body.city-buffet-cart .woocommerce {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 992px) {
  body.city-buffet-cart .woocommerce {
    grid-template-columns: 1fr min(360px, 34vw);
    align-items: start;
  }

  body.city-buffet-cart .woocommerce-cart-form {
    grid-column: 1;
  }

  body.city-buffet-cart .cart-collaterals {
    grid-column: 2;
    position: sticky;
    top: 88px;
  }
}

body.city-buffet-cart .woocommerce-cart-form,
body.city-buffet-cart .cart-collaterals .cart_totals,
.city-buffet-checkout #customer_details,
.city-buffet-checkout #order_review {
  background: #fff;
  border: 1px solid var(--bm-border);
  border-radius: var(--bm-radius);
  padding: 1.25rem;
}

.city-buffet-product .product {
  background: #fff;
  border: 1px solid var(--bm-border);
  border-radius: var(--bm-radius);
  padding: 1.5rem;
  max-width: 640px;
}

.city-buffet-product .product_title {
  font-family: var(--bm-serif);
  font-size: 1.65rem;
  margin: 0 0 0.5rem;
}

.city-buffet-product .price {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--bm-text) !important;
  margin-bottom: 1rem;
}

.city-buffet-product .single_add_to_cart_button {
  background: var(--bm-red) !important;
  color: #fff !important;
  border-radius: 999px !important;
  padding: 0.75rem 1.75rem !important;
  font-weight: 600 !important;
}

.city-buffet-cart table.shop_table,
.city-buffet-checkout table.shop_table {
  width: 100%;
  border-collapse: collapse;
}

.city-buffet-cart table.shop_table th,
.city-buffet-cart table.shop_table td,
.city-buffet-checkout table.shop_table th,
.city-buffet-checkout table.shop_table td {
  padding: 0.65rem 0.75rem;
  border-bottom: 1px solid var(--bm-border);
  text-align: left;
}

.city-buffet-cart .product-thumbnail img {
  width: 56px;
  height: 56px;
  object-fit: cover;
  border-radius: 8px;
}

.city-buffet-cart .wc-proceed-to-checkout .checkout-button,
.city-buffet-checkout #place_order,
.bm-order-track button[type="submit"] {
  background: var(--bm-red) !important;
  color: #fff !important;
  border-radius: 999px !important;
  font-weight: 600 !important;
  padding: 0.75rem 1.5rem !important;
  border: none !important;
  width: 100%;
}

@media (min-width: 992px) {
  body.city-buffet-checkout form.checkout.woocommerce-checkout {
    display: grid;
    grid-template-columns: 1fr min(400px, 38vw);
    gap: 1.5rem 2rem;
    align-items: start;
  }

  body.city-buffet-checkout #customer_details {
    grid-column: 1;
    grid-row: 1 / span 4;
  }

  body.city-buffet-checkout #order_review_heading {
    grid-column: 2;
    grid-row: 1;
    margin: 0;
  }

  body.city-buffet-checkout #order_review {
    grid-column: 2;
    grid-row: 2;
    position: sticky;
    top: 88px;
  }

  body.city-buffet-checkout .woocommerce-checkout-payment {
    grid-column: 1;
  }
}

body.city-buffet-checkout.cb-fulfilment-pickup .woocommerce-shipping-fields,
body.city-buffet-checkout.cb-fulfilment-pickup #ship-to-different-address {
  display: none !important;
}

.city-buffet-checkout .woocommerce-billing-fields h3,
.city-buffet-checkout .woocommerce-shipping-fields h3,
.city-buffet-checkout #order_review_heading {
  font-size: 1.1rem;
  margin-top: 0;
  font-family: var(--bm-serif);
}

body.woocommerce-order-received .woocommerce-order {
  max-width: 720px;
}

body.woocommerce-order-received .woocommerce-order-overview {
  background: var(--bm-soft);
  border-radius: var(--bm-radius);
  padding: 1rem 1.25rem;
}

.bm-order-track .woocommerce-form-row {
  margin-bottom: 1rem;
}

.bm-order-track input.input-text {
  width: 100%;
  max-width: 28rem;
  padding: 0.55rem 0.75rem;
  border: 1px solid var(--bm-border);
  border-radius: 8px;
  font: inherit;
}

.cb-gallery-img {
  width: 100%;
  height: auto;
  border-radius: var(--bm-radius);
  display: block;
  aspect-ratio: 4/3;
  object-fit: cover;
}

.cb-product-note {
  color: var(--bm-muted);
  font-size: 0.92rem;
}

.cb-thankyou-panel {
  margin: 1.5rem 0;
  padding: 1.25rem;
  background: var(--bm-soft);
  border-radius: var(--bm-radius);
  border: 1px solid var(--bm-border);
}

.cb-thankyou-panel h2 {
  font-family: var(--bm-serif);
  margin-top: 0;
}

.cb-thankyou-order {
  font-size: 1.05rem;
  margin: 0 0 1rem;
}

.cb-form-notice {
  padding: 0.85rem 1rem;
  border-radius: var(--bm-radius);
  margin: 0 0 1.25rem;
}

.cb-form-notice--ok {
  background: #eef8f0;
  border: 1px solid #b8dfc2;
}

.cb-form-notice--err {
  background: #fef2f2;
  border: 1px solid #f0b4b4;
}

.cb-delivery-zips {
  margin: 0.75rem 0;
  font-size: 0.92rem;
}

.cb-delivery-zips summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--bm-text);
}

.cb-zip-list {
  margin: 0.5rem 0 0;
  color: var(--bm-muted);
  line-height: 1.5;
}

.cb-checkout-note {
  color: var(--bm-muted);
  font-size: 0.92rem;
  margin: 0 0 1rem;
  padding: 0.65rem 0.85rem;
  background: var(--bm-soft);
  border-radius: 8px;
}

body.city-buffet-account .woocommerce-MyAccount-navigation {
  float: none;
  width: 100%;
  max-width: 240px;
  margin-bottom: 1.25rem;
}

body.city-buffet-account .woocommerce-MyAccount-navigation ul {
  list-style: none;
  margin: 0;
  padding: 0;
  border: 1px solid var(--bm-border);
  border-radius: var(--bm-radius);
  overflow: hidden;
  background: #fff;
}

body.city-buffet-account .woocommerce-MyAccount-navigation li a {
  display: block;
  padding: 0.65rem 1rem;
  text-decoration: none;
  color: var(--bm-text);
  border-bottom: 1px solid var(--bm-border);
}

body.city-buffet-account .woocommerce-MyAccount-navigation li:last-child a {
  border-bottom: 0;
}

body.city-buffet-account .woocommerce-MyAccount-navigation li.is-active a {
  background: var(--bm-soft);
  font-weight: 600;
  color: var(--bm-red);
}

@media (min-width: 768px) {
  body.city-buffet-account .woocommerce {
    display: grid;
    grid-template-columns: min(240px, 30%) 1fr;
    gap: 1.5rem;
    align-items: start;
  }

  body.city-buffet-account .woocommerce-MyAccount-content {
    background: #fff;
    border: 1px solid var(--bm-border);
    border-radius: var(--bm-radius);
    padding: 1.25rem;
  }
}

body.city-buffet-account .woocommerce-form-login,
body.city-buffet-account .woocommerce-form-register {
  max-width: 28rem;
  padding: 1.25rem;
  background: #fff;
  border: 1px solid var(--bm-border);
  border-radius: var(--bm-radius);
}

body.city-buffet-account .woocommerce-orders-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}

body.city-buffet-account .woocommerce-orders-table th,
body.city-buffet-account .woocommerce-orders-table td {
  padding: 0.65rem 0.75rem;
  border-bottom: 1px solid var(--bm-border);
  text-align: left;
}

body.city-buffet-account .woocommerce-orders-table .woocommerce-button {
  border-radius: 999px;
  font-weight: 600;
  padding: 0.45rem 1rem;
  background: var(--bm-red) !important;
  color: #fff !important;
}

body.city-buffet-account .woocommerce-MyAccount-content > p:first-child {
  color: var(--bm-muted);
}

.bm-sidebar a.is-active {
  color: var(--bm-red);
  border-left: 3px solid var(--bm-red);
  padding-left: calc(1rem - 3px);
}

/* Cart — text-only line items (BM style) */
body.city-buffet-cart .product-thumbnail {
  display: none;
}

body.city-buffet-cart thead .product-thumbnail {
  display: none;
}

body.city-buffet-cart .product-name {
  width: auto;
}

body.city-buffet-cart a.bm-cart-item-name {
  color: var(--bm-text);
  font-weight: 600;
  text-decoration: none;
}

body.city-buffet-cart a.bm-cart-item-name:hover {
  color: var(--bm-red);
}

body.city-buffet-cart .product-quantity input.qty {
  max-width: 4rem;
  text-align: center;
}

body.city-buffet-cart .actions .coupon {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}

body.city-buffet-cart .cart_totals h2 {
  font-family: var(--bm-serif);
  font-size: 1.15rem;
  margin-top: 0;
}

body.city-buffet-cart button[name="update_cart"] {
  border-radius: 999px;
  font-weight: 600;
}

.bm-empty-cart {
  margin: 1.25rem 0 0;
  text-align: center;
}

body.woocommerce-cart .cart-empty {
  text-align: center;
  padding: 2rem 1rem;
  font-size: 1.05rem;
}

@media (max-width: 768px) {
  body.city-buffet-cart .wc-proceed-to-checkout {
    position: sticky;
    bottom: 0;
    z-index: 25;
    background: var(--bm-bg, #fff);
    padding: 0.75rem 0 1rem;
    margin: 0 -0.25rem;
    box-shadow: 0 -8px 24px rgb(0 0 0 / 8%);
  }
}

/* Checkout review + thank you */
body.city-buffet-checkout #order_review_heading {
  font-family: var(--bm-serif);
}

body.city-buffet-checkout .woocommerce-checkout-payment {
  background: #fff;
  border: 1px solid var(--bm-border);
  border-radius: var(--bm-radius);
  padding: 1.25rem;
}

body.city-buffet-checkout #payment ul.payment_methods {
  border-bottom: 1px solid var(--bm-border);
  padding-bottom: 1rem;
  margin-bottom: 1rem;
}

.bm-thankyou-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 1rem;
}

@media (max-width: 768px) {
  body.city-buffet-checkout {
    padding-bottom: 5rem;
  }

  body.city-buffet-checkout #payment .form-row.place-order {
    position: sticky;
    bottom: 0;
    z-index: 25;
    background: var(--bm-bg);
    padding: 0.75rem 0 1rem;
    margin: 0 -0.25rem;
    box-shadow: 0 -8px 24px rgb(0 0 0 / 8%);
  }

  body.city-buffet-checkout.bm-dock-visible {
    padding-bottom: 7.5rem;
  }
}

body.city-buffet-order-track .woocommerce-form-track-order {
  max-width: 32rem;
  padding: 1.25rem;
  background: #fff;
  border: 1px solid var(--bm-border);
  border-radius: var(--bm-radius);
}

body.city-buffet-order-track .woocommerce-form-track-order label {
  font-weight: 600;
  display: block;
  margin-bottom: 0.35rem;
}

body.city-buffet-thankyou .woocommerce-order-overview {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 0.75rem 1rem;
  list-style: none;
  padding: 1rem 1.25rem;
  margin: 1rem 0;
  background: var(--bm-soft);
  border-radius: var(--bm-radius);
  border: 1px solid var(--bm-border);
}

body.city-buffet-thankyou .woocommerce-order-overview li {
  margin: 0;
  padding: 0;
  border: 0;
  font-size: 0.92rem;
}

body.city-buffet-thankyou .woocommerce-order-overview li strong {
  display: block;
  font-size: 1.05rem;
  margin-top: 0.15rem;
}

body.city-buffet-thankyou .woocommerce-table--order-details {
  background: #fff;
  border: 1px solid var(--bm-border);
  border-radius: var(--bm-radius);
  overflow: hidden;
}
