/* WopaDeal food search: compact filters, chips, multi-select pickers. */
.food-shell .food-filters{display:block;padding:18px;background:#fff;border:1px solid var(--line);border-radius:18px;box-shadow:0 4px 20px #183d3008}
.food-filter-main{display:grid;grid-template-columns:minmax(0,2fr) minmax(0,1fr) minmax(0,1fr) minmax(0,1fr) auto;gap:14px;align-items:end}
.food-shell .food-filter-main .food-search{grid-column:auto}
.food-shell .food-filters label,.food-filter-field{display:flex;flex-direction:column;gap:6px;min-width:0;font-size:13px;font-weight:650;color:#3b5a4b}
.food-shell .food-filters input:not([type=checkbox]),.food-shell .food-filters select{min-height:46px;border-radius:11px}
.food-shell .food-filter-main .food-button{min-height:46px;padding:0 30px}

.food-multi{position:relative;min-width:0;font-weight:400}
.food-multi>summary{display:flex;justify-content:space-between;align-items:center;gap:8px;min-height:46px;padding:10px 12px;border:1px solid #d6e0d8;border-radius:11px;background:#fff;cursor:pointer;list-style:none;font-size:15px;color:#254134;line-height:1.4}
.food-multi>summary::-webkit-details-marker{display:none}
.food-multi>summary [data-multi-summary]{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.food-multi>summary:focus-visible{outline:2px solid #207b4b;outline-offset:2px}
.food-multi[open]>summary{border-color:#207b4b}
.food-multi-panel{position:absolute;left:0;right:auto;top:calc(100% + 6px);z-index:40;width:max(100%,260px);max-width:calc(100vw - 48px);padding:12px;border:1px solid #b2cdbc;border-radius:14px;background:#fff;box-shadow:0 12px 30px #143b2326}
.food-filter-field:has(+button) .food-multi-panel{left:auto;right:0}
.food-shell .food-filters .food-multi-panel input[type=search]{min-height:38px;padding:7px 10px;font-size:14px}
.food-multi-options{max-height:300px;overflow:auto;overscroll-behavior:contain;margin:6px 0}
.food-shell .food-filters .food-multi-option{display:flex;flex-direction:row;align-items:center;justify-content:flex-start;gap:10px;padding:5px 8px;min-height:34px;border-radius:8px;font-weight:400;font-size:14px;line-height:1.3;text-align:left;color:#254134;cursor:pointer}
.food-shell .food-filters .food-multi-option:hover{background:#f1f7f2}
.food-shell .food-filters .food-multi-option:has(input:checked){background:#e8f3ea;font-weight:600}
.food-shell .food-multi-option[hidden]{display:none}
.food-shell .food-filters .food-multi-option input[type=checkbox]{appearance:auto;flex:0 0 16px;width:16px;height:16px;min-height:16px;min-width:16px;padding:0;margin:0;box-shadow:none;accent-color:#207b4b}
.food-multi-option span{overflow-wrap:anywhere}
.food-multi-actions{display:flex;justify-content:space-between;gap:8px;border-top:1px solid #e4ece7;padding-top:10px}
.food-multi-actions button{font:inherit;font-size:13px;font-weight:650;border:0;border-radius:8px;padding:7px 14px;background:#edf5ef;color:#185233;cursor:pointer}
.food-multi-actions button:last-child{background:#207b4b;color:#fff}

.food-more{margin-top:14px;border-top:1px solid #edf2ee;padding-top:10px}
.food-more>summary{display:inline-flex;align-items:center;gap:8px;list-style:none;cursor:pointer;padding:6px 10px;margin-left:-10px;border-radius:10px;font-size:14px;font-weight:700;color:#17693f;line-height:1.4}
.food-more>summary::-webkit-details-marker{display:none}
.food-more>summary::after{content:"▾";font-size:13px;transition:transform .15s}
.food-more[open]>summary::after{transform:rotate(180deg)}
.food-more>summary:hover{background:#f1f7f2}
.food-more-count{display:inline-grid;place-content:center;min-width:20px;height:20px;padding:0 6px;border-radius:10px;background:#207b4b;color:#fff;font-size:12px}
.food-more-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;align-items:end;margin-top:12px}
.food-more-grid>.food-button{min-height:46px}
.food-more-grid .food-filter-checks{grid-column:1/-1;flex-direction:row;flex-wrap:wrap;gap:8px 28px}
.food-shell .food-more-grid .food-check{flex-direction:row;align-items:center;min-height:32px;font-size:14px;color:#254134}

.food-chips{display:flex;flex-wrap:wrap;gap:8px;align-items:center;margin:14px 0 0}
.food-shell .food-chip{display:inline-flex;align-items:center;gap:8px;max-width:100%;padding:6px 8px 6px 12px;border-radius:20px;background:#e6f2e8;color:#17693f;font-size:13px;font-weight:650;line-height:1.3;text-decoration:none}
.food-shell .food-chip:hover{background:#d8ebdc;text-decoration:none}
.food-chip b{display:inline-grid;place-content:center;flex:0 0 18px;width:18px;height:18px;border-radius:50%;background:#fff;font-size:14px;line-height:1}
.food-shell .food-chips-clear{margin-left:4px;font-size:13px;color:#68786c;text-decoration:underline}

.food-saved-searches{display:flex;flex-wrap:wrap;align-items:center;gap:8px 14px;margin:12px 0 0}
.food-save-btn{font:650 13px/1.3 inherit;font-family:inherit;border:0;background:none;color:#267548;cursor:pointer;padding:8px 4px;min-height:36px}
.food-save-btn:hover{text-decoration:underline}
.food-saved-searches [data-saved-food-list]{display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin:0}
.food-saved-searches [data-saved-food-list][hidden]{display:none}
.food-saved-searches [data-saved-food-list]>strong{font-size:13px;color:#68786c;font-weight:650}
.food-saved-search-list{display:flex;flex-wrap:wrap;gap:8px;margin:0}
.food-saved-search{display:flex;align-items:center;min-width:0;max-width:100%;border:1px solid #c6dccc;border-radius:12px;background:#fff}
.food-saved-search a{display:block;min-width:0;padding:6px 10px;font-size:13px;overflow-wrap:anywhere}
.food-saved-search button{align-self:stretch;flex:0 0 32px;padding:0;border:0;border-left:1px solid #e0e9e2;border-radius:0 12px 12px 0;background:#f0f6f1;font:inherit;font-size:18px;color:#275b3b;cursor:pointer}
.food-saved-searches [data-saved-food-status]{margin:0;font-size:13px}
.food-saved-searches [data-saved-food-status]:empty{display:none}

.food-toolbar-right{display:flex;align-items:center;gap:10px;flex-wrap:wrap;justify-content:flex-end}
.food-shell select.food-sort{width:auto;min-height:40px;padding:8px 12px;border-radius:20px;font-size:14px;font-weight:600}
.food-empty strong{display:block;font-size:18px;margin-bottom:6px}
.food-empty p{margin:0 0 18px;color:#68786c}
.food-empty-actions{display:flex;flex-wrap:wrap;gap:10px;justify-content:center}

@media(max-width:1000px){
.food-filter-main{grid-template-columns:repeat(2,minmax(0,1fr))}
.food-shell .food-filter-main .food-search,.food-filter-main>.food-button{grid-column:1/-1}
.food-more-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
.food-filter-field:has(+button) .food-multi-panel{left:auto;right:0}
}
@media(max-width:640px){
.food-shell .food-filters{padding:14px}
.food-filter-main{gap:12px}
.food-multi-panel{position:static;width:100%;max-width:none;margin-top:6px;box-shadow:none}
.food-multi-panel input[type=search]{font-size:16px}
.food-more-grid{gap:12px}
.food-toolbar{flex-wrap:wrap}
.food-toolbar-right{width:100%;justify-content:space-between}
.food-shell select.food-sort{flex:1}
}

/* Background + motion */
body:has(.food-shell){background:linear-gradient(180deg,#f1f8ec 0,#fafcf6 520px,#fff 100%)}
.food-hero{position:relative;isolation:isolate}
.food-hero::before{content:"";position:absolute;inset:0;z-index:-1;pointer-events:none;border-radius:24px;
 background:radial-gradient(circle at 12% 35%,#f4cb4147 0,transparent 36%),radial-gradient(circle at 88% 15%,#74ad8359 0,transparent 40%),radial-gradient(circle at 55% 95%,#b9dfc440 0,transparent 42%);
 background-size:140% 140%;animation:foodDrift 16s ease-in-out infinite alternate}
.food-hero::after{content:"🥐 🍕 🥗";position:absolute;right:24px;bottom:12px;z-index:-1;pointer-events:none;font-size:30px;letter-spacing:8px;white-space:nowrap;opacity:.55;animation:foodFloat 7s ease-in-out infinite}
.food-shell .food-filters{background:#ffffffeb;backdrop-filter:blur(8px)}
.food-shell .food-filter-main .food-button{transition:transform .15s,box-shadow .15s}
.food-shell .food-filter-main .food-button:hover{transform:translateY(-1px);box-shadow:0 6px 16px #207b4b40}
.food-card{animation:foodUp .5s ease backwards}
.food-card:nth-child(2){animation-delay:.06s}.food-card:nth-child(3){animation-delay:.12s}.food-card:nth-child(4){animation-delay:.18s}.food-card:nth-child(5){animation-delay:.24s}.food-card:nth-child(6){animation-delay:.3s}.food-card:nth-child(n+7){animation-delay:.36s}
.food-stock.is-low{animation:foodPulse 2s ease-in-out infinite}
.food-empty{background:linear-gradient(135deg,#f6f8f3,#eaf4e6);animation:foodUp .5s ease backwards}
@keyframes foodDrift{from{background-position:0 0}to{background-position:100% 60%}}
@keyframes foodFloat{0%,100%{transform:translateY(0)}50%{transform:translateY(16px)}}
@keyframes foodUp{from{opacity:0;transform:translateY(14px)}to{opacity:1;transform:none}}
@keyframes foodPulse{0%,100%{box-shadow:0 0 0 0 #c2571a66}50%{box-shadow:0 0 0 6px #c2571a00}}
@media(max-width:1100px){.food-hero::after{display:none}}
.food-hero{padding-left:20px;padding-right:20px}
.food-more-grid .food-filter-checks{justify-content:flex-start;align-items:center}
@media(prefers-reduced-motion:reduce){.food-hero::before,.food-hero::after,.food-card,.food-stock.is-low,.food-empty{animation:none}}

/* Keep the complete search available behind one compact phone row. */
.food-search-collapse>summary{display:none}
@media(max-width:700px){
.food-search-collapse{margin:0 0 14px;border:1px solid #d3dfd3;border-radius:16px;background:#fff;box-shadow:0 3px 14px #183d3008;overflow:visible}
.food-search-collapse>summary{display:flex;align-items:center;gap:9px;min-height:48px;padding:12px 15px;list-style:none;color:#24543a;font-size:14px;font-weight:750;cursor:pointer}
.food-search-collapse>summary::-webkit-details-marker{display:none}
.food-search-collapse>summary>svg{width:19px;height:19px;fill:none;stroke:currentColor;stroke-width:1.8;flex:none}
.food-search-collapse>summary::after{content:'+';margin-left:auto;font-size:22px;line-height:1}
.food-search-collapse[open]>summary::after{content:'−'}
.food-search-collapse[open]>summary{border-bottom:1px solid #e1e9df}
.food-shell .food-search-collapse>.food-filters{margin:0;border:0;box-shadow:none;background:transparent;border-radius:0 0 16px 16px}
.food-search-collapse>summary:focus-visible{outline:2px solid #207b4b;outline-offset:3px;border-radius:16px}
}

/* Keep filter menus above offer cards and their floating controls. */
.food-shell .food-search-collapse{position:relative;z-index:10;overflow:visible}
.food-shell #food-list{position:relative;z-index:0}

@media(max-width:700px){
  .food-shell .food-saved-searches{margin:8px 0 0;gap:4px 8px}
  .food-shell .food-saved-searches .food-save-btn{font-size:12px}
  .food-shell .food-toolbar{margin:12px 0 10px;gap:6px;font-size:13px}
  .food-shell .food-toolbar-right{display:flex;flex-wrap:wrap;justify-content:flex-start;gap:6px}
  .food-shell .food-toolbar-right .food-sort{width:auto;min-width:0;max-width:100%;flex:1;padding:6px 9px;font-size:12px}
  .food-shell .food-toolbar-right .food-segment{flex:none}
  .food-shell .food-toolbar-right .food-segment button{padding:6px 8px;font-size:12px}
}

@media(max-width:700px){
  .food-shell:has(#food-list)>.food-tabs{margin-bottom:5px;padding-bottom:5px}
  .food-shell .food-hero{min-height:0;padding:12px 14px;margin:0 0 8px;gap:0}
  .food-shell .food-hero .food-eyebrow,
  .food-shell .food-hero>a.food-button{display:none}
  .food-shell .food-hero h1{margin:0;font-size:20px;line-height:1.2}
  .food-shell .food-hero p{margin:4px 0 0;font-size:13px;line-height:1.35}
  .food-shell .food-search-collapse>summary{padding:10px 12px;min-height:0;font-size:14px}
}

@media(max-width:700px){
  .food-shell .food-filter-main{align-items:start;gap:8px}
  .food-shell .food-filter-main>.food-search{order:-1}
  .food-shell .food-filter-main>.food-filter-field:has(.food-multi[open]){
    order:1;grid-column:1/-1
  }
  .food-shell .food-filter-main>.food-button{order:2;min-height:40px}
  .food-shell .food-multi-panel{
    position:static;width:100%;max-width:none;box-sizing:border-box;
    margin-top:4px;padding:8px;box-shadow:none
  }
  .food-shell .food-multi-options{max-height:min(170px,28vh);margin:4px 0}
  .food-shell .food-multi-option{min-height:34px;padding:4px 6px;font-size:13px}
  .food-shell .food-multi-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px;padding-top:6px}
  .food-shell .food-multi-actions>button{min-width:0;padding:6px;font-size:12px;overflow-wrap:anywhere}
}
