/* Home Banner Info Modal */
:root {
  --background-color: #f7f7f7;
  --primary-color: #c9386f;
  --primary-hover: #b92a61;
  --text-color: #323232;
  --text-hover: #313131;
  --secondary-text: #6b6b6b;
  --button-bg: #c9386f;
  --button-text-color: #ffffff;
  --button-on-hover: #b92a61;
  --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;
  /* Higher than product modal */
  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;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 0;
  margin: 0;
}

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

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

.foodord-banner-modal-close:focus {
  outline: none;
  background: rgba(226, 232, 240, 1);
}

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

/* Typography for injected content */
.foodord-banner-modal-body .foodord-info-title {
  display: block;
  margin: 0 0 16px 0;
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.015em;
  background: linear-gradient(135deg, #0f172a 0%, #334155 100%);
  background-clip: text;
  color: transparent;
}

.foodord-banner-modal-body .foodord-info-text {
  margin: 0 0 12px 0;
  font-size: 14px;
  line-height: 1.6;
  color: #475569;
  white-space: pre-wrap;
}

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

/* Compact design for company info */
.foodord-banner-modal-body .foodord-info-text:first-of-type {
  padding-bottom: 2px;
}

/* Phone link alignment fix */
.foodord-banner-modal-body .foodord-info-phone-text {
  margin: 0;
  padding: 0;
}

/* Google Maps styling */
.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;
}

/* Full-bleed map at top of modal */
.foodord-banner-modal-map-wrap {
  margin: 0;
}

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

/* Hours block - Clean minimal design */
.wr-hours {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid #e5e7eb;
}

.wr-hours__title {
  margin: 0 0 12px 0;
  font-size: 16px;
  font-weight: 700;
  color: #111827;
  letter-spacing: -0.01em;
}

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

.wr-hours__tab {
  flex: 1;
  padding: 6px 12px;
  border-radius: 6px;
  border: none;
  background: #fff;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  text-align: center;
  transition: all .2s ease;
}

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

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

.wr-hours__list li.current-day-open:hover {
  background: #bbf7d0;
}

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


.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 {
  margin: 0 0 14px 0;
  font-size: 16px;
  font-weight: 700;
  color: #111827;
  letter-spacing: -0.01em;
}

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

.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);
  animation: foodord-campaign-radar 2.5s cubic-bezier(0.36, 0.11, 0.89, 0.32) infinite;
}

.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;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: foodord-campaign-wobble 5s ease-in-out infinite;
}

.foodord-banner-campaigns-btn::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  background: inherit;
  z-index: -1;
  opacity: 0;
  animation: foodord-campaign-ping 2.5s cubic-bezier(0, 0, 0.2, 1) infinite;
}

@keyframes foodord-campaign-radar {
  0% {
    background-color: #c9386f;
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(201, 56, 111, 0.4);
  }

  15% {
    transform: scale(1.18);
  }

  30% {
    background-color: #b92a61;
    transform: scale(1);
    box-shadow: 0 0 0 15px rgba(201, 56, 111, 0);
  }

  100% {
    background-color: #c9386f;
  }
}

@keyframes foodord-campaign-ping {
  0% {
    transform: scale(1);
    opacity: 0.8;
    background-color: #c9386f;
  }

  70%,
  100% {
    transform: scale(2.8);
    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);
  box-shadow:
    0 12px 40px rgba(0, 0, 0, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.5),
    inset 0 -1px 0 rgba(255, 255, 255, 0.15);
}

.foodord-banner-campaigns-btn:active {
  animation-play-state: paused;
  transform: translateY(-1px) scale(1.02);
  box-shadow:
    0 6px 24px rgba(0, 0, 0, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.3),
    inset 0 -1px 0 rgba(255, 255, 255, 0.05);
}

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

.foodord-banner-campaigns-btn:focus {
  outline: none;
}

.foodord-banner-campaigns-btn:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.6);
  outline-offset: 2px;
}

/* 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, var(--primary-color), var(--primary-hover));
  color: #ffffff;
  font-weight: 600;
  font-size: 16px;
  backdrop-filter: blur(5px);
  border: 2px solid rgba(255, 255, 255, 0.2);
}

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

.foodord-campaign-text {
  font-size: 15px;
  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;
}

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