/* Same-page recipe favourites; desktop keeps the existing overlay unchanged. */
#touchFavoritesView[hidden] { display: none !important; }
body:is([data-layout="mobile"], [data-layout="portrait"]) .favorites-overlay { display: none !important; }
body:is([data-layout="mobile"], [data-layout="portrait"]).touch-favorites-active :is(#bestsellerStrip, #touchMenuHeading, #touchMenuTools, section.touch-menu-section, #info, #over-ons, #checkbox-group, .footer) { display: none !important; }
body:is([data-layout="mobile"], [data-layout="portrait"]) #touchFavoritesView {
  max-width: 1040px; margin: 0 auto 24px; color: var(--touch-ink);
}
body:is([data-layout="mobile"], [data-layout="portrait"]) .touch-favorites-heading { display: grid; justify-items: stretch; gap: 10px; margin: 4px 0 18px; }
/* Owner request 2026-10-27: while the list scrolls, the title and the exit stay at the top (search and categories
   scroll away with the list). Full-width solid background; once stuck, a cover above it fills the status-bar strip
   on iPhones so no dish shows through. */
body:is([data-layout="mobile"], [data-layout="portrait"]) .touch-favorites-heading {
  position: sticky; top: 0; z-index: 90; box-sizing: border-box; width: 100vw; max-width: none;
  margin: 4px calc(50% - 50vw) 10px; padding: 8px max(16px, calc((100vw - 1040px) / 2)) 10px;
  background: var(--touch-canvas);
}
body:is([data-layout="mobile"], [data-layout="portrait"]) .touch-favorites-heading[data-stuck="true"] { box-shadow: 0 1px 0 var(--touch-line); }
body:is([data-layout="mobile"], [data-layout="portrait"]) .touch-favorites-heading[data-stuck="true"]::before {
  content: ""; position: absolute; left: 0; right: 0; bottom: 100%; height: 120px; background: inherit; pointer-events: none;
}
.touch-favorites-sentinel { display: block; height: 0; }
body:is([data-layout="mobile"], [data-layout="portrait"]) .touch-favorites-title-row { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
body:is([data-layout="mobile"], [data-layout="portrait"]) .touch-favorites-title-row > span { flex: none; color: #999b91; font-size: 10px; white-space: nowrap; }
body:is([data-layout="mobile"], [data-layout="portrait"]) .touch-favorites-heading h2 { margin: 0; font-size: 22px; line-height: 1.25; letter-spacing: -.3px; }
body:is([data-layout="mobile"], [data-layout="portrait"]) #touchFavoritesBack {
  justify-self: start; width: max-content; max-width: 100%; min-height: 44px; padding: 8px 13px; border: 0; border-radius: 13px;
  background: #fdf0ed; color: #b93830; font: inherit; font-size: 13px; font-weight: 650;
}
body:is([data-layout="mobile"], [data-layout="portrait"]) .touch-favorites-tools { padding: 8px 0; }
body:is([data-layout="mobile"], [data-layout="portrait"]) .touch-favorites-tools .touch-search { height: 46px; border-radius: 13px; }
body:is([data-layout="mobile"], [data-layout="portrait"]) .touch-favorites-tools .touch-search svg { width: 17px; height: 17px; }
body:is([data-layout="mobile"], [data-layout="portrait"]) #touchFavoritesSearch {
  flex: 1; min-width: 0; width: 100%; height: 46px; padding: 0 !important; border: 0 !important;
  border-radius: 0 !important; outline: 0 !important; box-shadow: none !important;
  background: transparent !important; color: var(--touch-ink); font: inherit; font-size: 16px;
}
body:is([data-layout="mobile"], [data-layout="portrait"]) #touchFavoritesSearch::placeholder { color: var(--touch-muted); opacity: 1; }
body:is([data-layout="mobile"], [data-layout="portrait"]) #touchFavoritesCategoryList { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; }
#touchFavoritesCategoryList::-webkit-scrollbar { display: none; }
body:is([data-layout="mobile"], [data-layout="portrait"]) #touchFavoritesCategoryList[data-keyboard="false"] button:focus { outline: none; }
body:is([data-layout="mobile"], [data-layout="portrait"]) .touch-favorites-count { margin: 8px 2px 0; color: var(--touch-muted); font-size: 12px; }
body:is([data-layout="mobile"], [data-layout="portrait"]) .touch-favorites-note { margin: 0 0 14px; color: var(--touch-muted); font-size: 12px; line-height: 1.55; }
.touch-favorites-note[hidden] { display: none !important; }
body:is([data-layout="mobile"], [data-layout="portrait"]) .touch-favorites-list { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; }
body:is([data-layout="mobile"], [data-layout="portrait"]) .touch-favorite-card,
body:is([data-layout="mobile"], [data-layout="portrait"]) .touch-favorites-empty {
  min-width: 0; padding: 16px; border: 1px solid var(--touch-line); border-radius: 20px; background: #fff;
}
body:is([data-layout="mobile"], [data-layout="portrait"]) .touch-favorite-card header { display: grid; grid-template-columns: 88px minmax(0, 1fr) 44px; align-items: start; gap: 12px; }
/* Dish photo (owner request 2026-10-27): the 88px photo of the dish's menu card, on the left like the menu. */
body:is([data-layout="mobile"], [data-layout="portrait"]) .touch-favorite-photo {
  display: grid; place-items: center; width: 88px; height: 88px; border-radius: 12px; overflow: hidden;
  background: #f3f2ec; color: #a6aa9c;
}
body:is([data-layout="mobile"], [data-layout="portrait"]) .touch-favorite-photo img { display: block; width: 100%; height: 100%; object-fit: cover; }
body:is([data-layout="mobile"], [data-layout="portrait"]) .touch-favorite-photo svg { width: 34px; height: 34px; }
body:is([data-layout="mobile"], [data-layout="portrait"]) .touch-favorite-card header > div { min-width: 0; align-self: center; }
/* base.css centres every h3 and p; with a photo on the left the card reads like the menu card, left aligned. */
body:is([data-layout="mobile"], [data-layout="portrait"]) .touch-favorite-card :is(h3, p, .touch-favorite-category) { text-align: left; }
html[data-theme="dark"] body:is([data-layout="mobile"], [data-layout="portrait"]) .touch-favorite-photo { background: rgba(255, 255, 255, .06); color: rgba(255, 255, 255, .38); }
@media (max-width: 360px) {
  body:is([data-layout="mobile"], [data-layout="portrait"]) .touch-favorite-card header { grid-template-columns: 72px minmax(0, 1fr) 44px; gap: 10px; }
  body:is([data-layout="mobile"], [data-layout="portrait"]) .touch-favorite-photo { width: 72px; height: 72px; }
}
body:is([data-layout="mobile"], [data-layout="portrait"]) .touch-favorite-category { display: block; margin-bottom: 4px; color: #8d9489; font-size: 10px; letter-spacing: .04em; }
body:is([data-layout="mobile"], [data-layout="portrait"]) .touch-favorite-title { margin: 0; font-size: 17px; line-height: 1.35; overflow-wrap: anywhere; }
body:is([data-layout="mobile"], [data-layout="portrait"]) .touch-favorite-remove {
  flex: none; display: grid; place-items: center; width: 44px; height: 44px; border: 0; border-radius: 12px;
  background: #fdf0ed; color: #b93830;
}
body:is([data-layout="mobile"], [data-layout="portrait"]) .touch-favorite-remove svg { width: 22px; height: 22px; fill: currentColor; }
body:is([data-layout="mobile"], [data-layout="portrait"]) .touch-favorite-summary { margin: 12px 0 8px; color: var(--touch-muted); font-size: 13px; line-height: 1.55; overflow-wrap: anywhere; }
body:is([data-layout="mobile"], [data-layout="portrait"]) .touch-favorite-serving { margin: 0 0 10px; color: var(--touch-muted); font-size: 12px; }
body:is([data-layout="mobile"], [data-layout="portrait"]) .touch-favorite-price-row { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px; margin-bottom: 12px; }
body:is([data-layout="mobile"], [data-layout="portrait"]) .touch-favorite-price { font-size: 17px; }
body:is([data-layout="mobile"], [data-layout="portrait"]) .touch-favorite-deposit { color: var(--touch-muted); font-size: 12px; }
body:is([data-layout="mobile"], [data-layout="portrait"]) .touch-favorite-reason { margin: 0 0 10px; color: #9a322a; font-size: 12px; }
body:is([data-layout="mobile"], [data-layout="portrait"]) .touch-favorite-actions { display: flex; gap: 8px; }
body:is([data-layout="mobile"], [data-layout="portrait"]) .touch-favorite-actions button {
  min-height: 44px; padding: 9px 12px; border: 1px solid var(--touch-line); border-radius: 12px;
  font: inherit; font-size: 13px; font-weight: 650;
}
body:is([data-layout="mobile"], [data-layout="portrait"]) .touch-favorite-edit { background: white; color: var(--touch-ink); }
body:is([data-layout="mobile"], [data-layout="portrait"]) .touch-favorite-add { flex: 1; background: #b93830; color: white; border-color: #b93830 !important; }
body:is([data-layout="mobile"], [data-layout="portrait"]) .touch-favorite-actions button:disabled { opacity: .5; cursor: not-allowed; }
body:is([data-layout="mobile"], [data-layout="portrait"]) .touch-favorites-empty { text-align: center; color: var(--touch-muted); font-size: 13px; line-height: 1.6; }
body:is([data-layout="mobile"], [data-layout="portrait"]) .touch-favorites-empty-icon { display: grid; place-items: center; width: 62px; height: 62px; margin: 0 auto 16px; border-radius: 21px; background: #f6f5ef; color: #acae9f; }
body:is([data-layout="mobile"], [data-layout="portrait"]) .touch-favorites-empty-icon svg { width: 25px; height: 25px; fill: none; stroke: currentColor; stroke-width: 1.7; }
body:is([data-layout="mobile"], [data-layout="portrait"]) .touch-favorites-empty h3 { margin: 0 0 9px; color: var(--touch-ink); font-size: 17px; }
body:is([data-layout="mobile"], [data-layout="portrait"]) .touch-favorites-empty p { max-width: 290px; margin: 0 auto 20px; }
body:is([data-layout="mobile"], [data-layout="portrait"]) .touch-favorites-empty-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
body:is([data-layout="mobile"], [data-layout="portrait"]) .touch-favorites-empty button { min-height: 44px; padding: 11px 18px; border: 0; border-radius: 13px; background: #fdf0ed; color: #b93830; font: inherit; font-weight: 650; }
body:is([data-layout="mobile"], [data-layout="portrait"]) #mobileQuickActions #mobileFavoritesFab[aria-current="page"] { color: #b93830 !important; }
@media (min-width: 700px) {
  body:is([data-layout="mobile"], [data-layout="portrait"]) .touch-favorites-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
