.spudo-feed-container::before,
.spudo-feed-container::after,
.spudo-feed-container *::before,
.spudo-feed-container *::after,
.spudo-mealbox::before,
.spudo-mealbox::after,
.spudo-mealbox *::before,
.spudo-mealbox *::after,
.spudo-feed-filters-modal::before,
.spudo-feed-filters-modal::after,
.spudo-feed-filters-modal *::before,
.spudo-feed-filters-modal *::after {
  content: none;
}

.spudo-mealbox {
  --spudo-red:          #EF4444;
  --spudo-green:        #16A34A;
  --spudo-green-strong: #15803D;
  --spudo-green-band:   #ECFDF3;
  --spudo-star:         #FBBF24;
  --spudo-star-empty:   #E5E7EB;
  --spudo-text:         #0F172A;
  --spudo-text-strong:  #020617;
  --spudo-text-muted:   #6B7280;
  --spudo-border:       #E5E7EB;
  --spudo-border-soft:  #EEF0F3;

  display: block;
  background: #FFFFFF;
  border: 1px solid var(--spudo-border);
  border-radius: 20px;
  overflow: hidden;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--spudo-text);
  /* v0.67.13 — max-width + margin:auto removed so the card fills
   * its parent width. The intended parent is now a spudo/container
   * block whose `width` attribute (site / full / content) controls
   * the layout. Preserve a modest vertical rhythm between cards. */
  margin-top: 0;
  margin-bottom: 0;
}

.spudo-mealbox .spudo-mealbox-body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: stretch;
  min-height: 440px;
}
@media (max-width: 720px) {
  .spudo-mealbox .spudo-mealbox-body {
    grid-template-columns: 1fr;
    position: relative;
  }
}
.spudo-mealbox .spudo-mealbox-left {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
  position: relative;
  z-index: 2;
}

.spudo-mealbox .spudo-mealbox-header {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  align-self: flex-start;
}
.spudo-mealbox .spudo-mealbox-offer-name {
  display: inline-flex;
  gap: 4px;
  align-items: center;
  background: var(--spudo-green);
  color: #FFFFFF;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.2px;
  padding: 7px 12px;
  border-radius: 8px;
  line-height: 1.2;
  order: 1;
}
.spudo-mealbox .spudo-mealbox-discount-short {
  display: inline-flex;
  gap: 4px;
  align-items: center;
  background: var(--spudo-red);
  color: #FFFFFF;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.4px;
  padding: 7px 14px;
  border-radius: 8px;
  line-height: 1.2;
  order: 2;
}
.spudo-mealbox .spudo-mealbox-categories { display: none; }

.spudo-mealbox .spudo-mealbox-operator {
  font-size: 44px;
  font-weight: 700;
  line-height: 1;
  margin: 4px 0 0;
  color: var(--spudo-text-strong);
  letter-spacing: -1.6px;
}

.spudo-mealbox .spudo-mealbox-rating {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  line-height: 1;
}
.spudo-mealbox .spudo-mealbox-rating-stars {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  font-size: 20px;
  line-height: 1;
  letter-spacing: 0;
}
.spudo-mealbox .spudo-mealbox-rating-stars .spudo-star {
  position: relative;
  display: inline-block;
  line-height: 1;
  color: var(--spudo-star-empty);
}
.spudo-mealbox .spudo-mealbox-rating-stars .spudo-star[data-fill="full"] {
  color: var(--spudo-star);
}
.spudo-mealbox .spudo-mealbox-rating-stars .spudo-star[data-fill="half"]::before {
  content: '★';
  display: block;
  position: absolute;
  inset: 0;
  width: 50%;
  overflow: hidden;
  color: var(--spudo-star);
  pointer-events: none;
}
.spudo-mealbox .spudo-mealbox-rating-value {
  color: var(--spudo-text-strong);
  font-weight: 700;
}
.spudo-mealbox .spudo-mealbox-rating-count {
  color: var(--spudo-text-muted);
  font-weight: 500;
}

.spudo-mealbox .spudo-mealbox-punchline {
  color: var(--spudo-green-strong);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.4;
  margin: 4px 0;
}
.spudo-mealbox .spudo-mealbox-punchline strong { font-weight: 700; }

.spudo-mealbox .spudo-mealbox-bullets-details {
  margin: 0;
}
.spudo-mealbox .spudo-mealbox-bullets-details > summary.spudo-mealbox-bullets-toggle {
  display: none;
  list-style: none;
  cursor: pointer;
}
.spudo-mealbox .spudo-mealbox-bullets-details > summary.spudo-mealbox-bullets-toggle::-webkit-details-marker { display: none; }
.spudo-mealbox ul.spudo-mealbox-bullets {
  list-style: none;
  list-style-type: none;
  padding: 0;
  margin: 4px 0 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.spudo-mealbox ul.spudo-mealbox-bullets li.spudo-mealbox-bullet {
  list-style: none;
  list-style-type: none;
  font-size: 15px;
  color: var(--spudo-text);
  line-height: 1.4;
  font-weight: 500;
  padding: 0;
  margin: 0;
}
.spudo-mealbox ul.spudo-mealbox-bullets li.spudo-mealbox-bullet::before,
.spudo-mealbox ul.spudo-mealbox-bullets li.spudo-mealbox-bullet::marker {
  content: none;
  display: none;
}

@media (min-width: 721px) {
  .spudo-mealbox .spudo-mealbox-bullets-details::details-content {
    display: block;
    content-visibility: visible;
  }
}

.spudo-mealbox .spudo-mealbox-gallery {
  position: relative;
  overflow: hidden;
  height: 440px;
  background: #F1F5F9;
}

.spudo-mealbox .spudo-mealbox-operator-logo {
  position: absolute;
  bottom: 14px;
  right: 14px;
  z-index: 5;
  max-width: 120px;
  max-height: 48px;
  padding: 6px 12px;
  background: rgba(255, 255, 255, 0.94);
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.18);
  object-fit: contain;
  display: block;
}

.spudo-mealbox .spudo-mealbox-gallery::before {
  content: '';
  display: block;
  position: absolute;
  top: 0; left: 0;
  width: 96px; height: 100%;
  background: linear-gradient(to right, #FFFFFF 0%, rgba(255,255,255,0) 100%);
  pointer-events: none;
  z-index: 2;
}

.spudo-mealbox .spudo-mealbox-gallery:not(.splide) {
  display: flex;
}
.spudo-mealbox .spudo-mealbox-gallery:not(.splide) .spudo-mealbox-slide {
  flex: 0 0 100%;
  height: 100%;
}
.spudo-mealbox .spudo-mealbox-gallery:not(.splide) .spudo-mealbox-slide img:not(.spudo-mealbox-operator-logo) {
  width: 100%;
  height: 100%;
  max-height: 100%;
  object-fit: cover;
  object-position: center center;
  display: block;
}

.spudo-mealbox .spudo-mealbox-gallery.splide .splide__track,
.spudo-mealbox .spudo-mealbox-gallery.splide .splide__list {
  height: 100%;
}
.spudo-mealbox .spudo-mealbox-gallery.splide .splide__slide {
  height: 100%;
}
/* v0.67.9 — :not() exclusion so the operator-logo (also an <img>
 * inside the figure since v0.67.7) doesn't inherit the full-cover
 * dish-image sizing. The logo keeps its own max-width/max-height
 * from the .spudo-mealbox-operator-logo rule above. */
.spudo-mealbox .spudo-mealbox-gallery.splide .splide__slide img:not(.spudo-mealbox-operator-logo) {
  width: 100%;
  height: 100%;
  max-height: 100%;
  object-fit: cover;
  object-position: center center;
  display: block;
}

/* v0.67.12 — The figcaption element stays in the DOM so schema.org /
 * Google Images crawlers still see the dish description, but is
 * visually hidden from end users (the dish name is already in alt +
 * title + <meta itemprop="caption">). sr-only pattern keeps it
 * accessible to screen readers without laying out space. */
.spudo-mealbox .spudo-mealbox-slide-caption {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* v0.66.0 — microdata <figure> wrapper around every mealbox slide image.
 * The <figure> wraps <img> + <meta itemprop> nodes (schema.org
 * ImageObject). Zero visual: no margin, inline-block, just so the img
 * stays positioned exactly as before the wrapper was added. <meta>
 * nodes are display:none by UA default but we belt-and-brace it. */
.spudo-mealbox .spudo-mealbox-slide-figure {
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100%;
  display: block;
  /* v0.67.7 — operator logo now sits INSIDE each figure (moved from
   * gallery sibling). position:relative here is what anchors the
   * logo's absolute positioning to the actual image, not the gallery
   * container. Fixes the overlap with the Sammenlign checkbox at the
   * top-right of the card. */
  position: relative;
}
.spudo-mealbox .spudo-mealbox-slide-figure > meta {
  display: none;
}

.spudo-mealbox .spudo-mealbox-gallery.splide .splide__arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.95);
  border: 0;
  padding: 0;
  cursor: pointer;
  z-index: 4;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.18);
  color: #0F172A;
  opacity: 1;
  transition: background-color .15s ease, transform .05s ease;
}
.spudo-mealbox .spudo-mealbox-gallery.splide .splide__arrow:hover:not(:disabled) {
  background: #FFFFFF;
}
.spudo-mealbox .spudo-mealbox-gallery.splide .splide__arrow:disabled {
  opacity: 0;
  pointer-events: none;
}
.spudo-mealbox .spudo-mealbox-gallery.splide .splide__arrow--prev { left: 14px; }
.spudo-mealbox .spudo-mealbox-gallery.splide .splide__arrow--next { right: 14px; }
.spudo-mealbox .spudo-mealbox-gallery.splide .splide__arrow svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}
.spudo-mealbox .spudo-mealbox-gallery.splide .splide__arrow--prev svg {
  transform: scaleX(-1);
}

.spudo-mealbox .spudo-mealbox-gallery.splide .splide__pagination {
  position: absolute;
  bottom: 14px;
  left: 50%;
  transform: translateX(-50%);
  display: inline-flex;
  gap: 8px;
  z-index: 4;
  padding: 0;
  margin: 0;
  list-style: none;
}
.spudo-mealbox .spudo-mealbox-gallery.splide .splide__pagination li {
  display: inline-flex;
  list-style: none;
  margin: 0;
  padding: 0;
}
.spudo-mealbox .spudo-mealbox-gallery.splide .splide__pagination__page {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.7);
  border: 0;
  padding: 0;
  cursor: pointer;
  opacity: 1;
  transform: none;
  transition: background-color .2s ease, transform .2s ease;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.06);
}
.spudo-mealbox .spudo-mealbox-gallery.splide .splide__pagination__page.is-active {
  background: #FFFFFF;
  transform: scale(1.2);
}
.spudo-mealbox .spudo-mealbox-gallery.splide .splide__pagination__page:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.9);
  outline-offset: 2px;
}

.spudo-mealbox .spudo-mealbox-price-band {
  display: flex;
  align-items: stretch;
  padding: 0;
  background: var(--spudo-green-band);
  border-top: 1px solid var(--spudo-border-soft);
}

.spudo-mealbox .spudo-mealbox-price {
  display: grid;
  grid-template-columns: auto auto;
  grid-template-rows: auto auto auto;
  column-gap: 10px;
  row-gap: 0;
  align-items: baseline;
  padding: 22px 30px;
  border-right: 1px solid var(--spudo-border-soft);
  flex: 0 0 auto;
}
.spudo-mealbox .spudo-mealbox-price-prefix {
  grid-column: 1 / 3;
  grid-row: 1;
  font-size: 14px;
  color: var(--spudo-text-strong);
  font-weight: 500;
  line-height: 1;
  margin-bottom: 2px;
}
.spudo-mealbox .spudo-mealbox-price-amount {
  grid-column: 1;
  grid-row: 2;
  font-size: 52px;
  font-weight: 700;
  line-height: 0.95;
  color: var(--spudo-text-strong);
  letter-spacing: -2px;
  white-space: nowrap;
}
.spudo-mealbox .spudo-mealbox-price-unit {
  grid-column: 1;
  grid-row: 3;
  font-size: 14px;
  color: var(--spudo-text-strong);
  font-weight: 500;
  margin-top: 4px;
}

.spudo-mealbox .spudo-mealbox-discount-long {
  flex: 1;
  margin: 0;
  padding: 18px 30px;
  text-align: left;
  align-self: center;
}
.spudo-mealbox .spudo-mealbox-discount-long-title {
  display: block;
  color: var(--spudo-text);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  margin-bottom: 6px;
}
.spudo-mealbox .spudo-mealbox-discount-long-body {
  display: block;
  font-size: 22px;
  font-weight: 700;
  color: var(--spudo-green-strong);
  line-height: 1.2;
}
.spudo-mealbox .spudo-mealbox-discount-long-body strong {
  display: inline;
  font-size: inherit;
  font-weight: 700;
  color: var(--spudo-green-strong);
  margin: 0;
  letter-spacing: 0;
}

.spudo-mealbox .spudo-mealbox-cta-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 22px 30px;
  align-self: center;
}
.spudo-mealbox .spudo-mealbox-cta-wrap a.spudo-mealbox-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background-color: var(--spudo-green);
  color: #FFFFFF;
  font-weight: 700;
  font-size: 17px;
  padding: 16px 32px;
  border-radius: 14px;
  text-decoration: none;
  transition: background-color .15s ease, transform .05s ease;
  min-width: 240px;
  border: 0;
  box-shadow: none;
}
.spudo-mealbox .spudo-mealbox-cta-wrap a.spudo-mealbox-cta:hover,
.spudo-mealbox .spudo-mealbox-cta-wrap a.spudo-mealbox-cta:focus,
.spudo-mealbox .spudo-mealbox-cta-wrap a.spudo-mealbox-cta:visited {
  background-color: var(--spudo-green-strong);
  color: #FFFFFF;
  text-decoration: none;
}
.spudo-mealbox .spudo-mealbox-cta-wrap a.spudo-mealbox-cta:active { transform: translateY(1px); }
.spudo-mealbox .spudo-mealbox-cta-arrow {
  font-size: 22px;
  line-height: 1;
}
.spudo-mealbox .spudo-mealbox-cta-subtitle {
  font-size: 13px;
  color: var(--spudo-text-muted);
  line-height: 1.3;
  text-align: center;
}

/* v0.48.0 — Weekly Menu placeholder button. Styled inline with the
   primary CTA (below, secondary variant) so it reads as intentional
   but doesn't compete with "Få rabatten". Disabled state is the
   default — the pointer + muted colour tell users it's coming. */
.spudo-mealbox .spudo-mealbox-weekly-menu {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 8px;
  padding: 10px 20px;
  min-width: 200px;
  background: transparent;
  color: var(--spudo-text-muted);
  border: 1px solid var(--spudo-border-soft);
  border-radius: 10px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  line-height: inherit;
  cursor: not-allowed;
  transition: background-color .15s ease, border-color .15s ease, color .15s ease;
}
.spudo-mealbox .spudo-mealbox-weekly-menu:hover {
  background: rgba(0, 167, 111, 0.05);
  color: var(--spudo-text);
  border-color: var(--spudo-green);
}
.spudo-mealbox .spudo-mealbox-weekly-menu[data-spudo-weekly-menu="disabled"] {
  opacity: 0.75;
}
.spudo-mealbox .spudo-mealbox-weekly-menu-icon {
  font-size: 15px;
  line-height: 1;
}

.spudo-mealbox ul.spudo-mealbox-meta {
  display: flex;
  align-items: stretch;
  list-style: none;
  list-style-type: none;
  padding: 0;
  margin: 0;
  border-top: 1px solid var(--spudo-border-soft);
  color: var(--spudo-text);
  font-size: 15px;
  font-weight: 500;
}
.spudo-mealbox ul.spudo-mealbox-meta li {
  list-style: none;
  list-style-type: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  line-height: 1;
  padding: 16px 20px;
  flex: 1;
}
.spudo-mealbox ul.spudo-mealbox-meta li:not(:last-child) {
  border-right: 1px solid var(--spudo-border-soft);
}
.spudo-mealbox ul.spudo-mealbox-meta li::before,
.spudo-mealbox ul.spudo-mealbox-meta li::marker {
  content: none;
  display: none;
}
.spudo-mealbox .spudo-mealbox-meta-icon {
  font-size: 16px;
  line-height: 1;
  opacity: 0.85;
}

.spudo-feed {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.spudo-feed-freshness {
  display: block;
  width: 100%;
  /* v0.67.14 — max-width dropped so the stamp aligns with the mealbox
   * cards + the parent spudo/container. See .spudo-mealbox note. */
  margin: 8px 0;
  padding: 0 4px;
  box-sizing: border-box;
  font-size: 13px;
  line-height: 1.4;
  color: #6B7280;
  text-align: left;
  background: transparent;
  border: 0;
}
.spudo-feed-freshness-icon {
  font-size: 14px;
  line-height: 1;
  margin-right: 4px;
}

.spudo-feed-controls {
  display: flex;
  align-items: center;
  gap: 10px;
  justify-content: flex-start;
  /* v0.67.14 — max-width dropped so the controls bar aligns with the
   * mealbox cards + the parent spudo/container. See .spudo-mealbox note. */
  margin: 0 0 20px;
  padding: 10px;

  position: sticky;
  top: var(--spudo-feed-sticky-top, 80px);
  z-index: 10;
  background: #FFFFFF;
  border: 1px solid var(--spudo-border, #E4E7EB);
  border-radius: 20px;
}
.spudo-feed-controls.is-floating {
  box-shadow: 0 6px 20px rgba(15, 23, 42, 0.08);
}
@media (max-width: 720px) {
  .spudo-feed-controls {
    border-radius: 16px;
  }
}
.spudo-feed-container .spudo-feed-filters-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border: 1px solid var(--spudo-border, #E5E7EB);
  border-radius: 999px;
  background: #FFFFFF;
  color: var(--spudo-text-strong, #0F172A);
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color .15s ease, border-color .15s ease, box-shadow .15s ease;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}
.spudo-feed-container .spudo-feed-filters-toggle:hover {
  border-color: #CBD5E1;
  background: #F8FAFC;
}
.spudo-feed-container .spudo-feed-filters-toggle-icon {
  color: var(--spudo-green-strong, #15803D);
}
.spudo-feed-container .spudo-feed-filters-toggle-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  border-radius: 999px;
  background: var(--spudo-green, #16A34A);
  color: #FFFFFF;
  font-size: 12px;
  font-weight: 700;
  margin-left: 2px;
}
.spudo-feed-container .spudo-feed-filters-toggle-count[hidden] { display: none; }

.spudo-feed-container .spudo-feed-search {
  display: inline-flex;
  align-items: center;
  gap: 0;
  height: 40px;
  box-sizing: border-box;
  border: 1px solid var(--spudo-border, #E5E7EB);
  border-radius: 999px;
  background: #FFFFFF;
  padding: 0;
  margin: 0;
  overflow: hidden;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
  transition: border-color .15s ease, box-shadow .15s ease, background-color .15s ease;
}
.spudo-feed-container .spudo-feed-search:hover {
  border-color: #CBD5E1;
}
.spudo-feed-container .spudo-feed-search:focus-within {
  border-color: var(--spudo-green, #16A34A);
  box-shadow: 0 0 0 3px rgba(22, 163, 74, 0.15);
}
.spudo-feed-container .spudo-feed-search-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  min-width: 38px;
  max-width: 38px;
  min-height: 38px;
  max-height: 38px;
  box-sizing: border-box;
  flex-shrink: 0;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--spudo-green-strong, #15803D);
  padding: 0;
  margin: 0;
  cursor: pointer;
  font: inherit;
  line-height: 1;
  text-transform: none;
  letter-spacing: 0;
  box-shadow: none;
}
.spudo-feed-container input[type="text"].spudo-feed-search-input,
.spudo-feed-container .spudo-feed-search-input {
  flex: 0 1 auto;
  width: auto;
  max-width: 0;
  min-width: 0;
  height: 38px;
  min-height: 0;
  max-height: none;
  box-sizing: border-box;
  border: 0;
  outline: none;
  background: transparent;
  padding: 0;
  margin: 0;
  box-shadow: none;
  font: inherit;
  font-size: 15px;
  line-height: 1.2;
  color: var(--spudo-text, #0F172A);
  border-radius: 0;
  -webkit-appearance: none;
  appearance: none;
  opacity: 0;
  transition: max-width .28s ease, padding .28s ease, opacity .18s ease;
  pointer-events: none;
}
.spudo-feed-container input[type="text"].spudo-feed-search-input:focus,
.spudo-feed-container .spudo-feed-search-input:focus {
  outline: none;
  box-shadow: none;
  border: 0;
  background: transparent;
}
.spudo-feed-container .spudo-feed-search-input::placeholder {
  color: var(--spudo-text-muted, #6B7280);
  opacity: 1;
}
.spudo-feed-container .spudo-feed-search-clear {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 0;
  max-width: 0;
  height: 38px;
  min-width: 0;
  min-height: 0;
  max-height: 38px;
  box-sizing: border-box;
  flex: 0 0 auto;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--spudo-text-strong, #0F172A);
  padding: 0;
  margin: 0;
  cursor: pointer;
  font: inherit;
  line-height: 1;
  box-shadow: none;
  overflow: hidden;
  opacity: 0;
  transition: width .28s ease, max-width .28s ease, opacity .18s ease;
  pointer-events: none;
}
.spudo-feed-container .spudo-feed-search-clear svg { flex-shrink: 0; }
.spudo-feed-container .spudo-feed-search.is-open input[type="text"].spudo-feed-search-input,
.spudo-feed-container .spudo-feed-search.is-open .spudo-feed-search-input {
  max-width: 260px;
  padding: 0 8px 0 4px;
  opacity: 1;
  pointer-events: auto;
}
.spudo-feed-container .spudo-feed-search.is-open .spudo-feed-search-clear {
  width: 32px;
  max-width: 32px;
  opacity: 1;
  pointer-events: auto;
  margin-right: 4px;
}
.spudo-feed-container .spudo-feed-search.is-open .spudo-feed-search-clear:hover {
  background: #F1F5F9;
}

.spudo-feed-filters-modal {
  position: fixed;
  inset: 0;

  height: 100vh;
  height: 100dvh;
  max-height: 100vh;
  max-height: 100dvh;
  z-index: 100010;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 24px 20px;
  padding-top: max(24px, calc(var(--spudo-feed-sticky-top, 0px) + 20px));
  overflow-y: auto;
}
.spudo-feed-filters-modal[hidden] { display: none; }
.spudo-feed-filters-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.55);
  backdrop-filter: blur(2px);
}
.spudo-feed-filters-dialog {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 720px;
  max-height: 84vh;
  max-height: calc(100dvh - max(48px, calc(var(--spudo-feed-sticky-top, 0px) + 44px)));
  background: #FFFFFF;
  border-radius: 22px;
  box-shadow: 0 20px 60px rgba(15, 23, 42, 0.28);
  overflow: hidden;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, "Helvetica Neue", Arial, sans-serif;
}

.spudo-feed-filters-header {
  position: relative;
  padding: 24px 28px 14px;
  border-bottom: 1px solid var(--spudo-border-soft, #EEF0F3);
}
.spudo-feed-filters-header-title {
  display: flex;
  align-items: center;
  gap: 10px;
}
.spudo-feed-filters-header-title .spudo-feed-filters-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(22, 163, 74, 0.12);
  color: var(--spudo-green-strong, #15803D);
}
.spudo-feed-filters-header-title h2,
.spudo-feed-filters-header-title .spudo-feed-filters-title {
  margin: 0;
  font-size: 22px;
  font-weight: 700;
  color: var(--spudo-text-strong, #0F172A);
  letter-spacing: -0.4px;
}
.spudo-feed-filters-header-subtitle {
  margin: 6px 0 0;
  font-size: 14px;
  color: var(--spudo-text-muted, #6B7280);
  line-height: 1.4;
  max-width: 460px;
}
.spudo-feed-filters-close {
  position: absolute;
  top: 20px;
  right: 20px;
  box-sizing: border-box;
  width: 32px;
  height: 32px;
  min-width: 32px;
  max-width: 32px;
  min-height: 32px;
  max-height: 32px;
  flex: 0 0 32px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #F1F5F9;
  color: #0F172A;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background-color .15s ease;
}
.spudo-feed-filters-close:hover { background: #E2E8F0; }
.spudo-feed-filters-close svg {
  display: block;
  width: 18px;
  height: 18px;
  color: #0F172A;
  stroke: currentColor;
  stroke-width: 2;
  fill: none;
  pointer-events: none;
}
.spudo-feed-filters-body {
  padding: 8px 28px 8px;
  overflow-y: auto;
}
.spudo-feed-filters-section {
  padding: 18px 0;
  border-bottom: 1px solid var(--spudo-border-soft, #EEF0F3);
}
.spudo-feed-filters-section:last-child { border-bottom: 0; }
.spudo-feed-filters-section-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}
.spudo-feed-filters-section-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(22, 163, 74, 0.14);
  color: var(--spudo-green-strong, #15803D);
  font-size: 15px;
  flex-shrink: 0;
}
.spudo-feed-filters-section-icon svg {
  display: block;
  width: 18px;
  height: 18px;
}
.spudo-feed-filters-section-title {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
  color: var(--spudo-text-strong, #0F172A);
}
.spudo-feed-filters-section-subtitle {
  margin: -4px 0 10px;
  font-size: 13px;
  color: var(--spudo-text-muted, #6B7280);
}

.spudo-feed-filters-chips {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}
@media (max-width: 600px) {
  .spudo-feed-filters-chips { grid-template-columns: repeat(2, 1fr); }
}
.spudo-feed-filters-section[data-dim="categories"] .spudo-feed-filters-chips {
  grid-template-columns: repeat(3, 1fr);
}
.spudo-feed-filters-section[data-dim="operators"] .spudo-feed-filters-chips {
  grid-template-columns: repeat(4, 1fr);
}
@media (max-width: 600px) {
  .spudo-feed-filters-section[data-dim="categories"] .spudo-feed-filters-chips {
    grid-template-columns: repeat(2, 1fr);
  }
  .spudo-feed-filters-section[data-dim="operators"] .spudo-feed-filters-chips {
    grid-template-columns: repeat(3, 1fr);
  }
}

.spudo-feed-filters-price-range {
  margin: 4px 6px 16px;
}
.spudo-feed-filters-price-slider-track {
  position: relative;
  height: 28px;
  padding: 0;
}
.spudo-feed-filters-price-slider-track::before {
  content: '';
  display: block;
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 6px;
  background: #E5E7EB;
  border-radius: 999px;
  transform: translateY(-50%);
  pointer-events: none;
}
.spudo-feed-filters-price-slider-fill {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 6px;
  background: var(--spudo-green, #16A34A);
  border-radius: 999px;
  transform: translateY(-50%);
  pointer-events: none;
  transition: background-color .15s ease;
}
.spudo-feed-filters-price-slider {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 28px;
  margin: 0;
  padding: 0;
  background: transparent;
  -webkit-appearance: none;
  appearance: none;
  pointer-events: none;
  cursor: pointer;
}
.spudo-feed-filters-price-slider:focus { outline: none; }
.spudo-feed-filters-price-slider::-webkit-slider-runnable-track {
  background: transparent;
  height: 6px;
  border: 0;
}
.spudo-feed-filters-price-slider::-moz-range-track {
  background: transparent;
  height: 6px;
  border: 0;
}
.spudo-feed-filters-price-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  pointer-events: auto;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--spudo-green, #16A34A);
  border: 3px solid #FFFFFF;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.22);
  margin-top: -8px;
  cursor: pointer;
  transition: transform .1s ease;
}
.spudo-feed-filters-price-slider::-moz-range-thumb {
  pointer-events: auto;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--spudo-green, #16A34A);
  border: 3px solid #FFFFFF;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.22);
  cursor: pointer;
  transition: transform .1s ease;
}
.spudo-feed-filters-price-slider:active::-webkit-slider-thumb,
.spudo-feed-filters-price-slider:focus::-webkit-slider-thumb { transform: scale(1.12); }
.spudo-feed-filters-price-slider:active::-moz-range-thumb,
.spudo-feed-filters-price-slider:focus::-moz-range-thumb { transform: scale(1.12); }
.spudo-feed-filters-price-range-label {
  margin-top: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--spudo-green-strong, #15803D);
  text-align: center;
  font-variant-numeric: tabular-nums;
}
.spudo-feed-filters-price-range-sep,
.spudo-feed-filters-price-range-unit {
  color: var(--spudo-text, #0F172A);
  font-weight: 500;
}

.spudo-feed-filters-chip {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 14px;
  min-height: 46px;
  border: 1px solid #E5E7EB;
  border-radius: 12px;
  background: #FFFFFF;
  color: var(--spudo-text, #0F172A);
  font-family: inherit;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: border-color .15s ease, background-color .15s ease, box-shadow .15s ease;
  text-align: center;
}
.spudo-feed-filters-chip:hover { border-color: #CBD5E1; }
.spudo-feed-filters-chip .spudo-feed-filters-chip-check {
  position: absolute;
  top: -6px;
  right: -6px;
  display: none;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--spudo-green, #16A34A);
  color: #FFFFFF;
  box-shadow: 0 0 0 2px #FFFFFF;
}
.spudo-feed-filters-chip.is-selected {
  border-color: var(--spudo-green, #16A34A);
  background: #F0FDF4;
  color: var(--spudo-green-strong, #15803D);
}
.spudo-feed-filters-chip.is-selected .spudo-feed-filters-chip-check {
  display: inline-flex;
}
.spudo-feed-filters-chip-emoji {
  font-size: 20px;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.2em;
  height: 1.2em;
  flex-shrink: 0;
}
.spudo-feed-filters-chip-emoji img,
.spudo-feed-filters-chip-emoji img.emoji {
  width: 1.2em;
  height: 1.2em;
  max-width: 1.2em;
  max-height: 1.2em;
  object-fit: contain;
  vertical-align: middle;
  margin: 0;
}
.spudo-feed-filters-chip-logo {
  width: 60px;
  height: 20px;
  object-fit: contain;
}
.spudo-feed-filters-chip-label {
  font-size: 14px;
  line-height: 1.2;
}

.spudo-feed-filters-section[data-dim="people"] .spudo-feed-filters-chip {
  flex-direction: column;
  gap: 4px;
  padding: 8px 6px;
  min-height: 62px;
}
.spudo-feed-filters-section[data-dim="people"] .spudo-feed-filters-chip-emoji {
  font-size: 22px;
  line-height: 1;
  width: 1.4em;
  height: 1.4em;
}
.spudo-feed-filters-section[data-dim="people"] .spudo-feed-filters-chip-emoji img,
.spudo-feed-filters-section[data-dim="people"] .spudo-feed-filters-chip-emoji img.emoji {
  width: 1.4em;
  height: 1.4em;
  max-width: 1.4em;
  max-height: 1.4em;
}
.spudo-feed-filters-section[data-dim="people"] .spudo-feed-filters-chip-label {
  font-size: 12px;
  line-height: 1.2;
  font-weight: 600;
}

.spudo-feed-filters-section[data-dim="operators"] .spudo-feed-filters-chip {
  flex-direction: column;
  gap: 0;
  padding: 6px 8px;
  min-height: 46px;
}
.spudo-feed-filters-section[data-dim="operators"] .spudo-feed-filters-chip-label {
  display: none;
}
.spudo-feed-filters-section[data-dim="operators"] .spudo-feed-filters-chip-logo {
  width: auto;
  height: auto;
  max-width: 78%;
  max-height: 32px;
  object-fit: contain;
}

.spudo-feed-filters-section[data-dim="categories"] .spudo-feed-filters-chips .spudo-feed-filters-chip.is-overflow {
  display: none;
}
.spudo-feed-filters-section[data-dim="categories"] .spudo-feed-filters-chips.is-expanded .spudo-feed-filters-chip.is-overflow {
  display: inline-flex;
}
.spudo-feed-filters-section[data-dim="categories"] .spudo-feed-filters-chips.is-expanded .spudo-feed-filters-more {
  display: none;
}
.spudo-feed-filters-more {
  color: var(--spudo-text-strong, #0F172A);
  font-weight: 600;
  gap: 6px;
}
.spudo-feed-filters-more:hover {
  border-color: var(--spudo-green, #16A34A);
  color: var(--spudo-green-strong, #15803D);
}
.spudo-feed-filters-more-chevron {
  color: var(--spudo-text-muted, #6B7280);
  flex-shrink: 0;
}
.spudo-feed-filters-more:hover .spudo-feed-filters-more-chevron {
  color: var(--spudo-green-strong, #15803D);
}

.spudo-feed-filters-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 28px 20px;
  border-top: 1px solid var(--spudo-border-soft, #EEF0F3);
  background: #FFFFFF;
}
.spudo-feed-filters-footer.is-hidden { display: none; }
.spudo-feed-filters-reset {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 0;
  background: none;
  color: var(--spudo-text, #0F172A);
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  padding: 8px 0;
}
.spudo-feed-filters-reset:hover { color: var(--spudo-text-strong, #020617); }
.spudo-feed-filters-footer-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
}
.spudo-feed-filters-save {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 32px;
  border: 0;
  border-radius: 14px;
  background: var(--spudo-green, #16A34A);
  color: #FFFFFF;
  font-family: inherit;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: background-color .15s ease;
  min-width: 240px;
  justify-content: center;
}
.spudo-feed-filters-save:hover { background: var(--spudo-green-strong, #15803D); }
.spudo-feed-filters-save-count { font-weight: 600; opacity: 0.9; }
.spudo-feed-filters-results-count {
  margin: 0;
  font-size: 13px;
  color: var(--spudo-text-muted, #6B7280);
  text-align: right;
}

@media (max-width: 720px) {
  .spudo-mealbox {
    max-width: 100%;
    margin: 16px auto;
    border-radius: 16px;
  }

  .spudo-mealbox .spudo-mealbox-body { min-height: 0; }
  .spudo-mealbox .spudo-mealbox-gallery { order: 1; min-height: 220px; }

  .spudo-mealbox .spudo-mealbox-left {
    order: 2;
    padding: 16px 16px 16px;
    position: static;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    grid-auto-rows: auto;
    column-gap: 12px;
    row-gap: 8px;
    align-items: start;
  }

  .spudo-mealbox .spudo-mealbox-gallery::before { display: none; }
  .spudo-mealbox .spudo-mealbox-gallery { height: 220px; }
  .spudo-mealbox .spudo-mealbox-gallery:not(.splide) .spudo-mealbox-slide img:not(.spudo-mealbox-operator-logo),
  .spudo-mealbox .spudo-mealbox-gallery.splide .splide__slide img:not(.spudo-mealbox-operator-logo) {
    height: 100%;
    max-height: 100%;
  }

  .spudo-mealbox .spudo-mealbox-header {
    position: absolute;
    top: 12px;
    left: 12px;
    right: auto;
    margin: 0;
    z-index: 5;
    gap: 6px;
    flex-direction: column;
    align-items: flex-start;
    flex-wrap: nowrap;
  }
  .spudo-mealbox .spudo-mealbox-offer-name {
    font-size: 12px;
    padding: 6px 10px;
    letter-spacing: 0.2px;
    box-shadow: 0 2px 6px rgba(15, 23, 42, 0.3);
  }
  .spudo-mealbox .spudo-mealbox-discount-short {
    font-size: 12px;
    padding: 6px 10px;
    letter-spacing: 0.3px;
    box-shadow: 0 2px 6px rgba(15, 23, 42, 0.3);
  }

  .spudo-mealbox .spudo-mealbox-operator {
    grid-column: 1;
    grid-row: 1;
    font-size: 24px;
    letter-spacing: -0.8px;
    margin: 0;
    align-self: center;
    white-space: nowrap;
  }
  .spudo-mealbox .spudo-mealbox-rating {
    grid-column: 2;
    grid-row: 1;
    align-self: center;
    justify-self: end;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 3px 6px;
    font-size: 11px;
    line-height: 1.15;
    margin: 0;
    min-width: 0;
  }
  .spudo-mealbox .spudo-mealbox-rating-stars { font-size: 14px; }
  .spudo-mealbox .spudo-mealbox-rating-value { font-size: 13px; }
  .spudo-mealbox .spudo-mealbox-rating-count { font-size: 11px; }

  .spudo-mealbox .spudo-mealbox-punchline {
    grid-column: 1 / -1;
    font-size: 12px;
    line-height: 1.35;
    margin: 2px 0 0;
    display: inline;
  }

  .spudo-mealbox .spudo-mealbox-bullets-details {
    grid-column: 1 / -1;
    margin-top: 0;
  }
  .spudo-mealbox .spudo-mealbox-bullets-details > summary.spudo-mealbox-bullets-toggle {
    display: inline;
    color: var(--spudo-text-muted);
    font-size: 12px;
    font-weight: 500;
    text-decoration: underline;
  }
  .spudo-mealbox .spudo-mealbox-bullets-details > summary.spudo-mealbox-bullets-toggle:hover {
    color: var(--spudo-text);
  }
  .spudo-mealbox .spudo-mealbox-bullets-details[open] > summary.spudo-mealbox-bullets-toggle .spudo-mealbox-bullets-toggle-more { display: none; }
  .spudo-mealbox .spudo-mealbox-bullets-details:not([open]) > summary.spudo-mealbox-bullets-toggle .spudo-mealbox-bullets-toggle-less { display: none; }
  .spudo-mealbox .spudo-mealbox-bullets-details > summary.spudo-mealbox-bullets-toggle .spudo-mealbox-bullets-toggle-more::after {
    content: ' +';
    display: inline;
    text-decoration: none;
    font-weight: 700;
  }
  .spudo-mealbox .spudo-mealbox-bullets-details > summary.spudo-mealbox-bullets-toggle .spudo-mealbox-bullets-toggle-less::after {
    content: ' −';
    display: inline;
    text-decoration: none;
    font-weight: 700;
  }
  .spudo-mealbox .spudo-mealbox-bullets-details:not([open]) > .spudo-mealbox-bullets {
    display: none;
  }
  .spudo-mealbox ul.spudo-mealbox-bullets {
    gap: 6px;
    margin-top: 8px;
  }
  .spudo-mealbox ul.spudo-mealbox-bullets li.spudo-mealbox-bullet { font-size: 12px; line-height: 1.35; }

  .spudo-mealbox .spudo-mealbox-price-band {
    display: grid;
    grid-template-columns: auto 1fr;
    grid-template-rows: auto auto;
    align-items: stretch;
  }
  .spudo-mealbox .spudo-mealbox-price {
    grid-column: 1;
    grid-row: 1;
    padding: 14px 16px;
    column-gap: 6px;
    border-right: 1px solid var(--spudo-border-soft);
    border-bottom: 1px solid var(--spudo-border-soft);
  }
  .spudo-mealbox .spudo-mealbox-price-prefix { font-size: 12px; }
  .spudo-mealbox .spudo-mealbox-price-amount {
    font-size: 34px;
    letter-spacing: -1px;
  }
  .spudo-mealbox .spudo-mealbox-price-unit { font-size: 12px; margin-top: 2px; }

  .spudo-mealbox .spudo-mealbox-discount-long {
    grid-column: 2;
    grid-row: 1;
    padding: 14px 16px;
    font-size: 13px;
    line-height: 1.3;
    text-align: left;
    border-bottom: 1px solid var(--spudo-border-soft);
    align-self: center;
  }
  .spudo-mealbox .spudo-mealbox-discount-long-title {
    display: block;
    color: var(--spudo-text);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.6px;
    text-transform: uppercase;
    margin-bottom: 4px;
  }
  .spudo-mealbox .spudo-mealbox-discount-long-body {
    font-size: 18px;
    font-weight: 700;
    color: var(--spudo-green-strong);
    line-height: 1.2;
  }
  .spudo-mealbox .spudo-mealbox-discount-long-body strong {
    display: inline;
    font-size: inherit;
    letter-spacing: 0;
    margin: 0;
  }

  .spudo-mealbox .spudo-mealbox-cta-wrap {
    grid-column: 1 / -1;
    grid-row: 2;
    padding: 12px 14px;
    gap: 6px;
  }
  .spudo-mealbox .spudo-mealbox-cta-wrap a.spudo-mealbox-cta {
    font-size: 15px;
    font-weight: 700;
    padding: 13px 16px;
    min-width: 0;
    width: 100%;
    gap: 8px;
    border-radius: 10px;
  }
  .spudo-mealbox .spudo-mealbox-cta-arrow { font-size: 18px; }
  .spudo-mealbox .spudo-mealbox-cta-subtitle { font-size: 12px; }

  .spudo-mealbox ul.spudo-mealbox-meta { font-size: 11px; }
  .spudo-mealbox ul.spudo-mealbox-meta li {
    padding: 10px 6px;
    gap: 4px;
    line-height: 1.2;
  }
  .spudo-mealbox .spudo-mealbox-meta-icon { font-size: 12px; }

  .spudo-mealbox .spudo-mealbox-operator-logo {
    bottom: 10px;
    right: 10px;
    top: auto;
    max-width: 90px;
    max-height: 36px;
    padding: 4px 8px;
    border-radius: 8px;
  }

  .spudo-mealbox .spudo-mealbox-gallery.splide .splide__arrow {
    width: 32px;
    height: 32px;
  }
  .spudo-mealbox .spudo-mealbox-gallery.splide .splide__arrow--prev { left: 8px; }
  .spudo-mealbox .spudo-mealbox-gallery.splide .splide__arrow--next { right: 8px; }
  .spudo-mealbox .spudo-mealbox-gallery.splide .splide__arrow svg { width: 14px; height: 14px; }
  .spudo-mealbox .spudo-mealbox-gallery.splide .splide__pagination { bottom: 8px; gap: 6px; }
  .spudo-mealbox .spudo-mealbox-gallery.splide .splide__pagination__page {
    width: 6px;
    height: 6px;
  }

  .spudo-feed-controls { padding: 10px 0; gap: 8px; }
  .spudo-feed-container .spudo-feed-filters-toggle {
    padding: 9px 14px;
    font-size: 14px;
  }
  .spudo-feed-container .spudo-feed-search {
    height: 38px;
  }
  .spudo-feed-container .spudo-feed-search-toggle {
    width: 36px;
    height: 36px;
    min-width: 36px;
    max-width: 36px;
    min-height: 36px;
    max-height: 36px;
  }
  .spudo-feed-container input[type="text"].spudo-feed-search-input,
  .spudo-feed-container .spudo-feed-search-input {
    height: 36px;
    font-size: 14px;
  }
  .spudo-feed-container .spudo-feed-search-clear {
    height: 36px;
    max-height: 36px;
  }
  .spudo-feed-container .spudo-feed-search.is-open {
    flex: 1;
    min-width: 0;
  }
  .spudo-feed-container .spudo-feed-search.is-open input[type="text"].spudo-feed-search-input,
  .spudo-feed-container .spudo-feed-search.is-open .spudo-feed-search-input {
    max-width: none;
    flex: 1;
  }

  .spudo-feed-filters-modal {
    padding: 12px;
    padding-top: max(12px, calc(var(--spudo-feed-sticky-top, 0px) + 12px));
  }
  .spudo-feed-filters-dialog {
    max-height: 86vh;
    max-height: calc(100dvh - max(24px, calc(var(--spudo-feed-sticky-top, 0px) + 24px)));
    border-radius: 16px;
  }
  .spudo-feed-filters-header { padding: 20px 18px 12px; }
  .spudo-feed-filters-header-title h2,
  .spudo-feed-filters-header-title .spudo-feed-filters-title { font-size: 20px; }
  .spudo-feed-filters-header-subtitle { font-size: 13px; }
  .spudo-feed-filters-close { top: 16px; right: 16px; }
  .spudo-feed-filters-body { padding: 4px 18px; }
  .spudo-feed-filters-section-title { font-size: 15px; }
  .spudo-feed-filters-footer { padding: 14px 18px 16px; gap: 10px; }
  .spudo-feed-filters-save {
    min-width: 0;
    font-size: 15px;
    padding: 11px 20px;
  }
}

@media (max-width: 480px) {
  .spudo-mealbox .spudo-mealbox-operator {
    font-size: 20px;
    letter-spacing: -0.4px;
  }
  .spudo-mealbox .spudo-mealbox-price-amount { font-size: 30px; }
  .spudo-mealbox .spudo-mealbox-gallery { height: 200px; }
  .spudo-mealbox .spudo-mealbox-gallery:not(.splide) .spudo-mealbox-slide img:not(.spudo-mealbox-operator-logo),
  .spudo-mealbox .spudo-mealbox-gallery.splide .splide__slide img:not(.spudo-mealbox-operator-logo) {
    height: 100%;
    max-height: 100%;
  }

  .spudo-feed-filters-footer {
    flex-direction: column-reverse;
    align-items: stretch;
  }
  .spudo-feed-filters-footer-right { width: 100%; align-items: stretch; }
  .spudo-feed-filters-save { width: 100%; }
  .spudo-feed-filters-results-count { text-align: center; }
  .spudo-feed-filters-reset {
    align-self: center;
    padding: 4px 0;
  }
}

/* ---------- Sidebar-open filters mode — Rene 2026-09-16 ---------- */
/* Activated by [spudo_feed filters="sidebar"]; renders the filter
 * panel as a permanent left sidebar on desktop instead of the
 * modal-behind-button pattern. On mobile the same panel reverts to
 * the modal (readable + touch-friendly on small screens). */

@media (min-width: 1024px) {
  .spudo-feed-container.is-sidebar-mode {
    display: grid;
    grid-template-columns: 300px 1fr;
    grid-template-areas:
      "toolbar toolbar"
      "sidebar grid";
    gap: 24px;
    align-items: start;
  }

  /* Existing search + filter-toggle row spans both columns above. */
  .spudo-feed-container.is-sidebar-mode > :first-child {
    grid-area: toolbar;
  }

  /* The filter modal moves into the left column and un-modalises. */
  .spudo-feed-container.is-sidebar-mode .spudo-feed-filters-modal {
    grid-area: sidebar;
    position: static;
    inset: auto;
    background: transparent;
    padding: 0;
    overflow: visible;
  }
  /* The [hidden] attribute (default modal-closed state) is overridden
   * on desktop so the sidebar is always open. */
  .spudo-feed-container.is-sidebar-mode .spudo-feed-filters-modal[hidden] {
    display: block;
  }
  .spudo-feed-container.is-sidebar-mode .spudo-feed-filters-backdrop {
    display: none;
  }
  .spudo-feed-container.is-sidebar-mode .spudo-feed-filters-dialog {
    position: static;
    max-width: 100%;
    max-height: none;
    width: 100%;
    background: #FFFFFF;
    border: 1px solid #E5E7EB;
    border-radius: 12px;
    padding: 16px 18px;
    box-shadow: 0 1px 2px rgba(15,23,42,0.04);
    transform: none;
    animation: none;
  }
  .spudo-feed-container.is-sidebar-mode .spudo-feed-filters-header {
    padding: 4px 0 12px;
    margin-bottom: 6px;
    border-bottom: 1px solid #EEF0F3;
  }
  .spudo-feed-container.is-sidebar-mode .spudo-feed-filters-header-subtitle,
  .spudo-feed-container.is-sidebar-mode .spudo-feed-filters-close {
    display: none;
  }
  .spudo-feed-container.is-sidebar-mode .spudo-feed-filters-body {
    padding: 0;
    max-height: none;
    overflow: visible;
  }
  .spudo-feed-container.is-sidebar-mode .spudo-feed-filters-footer {
    padding: 12px 0 0;
    margin-top: 12px;
    border-top: 1px solid #EEF0F3;
    position: static;
    background: transparent;
    box-shadow: none;
  }
  /* Hide the "Flere filtre" toggle button on desktop — filters are
   * already open, no button needed. */
  .spudo-feed-container.is-sidebar-mode .spudo-feed-filters-toggle {
    display: none;
  }
  /* The grid takes the right column. */
  .spudo-feed-container.is-sidebar-mode .spudo-feed {
    grid-area: grid;
  }
}
/* Below 1024px the sidebar collapses back into the modal — no
 * special rules needed; the container reverts to default flow and
 * the existing modal/backdrop CSS takes over. But keep the toggle
 * button VISIBLE on mobile even in sidebar mode. */
@media (max-width: 1023px) {
  .spudo-feed-container.is-sidebar-mode .spudo-feed-filters-toggle {
    display: flex;
  }
}

/* Sidebar-open filter mode — chip layout compaction (Giorgos 2026-09-16).
 * The default modal is wide enough for 3-4 chips per row; the sidebar
 * is 340px so we squeeze everything down to 2 per row for chip
 * sections, 3 for operator logos. Stops the "stretched" look. */
@media (min-width: 1024px) {
  /* Slightly wider sidebar than the 300px first-pass — accommodates
   * category chip labels with room to breathe. */
  .spudo-feed-container.is-sidebar-mode {
    grid-template-columns: 340px 1fr;
  }
  /* Price / prep / people chips all in 2 columns. */
  .spudo-feed-container.is-sidebar-mode .spudo-feed-filters-chips {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }
  /* Categories stay 2 cols too — labels like "Familievenlig" need width. */
  .spudo-feed-container.is-sidebar-mode .spudo-feed-filters-section[data-dim="categories"] .spudo-feed-filters-chips {
    grid-template-columns: repeat(2, 1fr);
  }
  /* Operator logos: 3 per row is a nice grid for small logo tiles. */
  .spudo-feed-container.is-sidebar-mode .spudo-feed-filters-section[data-dim="operators"] .spudo-feed-filters-chips {
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
  }
  /* Footer buttons stack vertically in sidebar mode — Gem filtre on
   * top, Nulstil below. Fits comfortably in the narrow column. */
  .spudo-feed-container.is-sidebar-mode .spudo-feed-filters-footer {
    display: flex;
    flex-direction: column-reverse;
    gap: 8px;
    align-items: stretch;
  }
  .spudo-feed-container.is-sidebar-mode .spudo-feed-filters-footer .spudo-feed-filters-save,
  .spudo-feed-container.is-sidebar-mode .spudo-feed-filters-footer .spudo-feed-filters-reset {
    width: 100%;
    text-align: center;
    justify-content: center;
  }
  /* Individual chip sizing — tighten padding + font so 2-col chips
   * don't feel spongy. */
  .spudo-feed-container.is-sidebar-mode .spudo-feed-filters-chip {
    padding: 8px 10px;
    font-size: 13px;
    min-height: 40px;
  }
  /* Chip label wraps rather than overflows in the narrow column. */
  .spudo-feed-container.is-sidebar-mode .spudo-feed-filters-chip-label {
    white-space: normal;
    line-height: 1.25;
  }
  /* Section internal spacing tightened for the sidebar. */
  .spudo-feed-container.is-sidebar-mode .spudo-feed-filters-section {
    padding: 12px 0;
  }
  .spudo-feed-container.is-sidebar-mode .spudo-feed-filters-section-header {
    margin-bottom: 8px;
  }
  .spudo-feed-container.is-sidebar-mode .spudo-feed-filters-section-title {
    font-size: 14px;
  }
}

/* Sidebar mode — sticky sidebar + freshness above search + sticky search
 * Giorgos 2026-09-16: as the visitor scrolls the meal-box grid, the
 * filter sidebar and the search bar stay glued to the top of the
 * viewport. Freshness stamp sits above search (at the top of the
 * right column) and scrolls away normally. */
@media (min-width: 1024px) {
  .spudo-feed-container.is-sidebar-mode {
    /* Explicit grid layout for the three right-column rows:
     *   .spudo-feed-freshness  (top, scrolls away)
     *   .spudo-feed-controls   (search — sticky)
     *   .spudo-feed            (mealbox grid)
     * Left column: filter sidebar spanning all three rows (sticky). */
    grid-template-columns: 340px 1fr;
    grid-template-rows: auto auto 1fr;
    grid-template-areas:
      "sidebar freshness"
      "sidebar controls"
      "sidebar grid";
    align-items: start;
  }

  /* Right-column top: freshness stamp (was inside .spudo-feed pre-
   * v0.43.3). Small breathing room before the search bar underneath. */
  .spudo-feed-container.is-sidebar-mode > .spudo-feed-freshness {
    grid-area: freshness;
    margin: 0 0 8px;
  }

  /* Search bar — the .spudo-feed-controls wrapper (filter-toggle
   * button is already hidden on desktop). Sticky at top of viewport,
   * with an opaque background so cards can't show through. */
  .spudo-feed-container.is-sidebar-mode > .spudo-feed-controls {
    grid-area: controls;
    position: sticky;
    top: 0;
    z-index: 20;
    background: var(--wp--preset--color--ground, #FAFAF7);
    padding: 10px 0;
    margin: 0;
    /* Kill the outer rounded-box border in sidebar mode — the search
     * input's own pill wrapper already carries a border, and the two
     * nested rounded boxes looked like a doubled outline on desktop
     * (Giorgos 2026-09-17). Also drop the radius + shadow that came
     * from the base .spudo-feed-controls / .is-floating rules. */
    border: 0;
    border-radius: 0;
    box-shadow: none;
    max-width: none;
  }
  .spudo-feed-container.is-sidebar-mode > .spudo-feed-controls.is-floating {
    box-shadow: none;
  }
  /* Give the search input room to breathe when it's the sole visible
   * child of .spudo-feed-controls. */
  .spudo-feed-container.is-sidebar-mode > .spudo-feed-controls .spudo-feed-search {
    flex: 1;
  }

  /* Meal-box grid — the actual cards. */
  .spudo-feed-container.is-sidebar-mode > .spudo-feed {
    grid-area: grid;
  }

  /* Sidebar filter panel — sticky on the left. Cap max-height so it
   * scrolls internally when its content exceeds viewport height. */
  .spudo-feed-container.is-sidebar-mode > .spudo-feed-filters-modal {
    position: sticky;
    top: 20px;
    max-height: calc(100vh - 40px);
    overflow-y: auto;
    /* Keep sidebar above the mealbox-card operator logos + compare
     * checkboxes if they happen to align at scroll edges. Well below
     * the compare tray + modal z-indexes. */
    z-index: 15;
  }
}

/* Freshness on mobile / modal mode — restore the small top margin
 * it used to inherit from being inside .spudo-feed. */
.spudo-feed-container > .spudo-feed-freshness {
  margin-top: 4px;
}

/* Sidebar mode — search bar always open + expanded on desktop.
 * Giorgos 2026-09-16: in sidebar mode there's no reason to hide the
 * search behind a magnifying-glass toggle — the sidebar makes the
 * feed a "sit and browse" surface, not a header-with-flyout. Show
 * the input full-width, hide the toggle. */
@media (min-width: 1024px) {
  /* Hide the icon toggle button — no click needed to reveal input. */
  .spudo-feed-container.is-sidebar-mode .spudo-feed-search-toggle {
    display: none;
  }
  /* Force the input into its "open" state — no need for the is-open
   * class the JS toggles on click. */
  .spudo-feed-container.is-sidebar-mode .spudo-feed-search input[type="text"].spudo-feed-search-input,
  .spudo-feed-container.is-sidebar-mode .spudo-feed-search .spudo-feed-search-input {
    max-width: none;
    width: 100%;
    padding: 0 12px;
    opacity: 1;
    pointer-events: auto;
  }
  /* Search wrap becomes a proper input row spanning the right
   * column, with left padding for a magnifying-glass background
   * icon so the empty state still reads as "search". */
  .spudo-feed-container.is-sidebar-mode .spudo-feed-search {
    width: 100%;
    max-width: none;
    padding-left: 40px;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' width='18' height='18' fill='none' stroke='%236B7280' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><circle cx='11' cy='11' r='7'/><line x1='21' y1='21' x2='16.65' y2='16.65'/></svg>");
    background-repeat: no-repeat;
    background-position: 12px center;
  }
  /* Clear button visible only when the input actually has a value —
   * :placeholder-shown flips off as soon as the user types. */
  .spudo-feed-container.is-sidebar-mode .spudo-feed-search .spudo-feed-search-input:placeholder-shown ~ .spudo-feed-search-clear {
    width: 0;
    max-width: 0;
    opacity: 0;
    pointer-events: none;
    margin-right: 0;
  }
  .spudo-feed-container.is-sidebar-mode .spudo-feed-search .spudo-feed-search-input:not(:placeholder-shown) ~ .spudo-feed-search-clear {
    width: 32px;
    max-width: 32px;
    opacity: 1;
    pointer-events: auto;
    margin-right: 4px;
  }
}

/* ---------------------------------------------------------------------
   Shared hover tooltip for operator chips, operator logos and
   anywhere we want a reliable popup label. Native title="" is laggy
   and inconsistent (and can be hidden by stacking context); this
   pseudo-element appears instantly, is theme-independent, and sits
   above every other feed layer. Trigger element MUST set
   position:relative — we take care of that for the elements we
   actively annotate.
   --------------------------------------------------------------------- */
[data-spudo-tooltip]:hover::after,
[data-spudo-tooltip]:focus-visible::after {
  content: attr(data-spudo-tooltip);
  position: absolute;
  bottom: calc(100% + 6px);
  left: 50%;
  transform: translateX(-50%);
  background: rgba(15, 23, 42, 0.95);
  color: #FFFFFF;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.2;
  padding: 6px 10px;
  border-radius: 6px;
  white-space: nowrap;
  pointer-events: none;
  z-index: 10000;
  box-shadow: 0 4px 10px rgba(15, 23, 42, 0.25);
}
[data-spudo-tooltip]:hover::before,
[data-spudo-tooltip]:focus-visible::before {
  content: '';
  position: absolute;
  bottom: calc(100% + 1px);
  left: 50%;
  transform: translateX(-50%);
  border: 5px solid transparent;
  border-top-color: rgba(15, 23, 42, 0.95);
  pointer-events: none;
  z-index: 10000;
}

/* Make sure the two elements we tooltip here are a positioning
   context so the ::after lands on top of them. The mealbox-wide
   operator logo already has position:absolute (its parent is the
   gallery). The filter chip is a <button> — default static — so we
   nudge it to relative. */
.spudo-feed-filters-chip[data-spudo-tooltip] {
  position: relative;
  overflow: visible;
}
.spudo-mealbox-operator-logo[data-spudo-tooltip] {
  /* position already absolute — tooltip stacks above thanks to
     higher z-index above. */
}

/* ---------------------------------------------------------------------
   Sidebar-mode: force the right grid column (where the mealboxes
   live) to accept whatever width 1fr allocates, instead of blowing
   out to match the mealbox's intrinsic content width. By default a
   CSS grid child has `min-width: auto`, which equals its min-
   content size — for a .spudo-feed holding mealboxes that resolve
   to a 900px max-width card + a 440px gallery image, that intrinsic
   width can exceed the 1fr allocation (e.g. 724px cell with ~800px
   intrinsic mealbox → 80px overflow to the right of the container).
   Setting min-width:0 on the grid child + max-width:100% on the
   mealbox clamps everything into the available column width.
   Giorgos 2026-10-01.
   --------------------------------------------------------------------- */
@media (min-width: 1024px) {
  .spudo-feed-container.is-sidebar-mode .spudo-feed,
  .spudo-feed-container.is-sidebar-mode .spudo-feed > * {
    min-width: 0;
  }
  .spudo-feed-container.is-sidebar-mode .spudo-feed .spudo-mealbox {
    max-width: 100%;
  }
}

/* -----------------------------------------------------------------
 * Load More button (v0.63.0 — Giorgos 2026-10-07). Rendered at the
 * end of the feed grid when more candidates exist past the current
 * cap. Click fetches the next window of cards via the
 * /wp-json/spudo-product-feed/v1/feed-cards REST endpoint and
 * appends them inline before the button.
 * ----------------------------------------------------------------- */
.spudo-feed-load-more-wrap {
  grid-column: 1 / -1;        /* span the full width of the feed grid */
  display: flex;
  justify-content: center;
  margin-top: 24px;
  padding: 8px 0 24px;
}
.spudo-feed-load-more {
  min-width: 220px;
  padding: 12px 28px;
  background: #16A34A;
  color: #FFFFFF;
  border: 0;
  border-radius: 999px;
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  transition: background-color 0.15s ease, opacity 0.15s ease;
  font-family: inherit;
}
.spudo-feed-load-more:hover:not(:disabled) {
  background: #15803D;
}
.spudo-feed-load-more:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}
.spudo-feed-load-more.is-loading {
  opacity: 0.75;
}
