/* Home Banner Info Modal */
: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;
  --header-bg: #ffffff;
  --footer-bg: #ffffff;
  --footer-bottom-bg: #ffffff;
  --border-color: #f4f4f4;
}

body.foodord-banner-modal-open {
  overflow: hidden;
}

.foodord-banner-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
}

.foodord-banner-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
}

.foodord-banner-modal-dialog {
  position: relative;
  background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
  width: min(92vw, 520px);
  max-height: 85vh;
  border-radius: 16px;
  border: 1px solid rgba(226, 232, 240, 0.6);
  backdrop-filter: blur(10px);
  overflow: auto;
  z-index: 1;
  transform: translateY(10px) scale(.98);
  opacity: 0;
  transition: opacity .18s ease, transform .18s ease;
}

.foodord-banner-modal-overlay.is-visible .foodord-banner-modal-dialog {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.foodord-banner-modal-header {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 4;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 0;
  margin: 0;
}

.foodord-banner-modal-dialog.has-sticky-info-title .foodord-banner-modal-header {
  opacity: 0;
  pointer-events: none;
}

.foodord-banner-modal-close {
  border: none;
  background: #ffffff;
  color: #64748b;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 0;
  transition: all 0.2s ease;
  backdrop-filter: blur(5px);
}

.foodord-banner-modal-close__icon {
  display: block;
  width: 24px;
  height: 24px;
  flex: 0 0 24px;
  pointer-events: none;
}

.foodord-banner-modal-close:hover {
  background: transparent;
  color: #0f172a;
}

.foodord-banner-modal-body {
  padding: 24px 28px 28px 28px;
}

.foodord-info-title-sentinel {
  display: block;
  height: 0;
  pointer-events: none;
}

@media (max-width: 1024px) {
  .foodord-banner-modal-overlay {
    align-items: stretch;
    justify-content: stretch;
  }

  .foodord-banner-modal-dialog {
    width: 100vw;
    max-width: none;
    height: 100vh;
    height: 100dvh;
    max-height: none;
    border: none;
    border-radius: 0;
  }
}

/* Typography for injected content */
.foodord-banner-modal-body .foodord-info-title {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin: 0 0 24px 0;
  padding-bottom: 20px;
  border-bottom: 1px solid #f1f5f9;
  background: linear-gradient(135deg, #0f172a 0%, #334155 100%);
  background-clip: text;
  color: transparent;
  position: sticky;
  top: 0;
  z-index: 3;
  transition: padding 0.2s ease, margin 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.foodord-banner-modal-body .foodord-info-title.sticky-active {
  margin: 0 -28px 24px -28px;
  padding: 20px 18px 20px 28px;
  background: #ffffff;
  background-clip: border-box;
  color: #0f172a;
  border-bottom-color: #e5e7eb;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.08);
}

.foodord-info-title__close {
  display: none;
  align-items: center;
  justify-content: center;
  flex: 0 0 36px;
  width: 36px;
  height: 36px;
  margin-left: auto;
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-radius: 50%;
  background: #f8fafc;
  color: #64748b;
  cursor: pointer;
  line-height: 0;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.foodord-banner-modal-body .foodord-info-title.sticky-active .foodord-info-title__close {
  display: inline-flex;
}

.foodord-info-title__close:hover {
  background: #ffffff;
  border-color: #cbd5e1;
  color: #0f172a;
}

.foodord-info-title__close .foodord-banner-modal-close__icon {
  width: 22px;
  height: 22px;
  flex-basis: 22px;
}

.foodord-info-title__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: linear-gradient(135deg, var(--primary-color), var(--primary-hover));
  color: #ffffff;
  border-radius: 6px;
  flex-shrink: 0;
  background-clip: initial;
}

.foodord-info-title__icon svg {
  width: 20px;
  height: 20px;
}

.foodord-banner-modal-body .foodord-info-text {
  margin: 0 0 10px 0;
  font-size: 14px;
  line-height: 1.6;
  color: #475569;
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.foodord-info-text__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  background: #f8fafc;
  color: #64748b;
  border-radius: 7px;
  border: 1px solid #f1f5f9;
  flex-shrink: 0;
  margin-top: -2px;
}

.foodord-info-text__icon svg {
  width: 14px;
  height: 14px;
}

.foodord-banner-modal-body .foodord-info-text:last-child {
  margin-bottom: 0;
}

.foodord-banner-modal-body .foodord-info-text:first-of-type {
  padding-bottom: 2px;
}

.foodord-banner-modal-body .foodord-info-phone-text {
  margin: 0;
  padding: 0;
}

.foodord-banner-modal-body .foodord-google-map {
  margin-top: 12px;
  border-radius: 8px;
  overflow: hidden;
}

.foodord-banner-modal-body .foodord-google-map iframe {
  width: 100%;
  height: 300px;
  border: 0;
  border-radius: 8px;
  display: block;
}

.foodord-banner-modal-map-wrap {
  margin: 0;
}

.foodord-banner-modal-map-wrap iframe {
  width: 100%;
  height: 300px;
  border: 0;
  display: block;
  border-radius: 0;
}

.wr-hours {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid #e5e7eb;
}

.wr-hours__title {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 18px 0;
  font-size: 16px;
  font-weight: 700;
  color: #0f172a;
  letter-spacing: -0.02em;
}

.wr-hours__title-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background: #f8fafc;
  color: var(--primary-color);
  border-radius: 9px;
  border: 1px solid #f1f5f9;
  flex-shrink: 0;
}

.wr-hours__title-icon svg {
  width: 18px;
  height: 18px;
}

.wr-hours__segmented {
  display: flex;
  width: 100%;
  gap: 4px;
  background: #f9fafb;
  border: 1px solid #f1f1f1;
  border-radius: 9px;
  margin-bottom: 12px;
}

.wr-hours__tab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  flex: 1;
  padding: 12px;
  border-radius: 9px;
  border: none;
  background: #fff;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  text-align: center;
  transition: all .2s ease;
}

.wr-hours__tab-icon,
.wr-hours__tab svg {
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: currentColor;
}

.wr-hours__tab svg {
  display: block;
}

.wr-hours__tab.is-active {
  background: var(--primary-color);
  color: #fff;
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}

.wr-hours__panel {
  opacity: 0;
  transform: translateY(-4px);
  transition: opacity .2s ease, transform .2s ease;
}

.wr-hours__panel.is-active {
  opacity: 1;
  transform: translateY(0);
}

.wr-hours__panel:not(.is-active) {
  display: none;
}

.wr-hours__week {
  margin: 0;
}

.wr-hours__list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  font-size: 14px;
  gap: 6px;
}

.wr-hours__list li {
  padding: 8px 12px;
  background: #f9fafb;
  border-radius: 6px;
  transition: background .15s ease;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

@media (min-width: 1025px) {
  .wr-hours__list li:hover {
    background: #f3f4f6;
  }
}

/* Current day color coding */
.wr-hours__list li.current-day-open {
  background: #dcfce7;
  border-left: 3px solid #16a34a;
}

@media (min-width: 1025px) {
  .wr-hours__list li.current-day-open:hover {
    background: #bbf7d0;
  }
}

.wr-hours__list li.current-day-closed {
  background: #fef2f2;
  border-left: 3px solid #dc2626;
}


@media (min-width: 1025px) {
  .wr-hours__list li.current-day-closed:hover {
    background: #fecaca;
  }
}

/* Delivery Info Block */
.wr-delivery-info {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid #f3f4f6;
}

.wr-delivery-info__title {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 18px 0;
  font-size: 16px;
  font-weight: 700;
  color: #0f172a;
  letter-spacing: -0.02em;
}

.wr-delivery-info__title-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background: #f8fafc;
  color: var(--primary-color);
  border-radius: 9px;
  border: 1px solid #f1f5f9;
  flex-shrink: 0;
}

.wr-delivery-info__title-icon svg {
  width: 18px;
  height: 18px;
}

.wr-delivery-info__list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 10px;
}

@media (max-width: 1024px) {
  .wr-delivery-info__list {
    grid-template-columns: 1fr;
  }
}

.wr-delivery-info__item {
  padding: 12px 16px;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: all 0.2s ease;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.wr-delivery-info__item:hover {
  border-color: #d1d5db;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  transform: translateY(-1px);
}

.wr-delivery-info__loc {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.wr-delivery-info__city,
.wr-delivery-info__dist {
  font-size: 14px;
  font-weight: 600;
  color: #1f2937;
}

.wr-delivery-info__zip,
.wr-delivery-info__label {
  font-size: 12px;
  color: #6b7280;
}

.wr-delivery-info__meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  text-align: right;
  gap: 2px;
}

.wr-delivery-info__fee {
  font-size: 11px;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  color: #9ca3af;
  white-space: nowrap;
}

.wr-delivery-info__min {
  font-size: 11px;
  color: #9ca3af;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  font-weight: 500;
}

/* --- Campaigns Button --- */
.foodord-banner-campaigns-btn {
  position: absolute;
  right: 76px;
  bottom: 20px;
  width: 42px;
  height: 42px;
  border-radius: 21px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(20px) saturate(180%);
  color: #ffffff;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  z-index: 5;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  overflow: hidden;
}

.foodord-banner-campaigns-btn.is-stopped,
.foodord-banner-campaigns-btn.is-stopped::before,
.foodord-banner-campaigns-btn.is-stopped::after {
  animation: none;
  will-change: auto;
}

.foodord-banner-campaigns-btn::after {
  content: "%";
  font-size: 20px;
  font-weight: 700;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  animation: foodord-campaign-wobble 5s ease-in-out infinite;
  position: relative;
  z-index: 2;
}

.foodord-banner-campaigns-btn::before {
  content: "";
  position: absolute;
  inset: 0;
  background-color: #ea004b;
  border-radius: 50%;
  transform: scale(0);
  opacity: 0;
  z-index: 1;
  animation: foodord-campaign-inner-pulse 3s cubic-bezier(0.25, 1, 0.5, 1) infinite;
}

@keyframes foodord-campaign-inner-pulse {
  0% {
    transform: scale(0);
    opacity: 1;
  }

  6% {
    transform: scale(1.8);
    opacity: 1;
  }

  25%,
  100% {
    transform: scale(2.2);
    opacity: 0;
  }
}



@keyframes foodord-campaign-wobble {

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

  88% {
    transform: rotate(20deg) scale(1.15);
  }

  91% {
    transform: rotate(-20deg) scale(1.15);
  }

  94% {
    transform: rotate(15deg) scale(1.15);
  }

  97% {
    transform: rotate(-10deg) scale(1.15);
  }
}

.foodord-banner-campaigns-btn:hover {
  animation-play-state: paused;
  border-color: rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.25);
  transform: translateY(-2px) scale(1.05);
}

.foodord-banner-campaigns-btn:active {
  animation-play-state: paused;
  transform: translateY(-1px) scale(1.02);
}

/* Handled by .foodord-banner-campaigns-btn::after */

/* Mobile Adjustment */
@media (max-width: 480px) {
  .foodord-banner-campaigns-btn {
    right: 66px;
    bottom: 20px;
  }
}

/* Campaigns List Styles */
.foodord-campaigns-list {
  list-style: none;
  padding: 0;
  margin: 16px 0 0 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.foodord-campaign-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 20px;
  background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
  border-radius: 14px;
  border: 1px solid rgba(226, 232, 240, 0.4);
  transition: all 0.2s ease;
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(5px);
}

.foodord-campaign-item:hover {
  transform: translateY(-1px);
  border-color: rgba(226, 232, 240, 0.8);
  background: linear-gradient(135deg, #fafafa 0%, #f1f5f9 100%);
}

/* Color Coding and Accents */
.foodord-campaign-item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
}

.foodord-campaign-item.type-cart::before {
  background: linear-gradient(180deg, #3b82f6 0%, #2563eb 100%);
}

/* Blue */
.foodord-campaign-item.type-bogo::before {
  background: linear-gradient(180deg, #8b5cf6 0%, #7c3aed 100%);
}

/* Purple */
.foodord-campaign-item.type-delivery::before {
  background: linear-gradient(180deg, #10b981 0%, #059669 100%);
}

/* Green */
.foodord-campaign-item.type-product::before {
  background: linear-gradient(180deg, #f59e0b 0%, #d97706 100%);
}

/* Amber */

/* Icon container */
.foodord-campaign-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  flex-shrink: 0;
  background: linear-gradient(135deg, #39e897, #821ed6);
  color: #ffffff;
  font-weight: 600;
  font-size: 16px;
  backdrop-filter: blur(5px);
  border: none;
}

.foodord-campaign-copy {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.foodord-campaign-text {
  font-size: 14px;
  font-weight: 600;
  color: #1f2937;
  line-height: 1.4;
}

.foodord-campaign-targets {
  font-size: 13px;
  color: #6b7280;
  line-height: 1.4;
}

.foodord-campaign-order-scope {
  font-size: 12px;
  font-weight: 600;
  color: var(--primary-color);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.foodord-campaign-text .woocommerce-Price-amount {
  font-weight: inherit;
  color: inherit;
}

body.foodord-theme-is-scrolling .foodord-banner-modal-overlay a,
body.foodord-theme-is-scrolling .foodord-banner-modal-overlay button,
body.foodord-theme-is-scrolling .foodord-banner-modal-overlay li {
  pointer-events: none;
}
