/* Offer cards: clean white cards instead of category-tinted pastel ones. */
.food-shell .food-card[data-category]{border:1px solid #e3eae3;border-radius:18px;background:#fff;box-shadow:0 2px 10px #1d3a2a0d;overflow:hidden;transition:transform .18s,box-shadow .18s,border-color .18s}
.food-shell .food-card[data-category]:hover{transform:translateY(-3px);border-color:#cfdccf;box-shadow:0 14px 32px #1d3a2a1f}
.food-shell .food-card[data-category] .food-card-body{background:#fff;border-top:0;padding:14px 16px 16px}
.food-shell .food-card[data-category] .food-card-place{color:#44604b}
.food-shell .food-card[data-category] .food-card-city{color:#5b7061;font-size:13px;font-weight:600}
.food-shell .food-card .food-card-body h3{display:block;overflow:visible;max-height:none;font-size:16px!important;font-weight:650!important;line-height:1.35!important;margin:0 0 8px!important;color:#14301f;min-height:0;white-space:normal;overflow-wrap:anywhere;word-break:break-word}
.food-shell .food-card .food-card-pickup-time{font-size:12px;line-height:1.45;color:#6a7c6e;margin:0 0 12px}
.food-shell .food-card .food-card-pickup-time strong{font-weight:600;color:#3d5546}

/* Badges on the photo */
.food-shell .food-card .food-discount{top:12px;left:12px;padding:5px 10px;border-radius:8px;background:#ffd84d;color:#3a2f00;font-size:13px;font-weight:800;box-shadow:none}
.food-shell .food-card .food-stock{top:12px;right:12px;padding:5px 11px;border-radius:20px;background:#ffffffeb;color:#17693f;font-size:12px;font-weight:700;box-shadow:0 2px 8px #0002;backdrop-filter:blur(4px)}
.food-shell .food-card .food-stock.is-low{background:#fff1e3;color:#b4500f;animation:none}
.food-shell .food-card .food-stock.is-out{background:#eef0ee;color:#6b766e}

/* Price */
.food-shell .food-card .food-card-price{gap:4px 8px;align-items:baseline;flex-wrap:wrap;margin:0}
.food-shell .food-card .food-card-price>strong{font-size:24px;font-weight:800;letter-spacing:-.02em;color:#17482f}
.food-shell .food-card .food-card-price>del{font-size:13px;color:#8b998f}
.food-shell .food-card .food-save-badge{padding:3px 8px;border-radius:7px;background:#e8f4ea;color:#17693f;font-size:11px;font-weight:700}

/* Actions and favourite */
.food-shell .food-card .food-card-actions{margin-top:14px}
.food-shell .food-card .food-card-actions .food-button{border-radius:10px;background:#17753f;color:#fff;font-weight:700}
.food-shell .food-card .food-card-actions .food-button:hover{background:#146a38}
.food-shell .food-card[data-category] .food-share{border:1px solid #dde6de;border-radius:10px;background:#fff;color:#254134;font-weight:650}
.food-shell .food-card[data-category] .food-share:hover{background:#f3f7f3}
.food-shell .food-card .food-card-save-inline .food-favorite-button{border:1px solid #dde6de;background:#fff;color:#44604b}
.food-shell .food-card .food-card-save-inline .food-favorite-button.is-saved{background:#e8f4ea;border-color:#b9dcc2;color:#17693f}
@media(prefers-reduced-motion:reduce){.food-shell .food-card[data-category]{transition:none}.food-shell .food-card[data-category]:hover{transform:none}}

/* Food listing cards */
.food-shell .food-card[data-category]{position:relative;border-radius:14px}
.food-shell .food-card .food-card-image{aspect-ratio:16/9}
.food-shell .food-card .food-stock{top:auto;right:auto;bottom:10px;left:12px}
.food-shell .food-card .food-card-save-inline{position:absolute!important;top:10px;right:10px;z-index:3;margin:0}
.food-shell .food-card .food-card-save-inline .food-favorite-button{width:36px;height:36px;border-radius:50%;box-shadow:0 2px 8px #0002}
.food-shell .food-card .food-card-heading{display:block;min-height:0;margin-bottom:5px}
.food-shell .food-card .food-card-body h3{margin-bottom:6px!important}
.food-shell .food-card .food-card-body h3>a{display:block;white-space:normal;overflow-wrap:anywhere}
.food-shell .food-card .food-card-pickup-time{margin-bottom:8px}
.food-shell .food-card .food-card-actions{margin-top:9px}
.food-shell .food-card .food-card-actions .food-button,
.food-shell .food-card .food-card-actions .food-share{min-height:36px;padding-block:6px}
@media(min-width:701px){
  .food-offer-modal[open]{width:min(880px,calc(100vw - 40px));height:min(82dvh,570px)}
}

/* Align prices and actions across each row of offers. */
.food-shell .food-grid>.food-card{display:flex;flex-direction:column;min-width:0}
.food-shell .food-grid>.food-card .food-card-image{flex:none}
.food-shell .food-grid>.food-card .food-card-body{position:static;display:flex;flex:1 1 auto;flex-direction:column}
.food-shell .food-grid>.food-card .food-card-price{margin-top:auto;padding-top:3px}
.food-shell .food-grid>.food-card .food-card-actions{flex:none}
@media(min-width:601px){
  .food-shell .food-grid>.food-card .food-card-body h3{min-height:2.7em}
}
@media(max-width:600px){
  .food-shell .food-grid{grid-template-columns:minmax(0,1fr);gap:14px}
}

@media(min-width:901px){
  .food-shell #food-list{grid-template-columns:minmax(0,760px);justify-content:center}
  .food-shell #food-list>.food-card{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr)}
  .food-shell #food-list>.food-card .food-card-image{aspect-ratio:auto;min-height:220px}
  .food-shell #food-list>.food-card .food-card-image>img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
  .food-shell #food-list>.food-card .food-card-body h3{min-height:0}
  .food-shell #food-list>.food-card .food-card-save-inline{left:auto;right:calc(50% + 10px)}
}

@media(max-width:900px){
  .food-shell #food-list{grid-template-columns:minmax(0,560px);justify-content:center}
}

@media(max-width:700px){
  .food-shell #food-list>.food-card{
    --food-card-photo-width:34%;
    display:grid;grid-template-columns:var(--food-card-photo-width) minmax(0,1fr)
  }
  .food-shell #food-list>.food-card .food-card-image{
    position:relative;aspect-ratio:auto;height:auto!important;min-height:148px
  }
  .food-shell #food-list>.food-card .food-card-image>img{
    position:absolute;inset:0;width:100%;height:100%;object-fit:cover
  }
  .food-shell #food-list>.food-card[data-category] .food-card-body{padding:10px;min-width:0}
  .food-shell #food-list>.food-card .food-card-save-inline{left:6px;right:auto;top:36px}
  .food-shell #food-list>.food-card .food-discount{top:6px;left:6px;padding:3px 6px;font-size:11px}
  .food-shell #food-list>.food-card .food-stock{bottom:6px;left:6px;padding:3px 6px;font-size:10px}
  .food-shell #food-list>.food-card .food-card-price>strong{font-size:20px}
  .food-shell #food-list>.food-card .food-card-actions{display:flex;flex-wrap:wrap;gap:5px}
  .food-shell #food-list>.food-card .food-card-actions>*{min-width:0;min-height:36px;padding:6px 8px;font-size:12px}
  .food-shell #food-list>.food-card .food-card-image:has(>img)::after{top:auto;bottom:29px;right:4px;font-size:8px}
}

@media(max-width:700px){
  .food-shell #food-list>.food-card .food-card-save-inline{
    inset:34px auto auto 6px!important;width:auto;min-width:0
  }
  .food-shell #food-list>.food-card .food-card-save-inline .food-favorite-button{width:30px;height:30px}
  .food-shell #food-list>.food-card .food-stock{bottom:25px}
  .food-shell #food-list>.food-card .food-card-watermark{bottom:5px;right:5px;font-size:8px;max-width:calc(100% - 10px)}
  .food-shell #food-list>.food-card .food-card-image:has(>img)::after{display:none!important}
  .food-shell #food-list>.food-card .food-card-body h3{font-size:13px!important;line-height:1.3!important;min-height:0}
  .food-shell #food-list>.food-card .food-card-city,
  .food-shell #food-list>.food-card .food-card-pickup-time{font-size:11px;line-height:1.35}
  .food-shell #food-list>.food-card .food-card-actions>*{font-size:11px;min-height:34px}
}

.food-shell .food-card-price .food-pickup-countdown{
  display:inline-flex;align-items:center;gap:5px 8px;flex-wrap:wrap;
  margin:0 0 0 auto;padding:4px 7px;border:1px solid #d7e6da;border-radius:7px;
  background:#f2f8f2;color:#205c3a;font-size:11px;line-height:1.25
}
.food-shell .food-card-price [data-countdown-digits]{font-size:12px;font-variant-numeric:tabular-nums}
.food-shell .food-card-price [data-countdown-digits][hidden]{display:none}

.food-shell .food-card>.food-card-save-inline{position:absolute!important}
@media(max-width:700px){
  .food-shell #food-list>.food-card>.food-card-save-inline{
    grid-area:1 / 1 / 2 / 2;inset:6px 6px auto auto!important
  }
  .food-shell #food-list>.food-card:has(.food-discount)>.food-card-save-inline{top:33px!important}
}

@media (min-width: 701px) {
  .food-shell #food-list > .food-card > .food-card-save-inline {
    grid-area: 1 / 1 / 2 / 2;
    inset: 10px 10px auto auto !important;
    width: auto;
    min-width: 0;
  }
}
