.foodord-order-page {
  --foodord-font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
  --foodord-sidebar-width: 360px;
}

.foodord-order-page .wr-card,
.foodord-order-page .foodord-scroll-nav,
.foodord-order-page .foodord-products-shortcode,
.foodord-order-page .foodord-order-toggle {
  font-family: var(--foodord-font-family, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif);
}

.foodord-pac-container {
  transform: translateZ(0);
  background: #ffffff;
  border: none;
  box-shadow: none;
  border-radius: 4px;
  padding: 4px 0;
  overflow: hidden;
  font-family: inherit;
  transition: opacity 0.15s ease, transform 0.15s ease;
  box-sizing: border-box;
}

.foodord-pac-container .pac-item {
  padding: 10px 16px 10px 46px;
  border: none;
  line-height: 1.4;
  font-size: 14px;
  color: rgba(37, 40, 43, 0.86);
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease;
  position: relative;
}

.foodord-pac-container .pac-item a,
.foodord-pac-container .pac-item a:link,
.foodord-pac-container .pac-item a:visited,
.foodord-pac-container .pac-item a:hover,
.foodord-pac-container .pac-item a:active {
  color: rgba(33, 35, 38, 0.94);
  text-decoration: none;
}

.foodord-pac-container .pac-item+.pac-item {
  border-top: 1px solid rgba(0, 0, 0, 0.04);
}

.foodord-pac-container .pac-item:hover,
.foodord-pac-container .pac-item.pac-item-selected {
  background-color: #f7f7f7;
  color: rgba(33, 35, 38, 0.95);
}

.foodord-pac-container .pac-item::before {
  content: '';
  position: absolute;
  left: 24px;
  top: 50%;
  width: 16px;
  height: 16px;
  transform: translate(-50%, -50%);
  background-color: rgba(36, 38, 41, 0.78);
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M8 1.25c-2.9 0-5.25 2.35-5.25 5.25 0 3.85 5.25 8.25 5.25 8.25s5.25-4.4 5.25-8.25c0-2.9-2.35-5.25-5.25-5.25zm0 7.5a2.25 2.25 0 1 1 0-4.5 2.25 2.25 0 0 1 0 4.5z'/%3E%3Ccircle cx='8' cy='6.5' r='1'/%3E%3C/svg%3E");
  mask-repeat: no-repeat;
  mask-size: contain;
}

.foodord-pac-container .pac-item::after {
  display: none;
}

.foodord-pac-container .pac-item .pac-icon {
  display: none;
}

.foodord-pac-container .pac-item .pac-item-query {
  font-weight: 600;
  color: rgba(33, 35, 38, 0.94);
  display: inline;
  margin-right: 4px;
}

.foodord-pac-container .pac-item .pac-item-query+span {
  font-size: 0.85rem;
  color: rgba(95, 98, 102, 0.9);
  display: inline;
  margin-left: 2px;
}

.foodord-pac-container .pac-logo {
  display: block;
  width: 100%;
  padding: 6px 16px 0;
  opacity: 0.75;
  position: relative;
  background: none;

  .foodord-sidebar {
    width: 100%;
    max-width: 420px;
    margin: 40px auto;
    padding: 0 1.25rem;
    box-sizing: border-box;
  }

  .foodord-sidebar .wr-card {
    position: static;
    width: 100%;
  }

  @media (min-width: 1024px) {
    .foodord-sidebar {
      max-width: 360px;
      margin: 40px auto 60px;
    }
  }

  text-align: left;
}

/* Frontend scope root (wrap your public components with this class) */
:root {
  --background-color: #f7f7f7;
  --primary-color: #ea004b;
  --primary-hover: #c70040;
  --text-color: #323232;
  --text-hover: #313131;
  --secondary-text: #6b6b6b;
  --button-bg: #ea004b;
  --button-text-color: #ffffff;
  --button-on-hover: #c70040;
  --border-color: #e3e3e3;
}

/* Checkout area highlight for attention */
.wr-checkout-highlight {
  outline: 2px solid #ff6b6b;
  transition: outline 0.3s ease;
}

/* =============================
   FoodOrd Scroll Categories Nav
   ============================= */
.foodord-scroll-nav {
  margin-bottom: 1rem;
  background: #ffffff;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  width: 100%;
  transition: box-shadow 0.2s ease, background-color 0.2s ease;
}

/* Independent positioning: stop at sidebar width on large screens */
@media (min-width: 1025px) {
  .has-foodord-sidebar .foodord-scroll-nav {
    width: calc(100% - var(--foodord-sidebar-w, var(--foodord-sidebar-width, 360px)));
    margin: 0;
  }

  .has-foodord-sidebar .foodord-scroll-nav.foodord-scroll-nav--plugin-only {
    width: 100%;
    margin-bottom: 1rem;
  }
}

.foodord-scroll-nav__inner {
  margin: 0;
  padding: 10px 52px 10px 104px;
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: none;
}

/* Menu wrapper for background */
.foodord-scroll-nav__menu-wrapper {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 60px;
  background: #ffffff;
  z-index: 10;
}

/* Menu button */
.foodord-scroll-nav__menu-btn {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  padding: 0;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  background: #ffffff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease-in-out;
  z-index: 11;
}

.foodord-scroll-nav__menu-btn:hover {
  background: #f9fafb;
  border-color: #d1d5db;
  transform: translateY(-50%) scale(1.02);
}

.foodord-scroll-nav__menu-btn:active {
  background: #f3f4f6;
  transform: translateY(-50%) scale(0.97);
}

.foodord-scroll-nav__menu-icon {
  width: 18px;
  height: 12px;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.foodord-scroll-nav__menu-icon span {
  display: block;
  width: 100%;
  height: 2px;
  background: #374151;
  border-radius: 2px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Hover effects for a bit of life */
.foodord-scroll-nav__menu-btn:hover .foodord-scroll-nav__menu-icon span:nth-child(1) {
  transform: translateY(-1px);
}

.foodord-scroll-nav__menu-btn:hover .foodord-scroll-nav__menu-icon span:nth-child(3) {
  transform: translateY(1px);
}

.foodord-scroll-nav__menu-btn.is-active {
  background: #1f2937;
  border-color: #1f2937;
}

.foodord-scroll-nav__menu-btn.is-active .foodord-scroll-nav__menu-icon span {
  background: #ffffff;
  width: 100%;
}

.foodord-scroll-nav__menu-btn.is-active .foodord-scroll-nav__menu-icon span:nth-child(1) {
  transform: translateY(5px) rotate(45deg);
}

.foodord-scroll-nav__menu-btn.is-active .foodord-scroll-nav__menu-icon span:nth-child(2) {
  opacity: 0;
}

.foodord-scroll-nav__menu-btn.is-active .foodord-scroll-nav__menu-icon span:nth-child(3) {
  transform: translateY(-5px) rotate(-45deg);
}

/* Dropdown menu */
.foodord-scroll-nav__dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 16px;
  background: #ffffff;
  border: 1px solid rgba(229, 229, 229, 0.8);
  border-radius: 16px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12), 0 4px 16px rgba(0, 0, 0, 0.08);
  min-width: 260px;
  max-width: 320px;
  z-index: 1000;
  padding: 12px;
  max-height: 420px;
  overflow-y: auto;
  animation: dropdownOpen 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes dropdownOpen {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.foodord-scroll-nav__dropdown-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.foodord-scroll-nav__dropdown-item {
  margin: 0;
}

.foodord-scroll-nav__dropdown-link {
  display: block;
  padding: 12px 24px 12px 28px;
  margin: 0 -12px;
  width: calc(100% + 24px);
  background: transparent;
  border: none;
  border-radius: 10px;
  text-align: left;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  font-size: 15px;
}

/* Pseudo element for bold text without layout shift */
.foodord-scroll-nav__dropdown-link::after {
  content: attr(data-text);
  position: absolute;
  left: 28px;
  top: 12px;
  pointer-events: none;
  visibility: hidden;
  width: auto;
  height: auto;
}

.foodord-scroll-nav__dropdown-link:hover {
  background: rgba(201, 56, 111, 0.08);
  transform: translateX(2px);
}

/* First and last item border radius */
.foodord-scroll-nav__dropdown-item:first-child .foodord-scroll-nav__dropdown-link {
  border-radius: 10px 10px 10px 10px;
}

.foodord-scroll-nav__dropdown-item:first-child .foodord-scroll-nav__dropdown-link.is-active::before {
  border-radius: 10px 0 0 10px;
}

.foodord-scroll-nav__dropdown-item:last-child .foodord-scroll-nav__dropdown-link {
  border-radius: 10px 10px 10px 10px;
}

.foodord-scroll-nav__dropdown-item:last-child .foodord-scroll-nav__dropdown-link.is-active::before {
  border-radius: 0 10px 10px 0;
}

.foodord-scroll-nav__dropdown-link:active {
  transform: scale(0.98);
}

/* Active dropdown item indicator */
.foodord-scroll-nav__dropdown-link.is-active {
  background: rgba(0, 0, 0, 0.05);
}

.foodord-scroll-nav__dropdown-link.is-active::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  height: 100%;
  background: #333333;
  border-radius: 0;
  animation: slideIn 0.2s ease;
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateX(-4px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.foodord-scroll-nav__list {
  list-style: none;
  margin: 0;
  padding: 0 5px;
  display: flex;
  gap: 8px;
  overflow-x: auto;
  flex: 1;
  max-width: min(660px, calc(100% - 310px));
  -webkit-overflow-scrolling: touch;
  scroll-behavior: smooth;
  position: relative;
  z-index: 1;
  scrollbar-width: none;
  -ms-overflow-style: none;
  mask-image: linear-gradient(90deg,
      transparent 0%,
      rgba(0, 0, 0, 1) 15px,
      rgba(0, 0, 0, 1) calc(100% - 15px),
      transparent 100%);
}

/* WebKit (Chrome, Safari) */
.foodord-scroll-nav__list::-webkit-scrollbar {
  width: 0;
  height: 0;
  background: transparent;
}

.foodord-scroll-nav__item {
  flex: 0 0 auto;
}


/* Arrow buttons for scrolling */
.foodord-scroll-nav__arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-60%);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--foodord-scroll-arrow-bg, #ffffff);
  border: 1px solid var(--foodord-scroll-arrow-border, rgba(0, 0, 0, 0.08));
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
  transition: background 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
  z-index: 11;
  /* Above wrapper */
  box-shadow: var(--foodord-scroll-arrow-shadow, 0 2px 4px rgba(0, 0, 0, 0.05));
  color: var(--foodord-scroll-arrow-color, inherit);
}

.foodord-scroll-nav__arrow svg {
  width: 22px;
  height: 22px;
  transition: transform 0.2s ease;
}

.foodord-scroll-nav__arrow:hover {
  background: var(--foodord-scroll-arrow-hover-bg, #f7f7f7);
  border-color: var(--foodord-scroll-arrow-hover-border, rgba(0, 0, 0, 0.12));
  box-shadow: var(--foodord-scroll-arrow-hover-shadow, 0 4px 8px rgba(0, 0, 0, 0.08));
}

.foodord-scroll-nav__arrow:hover svg {
  transform: scale(1.1);
}

.foodord-scroll-nav__arrow:active {
  box-shadow: var(--foodord-scroll-arrow-active-shadow, 0 1px 2px rgba(0, 0, 0, 0.05));
}

.foodord-scroll-nav__arrow:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.foodord-scroll-nav__arrow--left {
  left: 60px;
}

.foodord-scroll-nav__arrow--left:hover svg {
  transform: translateX(-2px) scale(1.1);
}

.foodord-scroll-nav__arrow--right {
  position: absolute;
}

.foodord-scroll-nav__arrow--right:hover svg {
  transform: translateX(2px) scale(1.1);
}

.foodord-scroll-nav__link {
  display: inline-block;
  padding: 10px 12px 12px;
  border-radius: 6px;
  background: transparent;
  text-decoration: none;
  border: none;
  position: relative;
  /* allow bold overlay without affecting layout */
  font-weight: 400;
  /* non-active links are not bold */
  transition: color 0.2s ease, background-color 0.2s ease;
  cursor: pointer;
  appearance: none;
}

.foodord-scroll-nav__link:hover {
  background-color: transparent;
  /* background handled by active-bg on hover */
  outline: none;
}

.foodord-scroll-nav__link:focus,
.foodord-scroll-nav__link:focus-visible {
  outline: none;
  box-shadow: none;
}

.foodord-scroll-nav__link.is-active {
  background-color: transparent;
}

/* Bold overlay technique: keeps width constant while showing bold on hover/active */
.foodord-scroll-nav__label {
  position: relative;
  display: inline-block;
  white-space: nowrap;
  z-index: 1;
}

.foodord-scroll-nav__link .foodord-scroll-nav__text {
  font-size: 14px;
  font-weight: 600;
  color: #323232;
  transition: opacity 160ms ease;
}

.foodord-scroll-nav__link .foodord-scroll-nav__text--bold {
  position: absolute;
  left: 0;
  /* relative to label, not the padded link */
  top: 50%;
  font-size: 14px;
  font-weight: 600;
  transform: translateY(-50%);
  opacity: 0;
  pointer-events: none;
  white-space: nowrap;
  transition: opacity 160ms ease;
  color: #323232;
}

.foodord-scroll-nav__link:hover .foodord-scroll-nav__text,
.foodord-scroll-nav__link.is-active .foodord-scroll-nav__text {
  opacity: 0;
}

.foodord-scroll-nav__link:hover .foodord-scroll-nav__text--bold,
.foodord-scroll-nav__link.is-active .foodord-scroll-nav__text--bold {
  opacity: 1;
}

/* Center text horizontally in active state */
.foodord-scroll-nav__link.is-active .foodord-scroll-nav__text--bold {
  left: 50%;
  transform: translate(-50%, -50%);
}

@media (max-width: 768px) {
  .foodord-scroll-nav__dropdown {
    display: none;
  }

  .foodord-scroll-nav__menu-wrapper {
    pointer-events: auto;
  }

  .foodord-scroll-nav__menu-btn.is-active {
    background: rgba(15, 23, 42, 0.06);
    border-color: rgba(15, 23, 42, 0.12);
  }

  .foodord-sheet-backdrop {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    background: rgba(15, 23, 42, 0.2);
    backdrop-filter: blur(6px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.28s ease;
    z-index: 10000;
  }

  .foodord-sheet-backdrop.is-visible {
    opacity: 1;
    pointer-events: auto;
  }

  .foodord-sheet {
    width: 100%;
    max-width: 100%;
    margin: 0;
    background: #ffffff;
    border-radius: 24px 24px 0 0;
    box-shadow: 0 -6px 24px rgba(15, 23, 42, 0.08);
    transform: translateY(30px);
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
    max-height: min(75vh, 560px);
    overflow: hidden;
  }

  .foodord-sheet-backdrop.is-visible .foodord-sheet {
    transform: translateY(0);
  }

  .foodord-sheet__handle {
    width: 48px;
    height: 4px;
    background: rgba(15, 23, 42, 0.08);
    border-radius: 2px;
    margin: 12px auto 16px;
    display: block;
  }

  .foodord-sheet__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 16px 14px;
    border-bottom: 1px solid rgba(226, 232, 240, 0.75);
  }

  .foodord-sheet__title {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    color: #0f172a;
  }

  .foodord-sheet__close {
    border: none;
    background: transparent;
    color: #0f172a;
    width: 36px;
    height: 36px;
    border-radius: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: color 0.2s ease;
    position: relative;
  }

  .foodord-sheet__close::before,
  .foodord-sheet__close::after {
    content: '';
    position: absolute;
    left: 50%;
    top: 50%;
    width: 14px;
    height: 2px;
    background: currentColor;
    border-radius: 1px;
    transform-origin: center;
    transition: opacity 0.2s ease;
  }

  .foodord-sheet__close::before {
    transform: translate(-50%, -50%) rotate(45deg);
  }

  .foodord-sheet__close::after {
    transform: translate(-50%, -50%) rotate(-45deg);
  }

  .foodord-sheet__body {
    overflow-y: auto;
    padding: 12px 0 18px;
    overscroll-behavior: contain;
  }

  .foodord-sheet__list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
  }

  .foodord-sheet__item {
    margin: 0;
  }

  .foodord-sheet__item:focus,
  .foodord-sheet__item:focus-visible,
  .foodord-sheet__item > :focus,
  .foodord-sheet__item > :focus-visible {
    outline: none;
    box-shadow: none;
  }

  .foodord-sheet__link {
    width: 100%;
    position: relative;
    text-align: left;
    border: none;
    background: transparent;
    padding: 16px 24px 16px 16px;
    border-radius: 0;
    font-size: 16px;
    color: #0f172a;
    display: block;
    transition: background 0.2s ease, color 0.2s ease;
  }

  .foodord-sheet__link::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    border-radius: 999px;
    background: transparent;
    transition: background 0.2s ease;
  }

  .foodord-sheet__link.is-active {
    background: rgb(177 177 177 / 12%);
    font-weight: 600;
  }

  .foodord-sheet__link.is-active::before {
    background: #333333;
  }

  body.foodord-sheet-open {
    overflow: hidden;
    touch-action: none;
  }
}

/* Active background segment */
.foodord-scroll-nav__active-bg {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 0;
  border-radius: 0;
  background: #f7f7f7;
  /* lighter */
  /* depth removed */
  /* no border, no shadow */
  transform: translateX(0);
  transition: transform 380ms cubic-bezier(0.22, 1, 0.36, 1), width 380ms cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform, width;
  pointer-events: none;
  z-index: 0;
  /* Lowest layer */
}

/* Active indicator */
.foodord-scroll-nav__indicator {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 4px;
  border-radius: 10px;
  background: #333333;
  transform: translateX(0);
  transition: transform 380ms cubic-bezier(0.22, 1, 0.36, 1), width 380ms cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform, width;
  z-index: 1;
}

@media (prefers-reduced-motion: reduce) {
  .foodord-scroll-nav__indicator {
    transition: none;
  }

  .foodord-scroll-nav__link {
    transition: none;
  }
}

/* =============================
   Mobile mode toggle row + address bar layout (<=1024px)
   ============================= */
@media (max-width: 1024px) {
  .foodord-mode-toggle-mobile {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 16px;
    background: var(--foodord-mobile-toggle-row-bg, #ffffff);
    align-items: stretch;
  }

  .foodord-mode-toggle-mobile .wr-card__address-bar {
    width: 100%;
    padding: 0;
    border: 0;
    background: transparent;
  }

  .foodord-mode-toggle-mobile .wr-card__address-bar--mobile-slot {
    border-radius: 14px;
    border: 1px solid var(--foodord-mobile-toggle-address-border, rgba(0, 0, 0, 0.05));
    background: var(--foodord-mobile-toggle-address-bg, #ffffff);
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    justify-content: space-between;
    width: 100%;
    box-sizing: border-box;
    transition: all 0.24s cubic-bezier(0.4, 0, 0.2, 1);
  }

  .foodord-mode-toggle-mobile .wr-card__address-bar--mobile-slot:active {
    background-color: var(--foodord-mobile-toggle-address-active-bg, #f1f5f9);
    transform: scale(0.985);
  }

  .foodord-mode-toggle-mobile .wr-card__address-bar--mobile-slot .wr-card__address-left {
    gap: 12px;
    flex: 1;
    min-width: 0;
  }

  .foodord-mode-toggle-mobile .wr-card__address-bar--mobile-slot .wr-card__address-left svg {
    width: 18px;
    height: 18px;
    color: var(--foodord-mobile-toggle-address-icon, #64748b);
    flex-shrink: 0;
  }

  .foodord-mode-toggle-mobile .wr-card__address-bar--mobile-slot .wr-card__address-value {
    font-weight: 600;
    font-size: 14px;
    color: var(--foodord-mobile-toggle-address-text, #1e293b);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .foodord-mode-toggle-mobile .wr-card__address-bar--mobile-slot .wr-card__address-delivery-fee {
    font-size: 11px;
  }

  .foodord-mode-toggle-mobile .wr-card__address-bar--mobile-slot .wr-card__address-delivery-fee svg {
    width: 14px;
    height: 14px;
    color: currentColor;
  }

  .foodord-mode-toggle-mobile .wr-card__address-bar--mobile-slot .wr-card__address-change {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--foodord-mobile-toggle-address-change-border, #e2e8f0);
    background: var(--foodord-mobile-toggle-address-change-bg, #f8fafc);
    color: var(--foodord-mobile-toggle-address-change-text, #475569);
    font-size: 11px;
    font-weight: 600;
    height: 26px;
    padding: 0 10px;
    border-radius: 6px;
    flex-shrink: 0;
    transition: all 0.2s ease;
  }

  .foodord-mode-toggle-mobile .wr-card__address-bar--mobile-slot .wr-card__address-change:hover {
    background: var(--foodord-mobile-toggle-address-change-hover-bg, #e2e8f0);
    color: var(--foodord-mobile-toggle-address-change-hover-text, #1e293b);
  }

  .foodord-mode-toggle-mobile .wr-card__mode-toggle--mobile {
    width: 100%;
    margin: 0;
    box-sizing: border-box;
  }

  .wr-card__address-bar--hidden-mobile {
    display: none;
  }
}

@media (min-width: 1025px) {
  .wr-card__address-bar--hidden-mobile {
    display: flex;
  }
}

/* Hide the mobile toggle row on desktop */
@media (min-width: 1025px) {
  .foodord-mode-toggle-mobile {
    display: none;
  }
}

/* Search bar (right aligned) */
.foodord-scroll-nav__search {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-60%);
  height: 36px;
  width: 290px;
  display: flex;
  align-items: center;
  gap: 6px;
  background: #f7f7f7;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 20px;
  padding: 0 10px 0 12px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
  z-index: 11;
}

/* Ensure overlay is hidden by default (desktop and general) */
.foodord-scroll-nav__search-overlay {
  display: none;
}

.foodord-scroll-nav__search-input {
  font-family: inherit;
  font-size: 13px;
  flex: 1;
  height: 100%;
  border: 0;
  background: transparent;
  color: var(--foodord-scroll-search-text, var(--text-color));
  outline: none;
}

.foodord-scroll-nav__search-btn,
.foodord-scroll-nav__clear-btn {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 0;
  background: transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--foodord-scroll-search-icon, #323232);
}

.foodord-scroll-nav__clear-btn {
  position: relative;
  font-size: 0;
}

.foodord-scroll-nav__clear-btn::before,
.foodord-scroll-nav__clear-btn::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 14px;
  height: 1px;
  border-radius: 999px;
  background: currentColor;
  transform-origin: center;
}

.foodord-scroll-nav__clear-btn::before {
  transform: translate(-50%, -50%) rotate(45deg);
}

.foodord-scroll-nav__clear-btn::after {
  transform: translate(-50%, -50%) rotate(-45deg);
}

/* Enforce hidden attribute behavior for clear button */
.foodord-scroll-nav__clear-btn[hidden] {
  display: none;
}

/* Move right arrow left enough to avoid overlap with search */
@media (max-width: 1024px) {
  .foodord-scroll-nav__search {
    width: 290px;
  }

  .foodord-scroll-nav__list {
    max-width: calc(100% - 310px);
  }
}


@media (max-width: 768px) {
  .foodord-scroll-nav__inner {
    padding: 10px 52px 10px 58px;
  }

  .foodord-scroll-nav__list {
    margin-right: 10px;
    max-width: calc(100% - 60px);
    mask-image: none;
  }

  .foodord-scroll-nav__search {
    width: 36px;
    height: 36px;
    padding: 0;
    border-radius: 50%;
    background: #f7f7f7;
    border: 1px solid rgba(0, 0, 0, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
  }

  .foodord-scroll-nav__search-input,
  .foodord-scroll-nav__clear-btn {
    display: none;
  }

  .foodord-scroll-nav__search-btn {
    position: static;
    margin: 0;
    padding: 0;
    background: transparent;
    color: var(--foodord-scroll-search-icon, #323232);
  }

  /* Remove arrow gradient hover effects on mobile */
  .foodord-scroll-nav__arrow:hover {
    background: #f7f7f7;
    border-color: rgba(0, 0, 0, 0.12);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.08);
  }

  /* Search overlay - positioned over scroll nav with popover-like animation */
  .foodord-scroll-nav__search-overlay {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100vh;
    height: 100dvh;
    background: #fff;
    z-index: 10000;
    display: none;
    overflow: hidden;
  }

  body.foodord-modal-open .foodord-scroll-nav__search-overlay.is-open {
    z-index: 9998;
  }

  .foodord-scroll-nav__search-overlay.is-open,
  .foodord-scroll-nav__search-overlay.is-closing {
    display: flex;
    align-items: flex-start;
  }

  .foodord-scroll-nav__search-overlay-content {
    width: 100%;
    max-width: 100%;
    height: 100%;
    min-height: 100%;
    max-height: 100%;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    box-sizing: border-box;
    overflow: hidden;
    opacity: 0;
    transform: translateY(-10px);
    transform-origin: top center;
  }

  .foodord-scroll-nav__search-overlay.is-open .foodord-scroll-nav__search-overlay-content {
    animation: searchOverlayIn 0.26s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
  }

  .foodord-scroll-nav__search-overlay.is-closing .foodord-scroll-nav__search-overlay-content {
    animation: searchOverlayOut 0.2s cubic-bezier(0.4, 0, 0.2, 1) forwards;
  }

  .foodord-scroll-nav__search-overlay-header {
    padding: calc(env(safe-area-inset-top, 0) + 14px) 16px 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    min-height: 76px;
    background: #ffffff;
    border-bottom: 1px solid rgba(15, 23, 42, 0.08);
    box-shadow: 0 12px 26px rgba(15, 23, 42, 0.08);
    flex: 0 0 auto;
  }

  .foodord-scroll-nav__search-overlay-input {
    font-size: 16px;
    font-family: inherit;
    flex: 1;
    min-width: 0;
    height: 44px;
    border: 1px solid rgba(15, 23, 42, 0.1);
    border-radius: 22px;
    background: #f8fafc;
    color: var(--foodord-scroll-search-text, var(--text-color));
    padding: 0 16px;
    outline: none;
  }

  .foodord-scroll-nav__search-overlay-close {
    width: 38px;
    height: 38px;
    border: 0;
    background: transparent;
    -webkit-tap-highlight-color: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
    color: var(--foodord-scroll-search-icon, inherit);
  }

  .foodord-scroll-nav__search-overlay-close svg {
    width: 20px;
    height: 20px;
    pointer-events: none;
  }

  .foodord-scroll-nav__search-overlay-clear {
    border: 0;
    background: transparent;
    color: var(--foodord-scroll-search-icon, rgba(0, 0, 0, 0.7));
    font-size: 13px;
    font-family: inherit;
    padding: 0;
    cursor: pointer;
    flex-shrink: 0;
    text-decoration: none;
    white-space: nowrap;
  }

  .foodord-scroll-nav__search-overlay-clear:hover {
    color: var(--foodord-scroll-search-icon-hover, rgba(0, 0, 0, 0.9));
    text-decoration: underline;
  }

  /* Ensure overlay clear button respects hidden attribute */
  .foodord-scroll-nav__search-overlay-clear[hidden] {
    display: none;
  }

  .foodord-scroll-nav__search-overlay-results {
    width: 100%;
    max-width: 100%;
    flex: 1;
    min-height: 0;
    min-width: 0;
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    padding: 14px 16px calc(env(safe-area-inset-bottom, 0) + 22px);
    display: flex;
    flex-direction: column;
    gap: 5px;
    box-sizing: border-box;
    overscroll-behavior: contain;
  }

  body.foodord-search-overlay-open.has-foodord-mobile-cart:not(.foodord-modal-open):not(.mobile-cart-expanded) .foodord-scroll-nav__search-overlay-results {
    padding-bottom: calc(env(safe-area-inset-bottom, 0) + 98px);
  }

  .foodord-scroll-nav__search-overlay-result {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    min-height: 74px;
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 4px;
    background: #ffffff;
    padding: 10px;
    display: grid;
    grid-template-columns: 54px minmax(0, 1fr);
    align-items: center;
    gap: 12px;
    text-align: left;
    color: #0f172a;
    font-family: inherit;
    box-sizing: border-box;
    cursor: pointer;
    flex: 0 0 auto;
  }

  .foodord-scroll-nav__search-overlay-result-image {
    width: 54px;
    height: 54px;
    border-radius: 10px;
    object-fit: cover;
    background: #f1f5f9;
  }

  .foodord-scroll-nav__search-overlay-result--no-image {
    grid-template-columns: minmax(0, 1fr);
    align-items: flex-start;
  }

  .foodord-scroll-nav__search-overlay-result-copy {
    min-width: 0;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 3px;
  }

  .foodord-scroll-nav__search-overlay-result-title {
    font-size: 14px;
    font-weight: 700;
    color: #0f172a;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .foodord-scroll-nav__search-overlay-result-desc {
    font-size: 12px;
    line-height: 1.35;
    color: #64748b;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .foodord-scroll-nav__search-overlay-result-price {
    display: inline-flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 4px 8px;
    min-width: 0;
    max-width: 100%;
    margin: 2px 0 0;
    padding: 0;
    overflow: hidden;
  }

  .foodord-scroll-nav__search-overlay-result-price .price-label {
    display: none;
  }

  .foodord-scroll-nav__search-overlay-result-price .product-price {
    display: inline-flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 4px;
    min-width: 0;
    margin: 0;
    padding: 0;
    color: var(--text-color, #111827);
    font-size: 13px;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.01em;
  }

  .foodord-scroll-nav__search-overlay-result-price .product-price .woocommerce-Price-amount,
  .foodord-scroll-nav__search-overlay-result-price .product-price .woocommerce-Price-currencySymbol {
    color: inherit;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: -0.01em;
  }

  .foodord-scroll-nav__search-overlay-result-price .product-price del {
    margin-right: 5px;
  }

  .foodord-scroll-nav__search-overlay-result-price .foodord-price-prefix {
    color: #64748b;
    font-size: 10px;
    font-weight: 600;
    line-height: 1.2;
    text-transform: uppercase;
  }

  .foodord-scroll-nav__search-overlay-result-price .foodord-pro-bogo-wrap {
    min-width: 0;
    gap: 6px;
  }

  .foodord-scroll-nav__search-overlay-result-price .foodord-pro-bogo-badge {
    max-width: 100%;
    min-height: 22px;
    white-space: nowrap;
    text-overflow: ellipsis;
  }

  .foodord-scroll-nav__search-overlay-results .foodord-scroll-nav__search-overlay-empty {
    width: 100%;
    flex: 1;
    min-height: min(420px, calc(100dvh - 132px));
    margin: 0;
    padding: 22px 0 calc(env(safe-area-inset-bottom, 0) + 32px);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    box-sizing: border-box;
  }

  .foodord-scroll-nav__search-overlay-empty .foodord-search-empty__card {
    max-width: 360px;
    margin: 0 auto;
    padding: 42px 24px;
  }

  .foodord-scroll-nav__search-overlay-empty .foodord-search-empty__icon {
    width: 68px;
    height: 68px;
    margin-bottom: 20px;
  }

  .foodord-scroll-nav__search-overlay-empty .foodord-search-empty__icon svg {
    width: 30px;
    height: 30px;
  }

  .foodord-scroll-nav__search-overlay-empty .foodord-search-empty__title {
    font-size: 20px;
  }

  .foodord-scroll-nav__search-overlay-empty .foodord-search-empty__desc {
    font-size: 14px;
    margin-bottom: 24px;
  }

  .foodord-scroll-nav__search-overlay-empty .foodord-search-empty__btn[hidden] {
    display: none;
  }

  /* Make scroll nav relative for absolute positioning of overlay */
  .foodord-scroll-nav {
    position: relative;
  }

  /* Search width responsive classes */
  .foodord-scroll-nav.search-width-small .foodord-scroll-nav__arrow--right {
    right: 260px;
  }

  .foodord-scroll-nav.search-width-medium .foodord-scroll-nav__arrow--right {
    right: 330px;
  }

  .foodord-scroll-nav.search-width-large .foodord-scroll-nav__arrow--right {
    right: 400px;
  }

  @keyframes searchOverlayIn {
    0% {
      opacity: 0;
      transform: translateY(-14px);
    }

    100% {
      opacity: 1;
      transform: translateY(0);
    }
  }

  @keyframes searchOverlayOut {
    0% {
      opacity: 1;
      transform: translateY(0);
    }

    100% {
      opacity: 0;
      transform: translateY(-10px);
    }
  }
}

/* Ensure category sections stop below any fixed headers during smooth scroll */
.foodord-category-section {
  scroll-margin-top: 90px;
}

@media (max-width: 768px) {
  .foodord-scroll-nav__inner {
    padding: 8px 42px 8px 78px;
    gap: 6px;
  }

  .foodord-scroll-nav__list {
    max-width: 100%;
  }

  .foodord-scroll-nav__search-overlay-close:hover,
.foodord-scroll-nav__search-overlay-close:active {
    background: transparent;
    box-shadow: none;
  }

  .foodord-scroll-nav__link {
    font-size: 13px;
    padding: 8px 10px 10px;
  }

  .foodord-scroll-nav__arrow {
    width: 30px;
    height: 30px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  }

  .foodord-scroll-nav__arrow svg {
    width: 26px;
    height: 26px;
  }

  .foodord-scroll-nav__arrow--left {
    left: 56px;
  }

  .foodord-scroll-nav__arrow--right {
    left: auto;
    right: 6px;
  }

  .foodord-scroll-nav__menu-btn {
    width: 36px;
    height: 36px;
    left: 14px;
    border-radius: 10px;
  }

  .foodord-scroll-nav__menu-icon {
    width: 16px;
    height: 12px;
  }

  .foodord-scroll-nav__dropdown {
    left: 12px;
    min-width: 200px;
    max-width: calc(100vw - 40px);
  }

  .foodord-scroll-nav__dropdown-link {
    padding: 8px 16px 8px 20px;
  }

  .foodord-scroll-nav__dropdown-link::after {
    left: 20px;
    top: 8px;
  }

  .foodord-scroll-nav__dropdown-link.is-active::before {
    height: 100%;
    width: 3px;
    left: 0;
    top: 0;
    bottom: 0;
  }

  .foodord-category-section {
    scroll-margin-top: 72px;
  }
}

/* Empty state for no search results */
.foodord-search-empty {
  display: none;
  min-height: 380px;
  background: transparent;
  align-items: center;
  justify-content: center;
}

.foodord-search-empty__card {
  padding: 64px 32px;
  text-align: center;
  width: 100%;
  max-width: 640px;
  margin: 32px auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border-radius: 20px;
  position: relative;
  overflow: hidden;
  background: var(--foodord-search-empty-card-bg, transparent);
  border: 1px solid var(--foodord-search-empty-card-border, transparent);
}

.foodord-search-empty__icon {
  width: 80px;
  height: 80px;
  background: var(--foodord-search-empty-icon-bg, #f8fafc);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  color: var(--foodord-search-empty-icon-color, #94a3b8);
  position: relative;
}

.foodord-search-empty__icon::after {
  content: '';
  position: absolute;
  inset: -8px;
  border: 1px dashed var(--foodord-search-empty-icon-ring, #e2e8f0);
  border-radius: 50%;
  opacity: 0.5;
}

.foodord-search-empty__icon svg {
  width: 36px;
  height: 36px;
  stroke-width: 1.5;
}

.foodord-search-empty__title {
  font-size: 22px;
  font-weight: 700;
  color: var(--foodord-search-empty-title, #0f172a);
  margin: 0 0 12px 0;
  letter-spacing: -0.02em;
}

.foodord-search-empty__desc {
  font-size: 16px;
  color: var(--foodord-search-empty-desc, #64748b);
  margin: 0 0 32px 0;
  line-height: 1.6;
  max-width: 320px;
}

.foodord-search-empty__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 32px;
  padding: 0 24px;
  border-radius: 14px;
  border: 1px solid var(--foodord-search-empty-btn-border, #e2e8f0);
  background: var(--foodord-search-empty-btn-bg, #f8fafc);
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  color: var(--foodord-search-empty-btn-text, #0f172a);
  letter-spacing: 0.01em;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.foodord-search-empty__btn:hover {
  background: var(--foodord-search-empty-btn-hover-bg, #e3e3e3);
  border-color: var(--foodord-search-empty-btn-hover-border, #cbd5e1);
  color: var(--foodord-search-empty-btn-hover-text, var(--foodord-search-empty-btn-text, #0f172a));
}

/* Smoothen spacer height growth when sticky engages */
.foodord-scroll-nav-spacer {
  height: 0;
  transition: none;
}

/* Sticky behavior: keep the nav at its measured page width. */
.foodord-scroll-nav.is-sticky {
  position: fixed;
  top: var(--foodord-scroll-nav-top, 0);
  left: var(--foodord-scroll-nav-left, 0);
  right: auto;
  width: var(--foodord-scroll-nav-width, 100%);
  max-width: calc(100vw - var(--foodord-scroll-nav-left, 0px));
  z-index: 9990;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  background: #ffffff;
}

.foodord-scroll-nav.foodord-scroll-nav--plugin-only,
.foodord-scroll-nav.foodord-scroll-nav--plugin-only.is-sticky {
  position: sticky;
  top: var(--foodord-scroll-nav-top, 0);
  left: auto;
  right: auto;
  width: 100%;
  max-width: 100%;
  z-index: 40;
  isolation: isolate;
}

@media (min-width: 1025px) {
  .has-foodord-sidebar .foodord-scroll-nav.is-sticky {
    width: var(--foodord-scroll-nav-width, calc(100% - var(--foodord-sidebar-w, var(--foodord-sidebar-width, 360px))));
  }

  .has-foodord-sidebar .foodord-scroll-nav.foodord-scroll-nav--plugin-only.is-sticky {
    width: 100%;
  }
}

/* Keep inner padding stable to avoid jank when sticky */
.foodord-scroll-nav.is-sticky .foodord-scroll-nav__inner {
  padding-top: inherit;
  padding-bottom: inherit;
  min-height: 56px;
}

.foodord-scroll-nav.is-sticky .foodord-scroll-nav__arrow--left {
  left: 20px;
}

.foodord-scroll-nav.is-sticky .foodord-scroll-nav__arrow--right {
  right: 20px;
  left: auto;
}

/* Fix cart header overlapping when scroll nav is sticky */
@media (min-width: 1025px) {
  .wr-card__header {
    transition: top 0.3s ease;
  }

  .foodord-scroll-nav.is-sticky~.site-main .wr-card__header,
  body.woocommerce-cart .foodord-scroll-nav.is-sticky~.site-main .wr-card__header {
    top: 60px;
  }
}

@media (max-width: 782px) {
  body.admin-bar .foodord-scroll-nav.is-sticky~* .wr-card__items {
    padding-top: 106px;
    /* 60px + 46px mobile admin bar */
  }
}

/* Mobile mode toggle slot */

.foodord-mode-toggle-mobile {
  display: none;
}

.foodord-order-toggle {
  display: none;
  width: 100%;
  max-width: 480px;
  margin: 0 auto 16px;
  padding: 0 1rem;
  box-sizing: border-box;
}

@media (max-width: 1024px) {
  .foodord-order-toggle {
    display: block;
  }
}

.foodord-order-toggle+.foodord-scroll-nav {
  margin-top: 0;
}

.foodord-sidebar .foodord-mode-toggle-mobile {
  margin: 0 0 16px;
}

@media (max-width: 1024px) {
  .foodord-mode-toggle-mobile {
    display: block;
    padding: 0 1rem;
    background: #ffffff;
  }

  .foodord-mode-toggle-mobile::after {
    content: "";
    display: table;
    clear: both;
  }

  .foodord-mode-toggle-mobile .wr-card__mode-toggle {
    position: static;
    display: flex;
    justify-content: flex-start;
    width: 100%;
    padding: 0;
    background: transparent;
    margin-bottom: 12px;
    float: left;
  }

  .foodord-mode-toggle-mobile .wr-card__mode-group {
    display: flex;
    width: 100%;
    background: #f8fafc;
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: 12px;
    padding: 9px;
    position: relative;
    z-index: 0;
    isolation: isolate;
  }

  /* Elastic Slider (Mobile) */
  .foodord-mode-toggle-mobile .wr-card__mode-slider {
    position: absolute;
    top: 3px;
    bottom: 3px;
    left: 3px;
    width: calc(50% - 3px);
    background: linear-gradient(135deg, var(--button-bg, #ea004b) 0%, var(--button-on-hover, #c70040) 100%);
    border-radius: 9px;
    box-shadow: inset 0 0 0 1px rgba(203, 213, 225, 0.9);
    z-index: 1;
    pointer-events: none;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  }

  .foodord-mode-toggle-mobile .wr-card__mode-toggle.is-pickup-active .wr-card__mode-slider {
    transform: translateX(100%);
  }

  .foodord-mode-toggle-mobile .wr-card__mode-toggle.is-delivery-active .wr-card__mode-slider {
    transform: translateX(0);
  }

  .foodord-mode-toggle-mobile .wr-card__mode-toggle.is-store-closed .wr-card__mode-slider {
    background: transparent;
    box-shadow: none;
  }

  .foodord-mode-toggle-mobile .wr-card__mode-btn {
    flex: 1;
    min-width: 0;
    height: 44px;
    padding: 0 12px;
    border: 1px solid transparent;
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background-color: transparent;
    color: #475569;
    font-size: 13px;
    font-weight: 600;
    position: relative;
    z-index: 2;
    transition: color 0.4s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.4s cubic-bezier(0.16, 1, 0.3, 1), background-color 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  }

  .foodord-mode-toggle-mobile .wr-card__mode-btn .pickup-icon,
  .foodord-mode-toggle-mobile .wr-card__mode-btn .delivery-icon {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
  }

  .foodord-mode-toggle-mobile .wr-card__mode-btn.is-active {
    background: transparent;
    color: #ffffff;
  }

  .foodord-mode-toggle-mobile .wr-card__mode-btn.is-active * {
    color: #ffffff;
  }

  .foodord-mode-toggle-mobile .wr-card__mode-toggle.is-store-closed .wr-card__mode-btn.is-active,
  .foodord-mode-toggle-mobile .wr-card__mode-toggle.is-store-closed .wr-card__mode-btn.is-active * {
    color: #475569;
  }

  .foodord-mode-toggle-mobile .wr-card__mode-btn.is-closed,
  .foodord-mode-toggle-mobile .wr-card__mode-btn[disabled] {
    background: transparent;
    color: var(--text-color);
    cursor: not-allowed;
    opacity: 0.6;
    text-decoration: line-through;
  }

  .foodord-mode-toggle-mobile .wr-card__mode-btn.is-closed *,
  .foodord-mode-toggle-mobile .wr-card__mode-btn[disabled] * {
    color: inherit;
  }

  /* Address bar in mobile toggle container */
  .foodord-mode-toggle-mobile .wr-card__address-bar {
    width: 100%;
    margin-bottom: 10px;
    clear: both;
    background: transparent;
    justify-content: flex-end;
    gap: 1rem;
  }

  .foodord-mode-toggle-mobile .wr-card__address-left {
    gap: 6px;
  }

  .foodord-mode-toggle-mobile .wr-card__address-left svg {
    width: 14px;
    height: 14px;
    color: var(--text-color);
  }

  .foodord-mode-toggle-mobile .wr-card__address-delivery-fee svg {
    color: currentColor;
  }

  .foodord-mode-toggle-mobile .wr-card__address-change {
    height: 24px;
    padding: 0 8px;
    display: none;
  }

}

/* Delivery/Pickup toggle above cart header (desktop only) */
@media (min-width: 1025px) {
  .wr-card.has-mode-toggle .wr-card__mode-toggle {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    padding: 16px 16px 4px;
    background: var(--foodord-mode-toggle-bg, #ffffff);
    z-index: 11;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: top 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  }

  .wr-card.has-mode-toggle .wr-card__mode-group {
    display: inline-flex;
    align-items: center;
    gap: 0;
    background: var(--foodord-mode-group-bg, #f8fafc);
    border: 1px solid var(--foodord-mode-group-border, rgba(0, 0, 0, 0.05));
    border-radius: 12px;
    padding: 8px;
    position: relative;
    z-index: 0;
    isolation: isolate;
    width: 100%;
  }

  /* Elastic Slider (Desktop) - Refined and Sleek */
  .wr-card.has-mode-toggle .wr-card__mode-slider {
    position: absolute;
    top: 3px;
    bottom: 3px;
    left: 3px;
    width: calc(50% - 3px);
    background: var(--foodord-mode-slider-bg, #ffffff);
    border-radius: 9px;
    box-shadow: var(--foodord-mode-slider-shadow, inset 0 0 0 1px rgba(203, 213, 225, 0.9));
    z-index: 1;
    pointer-events: none;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  }

  .wr-card.has-mode-toggle .wr-card__mode-toggle.is-pickup-active .wr-card__mode-slider {
    transform: translateX(100%);
  }

  .wr-card.has-mode-toggle .wr-card__mode-toggle.is-delivery-active .wr-card__mode-slider {
    transform: translateX(0);
  }

  .wr-card.has-mode-toggle .wr-card__mode-toggle.is-store-closed .wr-card__mode-slider {
    background: transparent;
    box-shadow: none;
  }

  .wr-card.has-mode-toggle .wr-card__mode-btn {
    flex: 1;
    min-width: 0;
    height: 44px;
    padding: 0 12px;
    border: 1px solid transparent;
    border-radius: 9px;
    cursor: pointer;
    background-color: transparent;
    color: var(--foodord-mode-btn-color, #475569);
    font-weight: 600;
    font-size: 13px;
    transition: color 0.4s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.4s cubic-bezier(0.16, 1, 0.3, 1), background-color 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    position: relative;
    z-index: 2;
  }

  .wr-card.has-mode-toggle .wr-card__mode-btn .pickup-icon,
  .wr-card.has-mode-toggle .wr-card__mode-btn .delivery-icon {
    flex-shrink: 0;
    width: 16px;
    height: 16px;
    transition: transform 0.3s ease;
  }

  .wr-card.has-mode-toggle .wr-card__mode-btn:hover:not(.is-active) {
    color: var(--foodord-mode-btn-hover-color, #334155);
  }

  .wr-card.has-mode-toggle .wr-card__mode-btn.is-active {
    color: var(--foodord-mode-btn-active-color, #353535);
  }

  .wr-card.has-mode-toggle .wr-card__mode-btn.is-active .pickup-icon,
  .wr-card.has-mode-toggle .wr-card__mode-btn.is-active .delivery-icon {
    transform: scale(1.05);
  }

  .wr-card.has-mode-toggle .wr-card__mode-btn.is-active * {
    color: #ffffff;
  }

  .wr-card.has-mode-toggle .wr-card__mode-toggle.is-store-closed .wr-card__mode-btn.is-active,
  .wr-card.has-mode-toggle .wr-card__mode-toggle.is-store-closed .wr-card__mode-btn.is-active * {
    color: var(--foodord-mode-btn-color, #475569);
  }

  .wr-card.has-mode-toggle .wr-card__mode-btn.is-closed,
  .wr-card.has-mode-toggle .wr-card__mode-btn[disabled] {
    background: transparent;
    color: var(--text-color);
    cursor: not-allowed;
    opacity: 0.6;
    text-decoration: line-through;
  }

  .wr-card.has-mode-toggle .wr-card__mode-btn.is-closed *,
  .wr-card.has-mode-toggle .wr-card__mode-btn[disabled] * {
    color: inherit;
  }
}

/* Mode Button Icon Animations - Premier Selection */
@keyframes delivery-wheel-spin {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

@keyframes delivery-frame-ride {

  0%,
  100% {
    transform: translateY(0) rotate(0deg);
  }

  25% {
    transform: translateY(-0.5px) rotate(-1deg);
  }

  50% {
    transform: translateY(0.2px) rotate(0deg);
  }

  75% {
    transform: translateY(-0.5px) rotate(1deg);
  }
}

@keyframes pickup-head-bounce {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-0.8px);
  }
}

@keyframes pickup-leg-stride {

  0%,
  100% {
    transform: rotate(0deg) translateY(0);
  }

  25% {
    transform: rotate(-15deg) translateY(-0.5px);
  }

  50% {
    transform: rotate(0deg) translateY(0);
  }

  75% {
    transform: rotate(15deg) translateY(-0.5px);
  }
}

@keyframes motion-ground-slide {
  from {
    stroke-dashoffset: 0;
  }

  to {
    stroke-dashoffset: 8;
  }
}

/* Base states for icons to ensure smooth transition */
.delivery-icon,
.pickup-icon {
  overflow: visible;
}

.delivery-wheel,
.delivery-frame,
.pickup-head,
.pickup-body,
.pickup-leg,
.motion-ground {
  transform-origin: center;
  transform-box: fill-box;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.motion-ground {
  opacity: 0;
  transition: opacity 0.3s ease;
}

/* Action: Delivery Ride */
.delivery-icon.is-animating .delivery-wheel {
  animation: delivery-wheel-spin 0.6s linear infinite;
}

.delivery-icon.is-animating .delivery-frame {
  animation: delivery-frame-ride 0.6s cubic-bezier(0.45, 0.05, 0.55, 0.95) infinite;
}

.delivery-icon.is-animating .motion-ground {
  opacity: 0.6;
  animation: motion-ground-slide 0.3s linear infinite;
}

/* Action: Pickup Stride */
.pickup-icon.is-animating .pickup-head,
.pickup-icon.is-animating .pickup-body {
  animation: pickup-head-bounce 0.4s ease-in-out infinite;
}

.pickup-icon.is-animating .pickup-leg-1 {
  animation: pickup-leg-stride 0.8s ease-in-out infinite;
  transform-origin: top center;
}

.pickup-icon.is-animating .pickup-leg-2 {
  animation: pickup-leg-stride 0.8s ease-in-out infinite;
  animation-delay: -0.4s;
  transform-origin: top center;
}

.pickup-icon.is-animating .motion-ground {
  opacity: 0.4;
  animation: motion-ground-slide 0.6s linear infinite;
}




/* Push the original header below the toggle */
body:not(.wp-admin) .wr-card.has-mode-toggle .wr-card__header {
  top: 70px;
  /* keep in sync with toggle height */
}

/* Increase body top spacing to account for the extra bar */
body:not(.wp-admin) .wr-card.has-mode-toggle .wr-card__body {
  margin-top: calc(4rem + 16px);
}


/* Hide delivery fee line on card when Pickup is selected via toggle */
.wr-card.is-pickup .wr-card__delivery-fee {
  display: none;
}

/* Sticky scroll nav + mode toggle compound offset */
@media (min-width: 1025px) {

  .foodord-scroll-nav.is-sticky~.site-main .wr-card.has-mode-toggle .wr-card__header,
  body.woocommerce-cart .foodord-scroll-nav.is-sticky~.site-main .wr-card.has-mode-toggle .wr-card__header {
    top: 126px;
    /* 60px sticky offset + 56px toggle height */
  }

  /* Ensure the toggle bar also moves below sticky nav */
  .foodord-scroll-nav.is-sticky~.site-main .wr-card.has-mode-toggle .wr-card__mode-toggle,
  body.woocommerce-cart .foodord-scroll-nav.is-sticky~.site-main .wr-card.has-mode-toggle .wr-card__mode-toggle {
    top: 56px;
  }
}

/* When address bar exists under the toggle, header no longer needs extra offset */
@media (min-width: 1025px) {
  body:not(.wp-admin) .wr-card.has-mode-toggle.has-address-bar:not(.is-pickup) .wr-card__header {
    top: 0;
  }

  /* Push the address bar below the absolute toggle height */
  body:not(.wp-admin) .wr-card.has-mode-toggle .wr-card__address-bar {
    margin-top: 70px;
    /* keep in sync with header offset used previously */
  }
}

/* Hide address bar entirely on pickup as a safety net */
body:not(.wp-admin) .wr-card.is-pickup .wr-card__address-bar {
  display: none;
}

/* Pickup mode: fix layout when address bar is hidden */
@media (min-width: 1025px) {

  /* Reset header position on pickup mode */
  body:not(.wp-admin) .wr-card.has-mode-toggle.is-pickup .wr-card__header {
    top: 70px;
    /* back to toggle offset only */
  }

  /* Reset body spacing on pickup mode */
  body:not(.wp-admin) .wr-card.has-mode-toggle.is-pickup .wr-card__body {
    margin-top: calc(4rem + 16px);
    /* back to original with toggle offset */
  }

  /* Pickup mode + sticky navigation: adjust for sticky bar */
  .foodord-scroll-nav.is-sticky~.site-main .wr-card.has-mode-toggle.is-pickup .wr-card__header,
  body.woocommerce-cart .foodord-scroll-nav.is-sticky~.site-main .wr-card.has-mode-toggle.is-pickup .wr-card__header {
    top: 126px;
    /* 60px sticky + 70px toggle - no address bar offset */
  }

  /* Pickup mode + sticky navigation: mode toggle positioning */
  .foodord-scroll-nav.is-sticky~.site-main .wr-card.has-mode-toggle.is-pickup .wr-card__mode-toggle,
  body.woocommerce-cart .foodord-scroll-nav.is-sticky~.site-main .wr-card.has-mode-toggle.is-pickup .wr-card__mode-toggle {
    top: 56px;
    /* same as delivery but no address bar complications */
  }
}

/* Sticky scroll nav + address bar compound offset (delivery only) */
@media (min-width: 1025px) {

  .foodord-scroll-nav.is-sticky~.site-main .wr-card.has-mode-toggle .wr-card__address-bar,
  body.woocommerce-cart .foodord-scroll-nav.is-sticky~.site-main .wr-card.has-mode-toggle .wr-card__address-bar {
    margin-top: 126px;
    /* 60px sticky offset + 56px toggle height + original spacing */
  }
}

/* When sticky, also reset header top offset in delivery + address bar */
@media (min-width: 1025px) {

  .foodord-scroll-nav.is-sticky~.site-main .wr-card.has-mode-toggle.has-address-bar:not(.is-pickup) .wr-card__header,
  body.woocommerce-cart .foodord-scroll-nav.is-sticky~.site-main .wr-card.has-mode-toggle.has-address-bar:not(.is-pickup) .wr-card__header {
    top: 0;
  }
}

/* Reduce extra body spacing when address bar is present (delivery only) */
@media (min-width: 1025px) {
  body:not(.wp-admin) .wr-card.has-mode-toggle.has-address-bar:not(.is-pickup) .wr-card__body {
    margin-top: 0;
    /* remove extra space below header when address bar is visible */
    padding-top: 0;
    /* ensure no top padding contributes */
  }

  body:not(.wp-admin) .wr-card.has-mode-toggle.has-address-bar:not(.is-pickup) .wr-card__header {
    margin-bottom: 0;
    /* tighten gap under header */
  }

  .foodord-scroll-nav.is-sticky~.site-main .wr-card.has-mode-toggle.has-address-bar:not(.is-pickup) .wr-card__body,
  body.woocommerce-cart .foodord-scroll-nav.is-sticky~.site-main .wr-card.has-mode-toggle.has-address-bar:not(.is-pickup) .wr-card__body {
    margin-top: 0;
    padding-top: 0;
  }
}

@media (min-width: 1025px) {
  .wr-card.wr-card--stable .wr-card__top {
    display: flex;
    flex-direction: column;
    transition: margin-top 0.24s ease;
  }

  .wr-card.wr-card--stable.has-mode-toggle .wr-card__mode-toggle {
    position: static;
    top: auto;
    left: auto;
    right: auto;
    padding: 16px 16px 8px;
    background: var(--foodord-mode-toggle-bg, #ffffff);
    border-bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: auto;
  }

  .wr-card.wr-card--stable .wr-card__address-bar {
    margin: 4px 16px 12px;
    padding: 8px 12px;
    background: var(--foodord-address-bar-bg, #ffffff);
    border: 1px solid var(--foodord-address-bar-border, rgba(0, 0, 0, 0.04));
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    cursor: pointer;
    transition: all 0.24s cubic-bezier(0.4, 0, 0.2, 1);
  }

  .wr-card.wr-card--stable .wr-card__address-bar:hover {
    background-color: var(--foodord-address-bar-hover-bg, #f8fafc);
    border-color: var(--foodord-address-bar-hover-border, rgba(201, 56, 111, 0.15));
  }

  .wr-card.wr-card--stable .wr-card__address-left {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
    flex: 1;
  }

  .wr-card.wr-card--stable .wr-card__address-icon {
    display: inline-flex;
    color: var(--foodord-address-bar-icon, var(--primary-color, #ea004b));
    flex-shrink: 0;
    transition: transform 0.3s ease;
  }

  .wr-card.wr-card--stable .wr-card__address-bar:hover .wr-card__address-icon {
    transform: translateY(-1px);
  }

  .wr-card.wr-card--stable .wr-card__address-value {
    font-size: 13px;
    font-weight: 500;
    color: var(--foodord-address-bar-text, #1e293b);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .wr-card.wr-card--stable .wr-card__address-change {
    font-size: 11px;
    font-weight: 600;
    color: var(--foodord-address-bar-change-color, #64748b);
    border: 1px solid var(--foodord-address-bar-change-border, #e2e8f0);
    background: var(--foodord-address-bar-change-bg, #f8fafc);
    padding: 3px 8px;
    border-radius: 6px;
    transition: all 0.2s ease;
  }

  .wr-card.wr-card--stable .wr-card__address-bar:hover .wr-card__address-change {
    background: var(--foodord-address-bar-change-hover-bg, #f1f5f9);
    color: var(--foodord-address-bar-change-hover-color, #1e293b);
    border-color: var(--foodord-address-bar-change-hover-border, #cbd5e1);
  }

  /* Force header/body to align right under toggle for stable variant */
  body:not(.wp-admin) .wr-card.wr-card--stable.has-mode-toggle .wr-card__header {
    top: 0;
  }

  body:not(.wp-admin) .wr-card.wr-card--stable.has-mode-toggle .wr-card__body {
    margin-top: 0;
  }

  /* Pickup: hard-hide address bar with no residual spacing */
  .wr-card.wr-card--stable.is-pickup .wr-card__address-bar {
    display: none;
    height: 0;
    margin: 0;
    padding: 0;
    border: 0;
  }

  /* Sticky: header stays at top, only top container shifts below nav */
  .foodord-scroll-nav.is-sticky~.site-main .wr-card.wr-card--stable.has-mode-toggle .wr-card__header,
  body.woocommerce-cart .foodord-scroll-nav.is-sticky~.site-main .wr-card.wr-card--stable.has-mode-toggle .wr-card__header {
    top: 0;
  }

  .foodord-scroll-nav.is-sticky~.site-main .wr-card.wr-card--stable.has-mode-toggle .wr-card__body,
  body.woocommerce-cart .foodord-scroll-nav.is-sticky~.site-main .wr-card.wr-card--stable.has-mode-toggle .wr-card__body {
    margin-top: 0;
  }

  /* Ensure no gap between toggle and address bar when sticky */
  .foodord-scroll-nav.is-sticky~.site-main .wr-card.wr-card--stable.has-mode-toggle .wr-card__address-bar,
  body.woocommerce-cart .foodord-scroll-nav.is-sticky~.site-main .wr-card.wr-card--stable.has-mode-toggle .wr-card__address-bar {
    margin-top: 0;
  }

  /* Push the top container below sticky nav with eased motion */
  .foodord-scroll-nav.is-sticky~.site-main .wr-card.wr-card--stable .wr-card__top,
  body.woocommerce-cart .foodord-scroll-nav.is-sticky~.site-main .wr-card.wr-card--stable .wr-card__top {
    margin-top: 56px;
  }

  .has-foodord-sidebar .foodord-scroll-nav.is-sticky~.site-main .foodord-layout__sidebar .wr-card.wr-card--stable .wr-card__top,
  body.woocommerce-cart.has-foodord-sidebar .foodord-scroll-nav.is-sticky~.site-main .foodord-layout__sidebar .wr-card.wr-card--stable .wr-card__top {
    margin-top: 0;
  }

  /* Remove legacy address-bar push under absolute toggle for stable layout */
  body:not(.wp-admin) .wr-card.wr-card--stable.has-mode-toggle .wr-card__address-bar {
    margin-top: 0;
  }
}

/* Closed store toast */
.foodord-store-toast {
  position: fixed;
  left: 50%;
  bottom: calc(16px + env(safe-area-inset-bottom, 0px));
  transform: translate(-50%, 140%);
  width: min(92vw, 440px);
  max-width: 440px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem;
  background: #16181d;
  border: 1px solid #2a2f37;
  border-radius: 12px;
  padding: 0.75rem 0.9rem;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
  letter-spacing: 0.01em;
  z-index: 10060;
  opacity: 0;
  pointer-events: none;
  transition: transform 0.28s ease, opacity 0.22s ease;
  box-sizing: border-box;
}

@media (min-width: 769px) {
  .foodord-store-toast {
    width: min(88vw, 640px);
    max-width: 640px;
  }
}

.foodord-store-toast.is-visible {
  transform: translate(-50%, 0);
  opacity: 1;
  pointer-events: auto;
}

.foodord-store-toast__message {
  flex: 1;
  font-size: 14px;
  font-weight: 400;
  color: #e9edf2;
  line-height: 1.4;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 1;
  line-clamp: 1;
}

@media (min-width: 769px) {
  .foodord-store-toast__message {
    display: block;
    overflow: visible;
    text-overflow: clip;
    white-space: normal;
    overflow-wrap: break-word;
    -webkit-line-clamp: unset;
    line-clamp: unset;
  }
}

@media (max-width: 768px) {
  .foodord-store-toast__message {
    display: block;
    overflow: visible;
    text-overflow: clip;
    white-space: normal;
    overflow-wrap: break-word;
    -webkit-line-clamp: unset;
    line-clamp: unset;
  }
}

.foodord-store-toast__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  color: #ff5a8f;
}

.foodord-store-toast__icon svg {
  width: 100%;
  height: 100%;
  display: block;
}

.foodord-store-toast__close {
  display: inline-grid;
  place-items: center;
  width: 1.95rem;
  height: 1.95rem;
  border: 1px solid #3a404b;
  border-radius: 999px;
  color: #dbe2ea;
  background: #232832;
  padding: 0;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
  flex-shrink: 0;
}

.foodord-store-toast__close svg {
  width: 22px;
  height: 22px;
  display: block;
}

.foodord-store-toast__close:hover {
  background: #2b313c;
  transform: scale(1.02);
}

@media (max-width: 768px) {
  .foodord-store-toast {
    width: calc(100vw - 24px);
    max-width: calc(100vw - 24px);
    bottom: calc(12px + env(safe-area-inset-bottom, 0px));
    padding: 0.72rem 0.82rem;
  }
}

/* =============================
   Location Modal (frontend)
   ============================= */
#foodord-location-modal {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  background: var(--foodord-location-modal-overlay, rgba(0, 0, 0, 0.5));
  backdrop-filter: blur(8px);
  z-index: 10080;
}

#foodord-location-modal.is-open {
  display: flex;
}

#foodord-location-modal .foodord-modal__content {
  width: 94%;
  max-width: 580px;
  background: var(--foodord-location-modal-bg, #ffffff);
  border: 1px solid var(--foodord-location-modal-border, rgba(226, 232, 240, 0.6));
  border-radius: 4px;
  overflow: visible;
  transform: translateY(12px) scale(0.96);
  opacity: 0;
  backdrop-filter: blur(10px);
}

#foodord-location-modal.is-open .foodord-modal__content {
  transform: translateY(0) scale(1);
  opacity: 1;
  animation: wrcModalIn 240ms cubic-bezier(0.4, 0, 0.2, 1) both;
}

#foodord-location-modal .foodord-modal__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 24px;
  border-bottom: 1px solid var(--foodord-location-modal-border-soft, rgba(226, 232, 240, 0.4));
  background: var(--foodord-location-modal-header-bg, #ffffff);
}

#foodord-location-modal .foodord-modal__title {
  margin: 0;
  font-weight: 600;
  font-size: 16px;
  color: var(--foodord-location-modal-title, #0f172a);
  line-height: 1.4;
  letter-spacing: -0.01em;
}

#foodord-location-modal .foodord-modal__close {
  appearance: none;
  background: transparent;
  border: 0;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

#foodord-location-modal .foodord-modal__close:hover {
  background: var(--foodord-location-modal-close-hover-bg, rgba(0, 0, 0, 0.08));
  transform: scale(1.05);
}

#foodord-location-modal .foodord-modal__close:active {
  transform: scale(0.95);
}

#foodord-location-modal .foodord-modal__close-icon {
  position: relative;
  width: 24px;
  height: 24px;
  color: var(--foodord-location-modal-close-color, #4b5563);
}

#foodord-location-modal .foodord-modal__close-icon::before,
#foodord-location-modal .foodord-modal__close-icon::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 18px;
  height: 2px;
  background: currentColor;
  transform-origin: center;
}

#foodord-location-modal .foodord-modal__close-icon::before {
  transform: translate(-50%, -50%) rotate(45deg);
}

#foodord-location-modal .foodord-modal__close-icon::after {
  transform: translate(-50%, -50%) rotate(-45deg);
}

#foodord-location-modal .foodord-modal__body {
  padding: 12px 24px;
  background: var(--foodord-location-modal-body-bg, #ffffff);
  overflow: visible;
}

#foodord-location-modal .foodord-modal__desc {
  font-size: 14px;
  font-weight: 400;
  line-height: 1.6;
  color: var(--foodord-location-modal-muted, #64748b);
  margin: 0 0 20px 0;
}

#foodord-location-modal .foodord-radius-hint {
  margin: 0 0 12px 0;
  font-size: 13px;
  color: var(--foodord-location-modal-muted, #64748b);
  line-height: 1.5;
}

#foodord-radius-feedback {
  margin-top: 8px;
}

#foodord-location-modal .foodord-form-row {
  margin-bottom: 18px;
}

#foodord-location-modal .foodord-form-label {
  display: block;
  margin-bottom: 8px;
  font-size: 14px;
  font-weight: 500;
  color: var(--foodord-location-modal-label, #374151);
  line-height: 1.5;
}

#foodord-location-modal .foodord-input-with-clear {
  position: relative;
}

#foodord-location-modal .foodord-input-with-clear .foodord-form-input {
  padding-right: 48px;
}

#foodord-location-modal .foodord-input-clear {
  position: absolute;
  top: 50%;
  right: 12px;
  transform: translateY(-50%);
  width: 34px;
  height: 34px;
  border: none;
  background: transparent;
  color: var(--foodord-location-modal-clear, #475569);
  border-radius: 999px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.15s ease, color 0.15s ease;
}

#foodord-location-modal .foodord-input-clear span {
  font-size: 22px;
  font-weight: 300;
  line-height: 1;
  pointer-events: none;
}

#foodord-location-modal .foodord-input-clear.is-hidden {
  display: none;
}

#foodord-location-modal .foodord-form-input {
  font-size: 14px;
  width: 100%;
  height: 44px;
  padding: 10px 14px;
  border: 1px solid var(--foodord-location-modal-input-border, rgba(226, 232, 240, 0.6));
  border-radius: 4px;
  background: var(--foodord-location-modal-input-bg, #ffffff);
  color: var(--foodord-location-modal-input-text, #323232);
  outline: none;
  box-sizing: border-box;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  line-height: 1.5;
}

#foodord-location-choice.foodord-form-input {
  background-image: var(--foodord-location-select-arrow, url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='none' stroke='%23323333' stroke-width='1.4' stroke-linecap='round' stroke-linejoin='round' d='M4 6l4 4 4-4'/%3E%3C/svg%3E"));
  background-repeat: no-repeat;
  background-size: 14px 14px;
  background-position: right 18px center;
  padding-right: 46px;
  appearance: none;
  cursor: pointer;
}

#foodord-location-modal .foodord-form-feedback {
  margin-top: 16px;
  font-size: 13px;
  font-weight: 400;
  line-height: 1.5;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 4px;
  animation: foodord-feedback-fade 0.3s ease-out;
}

#foodord-location-modal .foodord-form-feedback:empty {
  display: none;
}

#foodord-location-modal .foodord-form-feedback.is-success {
  color: #059669;
}

#foodord-location-modal .foodord-form-feedback.is-error {
  color: #dc2626;
}

#foodord-location-modal .foodord-form-feedback::before {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

#foodord-location-modal .foodord-form-feedback.is-success::before {
  background-color: #10b981;
}

#foodord-location-modal .foodord-form-feedback.is-error::before {
  background-color: #ef4444;
}

@keyframes foodord-feedback-fade {
  from {
    opacity: 0;
    transform: translateY(4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

#foodord-location-modal .foodord-modal__actions {
  display: flex;
  width: 100%;
  padding: 12px 24px;
  border-top: 1px solid var(--foodord-location-modal-border-soft, rgba(226, 232, 240, 0.4));
  background: var(--foodord-location-modal-actions-bg, #ffffff);
  box-sizing: border-box;
}

#foodord-location-modal .foodord-modal__button {
  appearance: none;
  border: 0;
  border-radius: 4px;
  height: 44px;
  padding: 0 20px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.01em;
}

#foodord-location-modal .foodord-modal__button--cancel {
  display: none;
}

#foodord-location-modal .foodord-modal__button--confirm {
  width: 100%;
  background: var(--button-bg, #ea004b);
  color: #ffffff;
}

#foodord-location-modal .foodord-modal__button--confirm:hover {
  background: var(--button-on-hover, #c70040);
}

#foodord-location-modal .foodord-modal__button--confirm.is-loading {
  position: relative;
  pointer-events: none;
  color: transparent;
}

#foodord-location-modal .foodord-modal__button--confirm.is-loading::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 34px;
  height: 8px;
  transform: translate(-50%, -50%);
  border-radius: 999px;
  background:
    radial-gradient(circle, rgba(255, 255, 255, 0.95) 0 2px, transparent 2.5px) 0 50% / 10px 8px no-repeat,
    radial-gradient(circle, rgba(255, 255, 255, 0.95) 0 2px, transparent 2.5px) 12px 50% / 10px 8px no-repeat,
    radial-gradient(circle, rgba(255, 255, 255, 0.95) 0 2px, transparent 2.5px) 24px 50% / 10px 8px no-repeat;
  animation: foodord-location-button-dots 1s ease-in-out infinite;
}

@keyframes foodord-location-button-dots {
  0% {
    opacity: 0.45;
  }

  50% {
    opacity: 1;
  }

  100% {
    opacity: 0.45;
  }
}

@keyframes wrcModalIn {
  from {
    opacity: 0;
    transform: translateY(12px) scale(0.96);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@media (max-width: 1024px) {
  #foodord-location-modal .foodord-modal__content {
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
    border-radius: 0;
    border: none;
    display: flex;
    flex-direction: column;
    margin: 0;
  }

  #foodord-location-modal .foodord-modal__body {
    flex: 1 1 auto;
    overflow-y: auto;
  }

  #foodord-location-modal .foodord-modal__actions {
    margin-top: auto;
    padding-bottom: calc(12px + env(safe-area-inset-bottom, 0px));
  }

  /* Force Google PAC to layout normally on mobile */
  #foodord-location-modal .foodord-pac-container {
    position: relative;
    top: auto;
    left: auto;
    width: 100%;
    max-width: 100%;
    min-width: 100%;
    max-height: none;
    overflow: visible;
    box-shadow: none;
    border: none;
    margin-top: 12px;
    background: transparent;
  }

  /* Prevent iOS zoom by ensuring 16px input font size on <= 1024px */
  #foodord-location-modal .foodord-form-input {
    font-size: 16px;
  }
}

/* FoodOrd: Checkout lock styling for City/Postcode (merged) */
.foodord-locked-field label,
.foodord-locked-input,
.wc-block-components-address-form__city .foodord-locked-input,
.wc-block-components-address-form__postcode .foodord-locked-input {
  opacity: 0.6;
  cursor: not-allowed;
}

.foodord-locked-input {
  background-color: #f5f5f5;
  border-color: #e0e0e0;
  pointer-events: none;
}

/* Dim container rows and position relative for icon */
.foodord-locked-container {
  opacity: 0.6;
  position: relative;
  overflow: visible;
}

.woocommerce .form-row,
.woocommerce form .form-row,
.wc-block-components-address-form,
.wc-block-components-form,
.wc-block-checkout__form {
  overflow: visible;
}

/* Leave room for the icon inside inputs */
.foodord-locked-container input[type="text"],
.foodord-locked-container input[type="tel"],
.foodord-locked-container input[type="search"],
.foodord-locked-container .wc-block-components-text-input input,
.foodord-locked-container .wc-block-components-address-form input {
  padding-right: 2rem;
}

/* Input wrapper for icon positioning */
.foodord-input-wrap {
  position: relative;
  overflow: visible;
}

.foodord-lock-shell {
  display: block;
  width: 100%;
}

/* Lock icon inside input wrapper */
.foodord-input-wrap>.foodord-lockmark {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: help;
  z-index: 1000;
  /* above input and form elements */
}

/* Tooltip styling (anchored to icon via ::after) */
.foodord-input-wrap>.foodord-lockmark::after {
  content: attr(data-tip);
  position: absolute;
  right: 0;
  left: auto;
  bottom: calc(100% + 8px);
  top: auto;
  font-size: 12px;
  line-height: 1.4;
  color: #ffffff;
  background: #333333;
  padding: 8px 10px;
  border-radius: 4px;
  display: block;
  width: 260px;
  max-width: min(90vw, 320px);
  white-space: normal;
  box-shadow: 0 6px 20px rgba(0, 0, 0, .15);
  opacity: 0;
  pointer-events: none;
  transition: opacity .15s ease-in-out;
  z-index: 9999;
}

.foodord-input-wrap>.foodord-lockmark:hover::after {
  opacity: 1;
  pointer-events: auto;
}

@media (max-width: 1024px) {

  /* Disable lockmark tooltip on WooCommerce Blocks checkout for tablet/mobile. */
  body.woocommerce-checkout .wc-block-checkout__form .foodord-input-wrap>.foodord-lockmark {
    cursor: default;
  }

  body.woocommerce-checkout .wc-block-checkout__form .foodord-input-wrap>.foodord-lockmark::after {
    display: none;
  }
}

body.foodord-pickup-mode #billing_address_1_field,
body.foodord-pickup-mode #billing_address_2_field,
body.foodord-pickup-mode #billing_city_field,
body.foodord-pickup-mode #billing_postcode_field,
body.foodord-pickup-mode #shipping_address_1_field,
body.foodord-pickup-mode #shipping_address_2_field,
body.foodord-pickup-mode #shipping_city_field,
body.foodord-pickup-mode #shipping_postcode_field,
body.foodord-pickup-mode .wc-block-components-address-form [data-field="address_1"],
body.foodord-pickup-mode .wc-block-components-address-form [data-field="address_2"],
body.foodord-pickup-mode .wc-block-components-address-form [data-field="city"],
body.foodord-pickup-mode .wc-block-components-address-form [data-field="postcode"] {
  display: none;
}

/* Hide product description under cart/checkout line items (Blocks + Classic) */
/* WooCommerce Blocks (Cart/Checkout) */
/* Defensive: hide any description-like element within product details/metadata (Blocks) */
body.woocommerce-checkout .wc-block-components-product-details [class*="description"],
body.woocommerce-checkout .wc-block-components-product-metadata [class*="description"],
body.woocommerce-cart .wc-block-components-product-details [class*="description"],
body.woocommerce-cart .wc-block-components-product-metadata [class*="description"],
.wp-block-woocommerce-checkout-order-summary-block .wc-block-components-product-details [class*="description"],
.wp-block-woocommerce-checkout-order-summary-block .wc-block-components-product-metadata [class*="description"] {
  display: none;
}

/* Classic (shortcode) checkout/cart tables */
/* Fallback for themes injecting plain <p> under product-name (avoid wc-item-meta) */
.woocommerce-checkout table.shop_table td.product-name>p:not(.wc-item-meta),
.woocommerce-cart table.shop_table td.product-name>p:not(.wc-item-meta) {
  display: none;
}

.wc-block-components-checkout-step__heading
.wc-block-components-title.wc-block-components-title {
  margin-top: 1em;
}

/* FoodOrd confirmation status */
.foodord-confirm-status {
  margin: 16px 0;
  padding: 12px 16px;
  background: #ffffff;
  border: 1px solid var(--border-color, #e5e7eb);
  border-radius: 10px;
  font-weight: 600;
  color: var(--text-color, #111827);
  line-height: 1.4;
}

/* =============================
   Time To Deliver (Frontend)
   ============================= */
.foodord-ttd {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 16px;
  background: var(--foodord-ttd-panel-bg, #ffffff);
  border: 1px solid var(--foodord-ttd-panel-border, rgb(226 226 226));
  border-radius: 4px;
}

.foodord-ttd__label {
  font-size: 14px;
  font-weight: 600;
  color: var(--foodord-ttd-label-color, #0f172a);
  margin-bottom: 4px;
  display: block;
}

.foodord-ttd__label-group {
  display: flex;
  flex-direction: column;
  gap: 4px;
  position: relative;
}

.foodord-ttd__native-select {
  display: none;
}

.foodord-ttd__dropdown {
  position: relative;
}

.foodord-ttd__trigger {
  width: 100%;
  min-height: 48px;
  padding: 0 16px 0 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: var(--foodord-ttd-trigger-bg, #ffffff);
  color: var(--foodord-ttd-trigger-text, #0f172a);
  border: 1px solid var(--foodord-ttd-trigger-border, #e2e8f0);
  border-radius: 4px;
  box-shadow: var(--foodord-ttd-trigger-shadow, 0 1px 2px rgb(156 156 156 / 55%));
  font-size: 15px;
  font-weight: 500;
  text-align: left;
  cursor: pointer;
  outline: none;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.foodord-ttd__trigger:hover {
  background: var(--foodord-ttd-trigger-hover-bg, var(--foodord-ttd-trigger-bg, #ffffff));
  border-color: var(--foodord-ttd-trigger-hover-border, #cbd5e1);
}

.foodord-ttd__trigger:disabled {
  background: var(--foodord-ttd-trigger-disabled-bg, #ffffff);
  color: var(--foodord-ttd-trigger-disabled-text, #94a3b8);
  cursor: not-allowed;
  opacity: 0.7;
}

.foodord-ttd__trigger-label {
  font-size: 13px;
  min-width: 0;
  flex: 1;
}

.foodord-ttd__trigger-icon {
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
  color: var(--foodord-ttd-trigger-icon, #0f172a);
  transition: transform 0.22s ease;
}

.foodord-ttd__trigger-icon svg {
  display: block;
  width: 100%;
  height: 100%;
}

.foodord-ttd__dropdown.is-open .foodord-ttd__trigger-icon {
  transform: rotate(180deg);
}

.foodord-ttd__menu {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  right: 0;
  z-index: 30;
  max-height: 260px;
  padding: 6px;
  overflow-y: auto;
  background: var(--foodord-ttd-menu-bg, #ffffff);
  border: 1px solid var(--foodord-ttd-menu-border, #e2e8f0);
  border-radius: 14px;
  box-shadow: var(--foodord-ttd-menu-shadow, 0 18px 34px -18px rgb(15 23 42 / 22%));
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(-8px) scale(0.98);
  transform-origin: top center;
  transition: opacity 0.16s ease, transform 0.22s cubic-bezier(0.22, 1, 0.36, 1), visibility 0.16s ease;
}

.foodord-ttd__dropdown.is-open .foodord-ttd__menu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}

.foodord-ttd__dropdown--upward .foodord-ttd__menu {
  top: auto;
  bottom: calc(100% + 10px);
  transform: translateY(8px) scale(0.98);
  transform-origin: bottom center;
}

.foodord-ttd__dropdown.is-open.foodord-ttd__dropdown--upward .foodord-ttd__menu {
  transform: translateY(0) scale(1);
}

.foodord-ttd__option {
  width: 100%;
  min-height: 36px;
  padding: 0 10px;
  display: flex;
  align-items: center;
  background: var(--foodord-ttd-option-bg, #ffffff);
  border: 0;
  border-radius: 10px;
  color: var(--foodord-ttd-option-text, #0f172a);
  font-size: 14px;
  font-weight: 500;
  text-align: left;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.foodord-ttd__option:hover {
  background: var(--foodord-ttd-option-hover-bg, #f8fafc);
}

.foodord-ttd__option.is-selected {
  background: var(--foodord-ttd-option-selected-bg, #fdf2f8);
  color: var(--foodord-ttd-option-selected-text, var(--primary-color, #ea004b));
}

.foodord-ttd__option:disabled {
  cursor: default;
  opacity: 0.65;
}

.foodord-ttd__select {
  appearance: none;
  width: 100%;
  height: 48px;
  padding: 0 16px 0 14px;
  background-color: var(--foodord-ttd-input-bg, #ffffff);
  color: var(--foodord-ttd-input-text, #0f172a);
  border: 1px solid var(--foodord-ttd-input-border, #e2e8f0);
  border-radius: 10px;
  box-shadow: var(--foodord-ttd-input-shadow, 0 1px 2px rgb(156 156 156 / 55%));
  font-size: 15px;
  font-weight: 500;
  background-image: var(--foodord-ttd-input-arrow, url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%230f172a' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e"));
  background-position: right 14px center;
  background-repeat: no-repeat;
  background-size: 16px 16px;
  transition: border-color 0.15s ease, background-color 0.15s ease;
  cursor: pointer;
}

.foodord-ttd__select:hover {
  border-color: var(--foodord-ttd-input-hover-border, #cbd5e1);
  background-color: var(--foodord-ttd-input-hover-bg, var(--foodord-ttd-input-bg, #ffffff));
}

.foodord-ttd__select:disabled {
  background-color: var(--foodord-ttd-input-disabled-bg, #f1f5f9);
  color: var(--foodord-ttd-input-disabled-text, #94a3b8);
  cursor: not-allowed;
  opacity: 0.7;
}

.foodord-ttd__date {
  appearance: none;
  width: 100%;
  height: 48px;
  padding: 0 16px 0 14px;
  background-color: var(--foodord-ttd-input-bg, #ffffff);
  color: var(--foodord-ttd-input-text, #0f172a);
  border: 1px solid var(--foodord-ttd-input-border, #e0e0e0);
  border-radius: 10px;
  box-shadow: var(--foodord-ttd-input-shadow, 0 1px 2px rgb(156 156 156 / 55%));
  font-size: 15px;
  font-weight: 500;
  background-image: var(--foodord-ttd-input-arrow, url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%230f172a' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e"));
  background-position: right 14px center;
  background-repeat: no-repeat;
  background-size: 16px 16px;
  transition: border-color 0.15s ease, background-color 0.15s ease;
  cursor: pointer;
}

.foodord-ttd__date:hover {
  border-color: var(--foodord-ttd-input-hover-border, #cbd5e1);
  background-color: var(--foodord-ttd-input-hover-bg, var(--foodord-ttd-input-bg, #ffffff));
}

.foodord-ttd__date:disabled {
  background-color: var(--foodord-ttd-input-disabled-bg, #f1f5f9);
  color: var(--foodord-ttd-input-disabled-text, #94a3b8);
  cursor: not-allowed;
  opacity: 0.7;
}

@media (min-width: 640px) {
  .foodord-ttd {
    flex-direction: row;
    align-items: center;
    gap: 16px;
    padding: 18px 20px;
  }

  .foodord-ttd__label-group {
    flex: 1;
    min-width: 0;
  }
}

/* Lazy image animation */
.foodord-lazy-image {
  opacity: 0;
  transform: scale(1.02);
  transition: opacity 0.35s ease, transform 0.35s ease;
  will-change: opacity, transform;
}

.foodord-lazy-image.foodord-lazy-loaded {
  opacity: 1;
  transform: none;
}

body .wr-card .wr-card__mode-group .wr-card__mode-btn:active,
body .foodord-mode-toggle-mobile .wr-card__mode-group .wr-card__mode-btn:active {
  outline: none;
  box-shadow: none;
}
