/* Dish detail overlay - Wolt/Bolt/YE-like popup, not a separate page */
.sf-dish {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: none;
  align-items: flex-end;
  justify-content: center;
  background: rgba(20, 22, 30, 0.45);
}
.sf-dish.is-open { display: flex; }
.sf-dish__panel {
  position: relative;
  width: 100%;
  max-width: 560px;
  max-height: 92vh;
  overflow: auto;
  background: #fff;
  color: #21201f;
  border-radius: 20px 20px 0 0;
  display: flex;
  flex-direction: column;
}
.sf-dish__close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: #21201f;
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 1px 6px rgba(0, 0, 0, 0.12);
}
.sf-dish__hero {
  background: #f2f2f2;
  flex-shrink: 0;
  min-height: 220px;
}
.sf-dish__hero img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}
.sf-dish__thumbs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 10px 16px 0;
}
.sf-dish__thumbs img {
  width: 64px;
  height: 64px;
  object-fit: cover;
  border-radius: 10px;
  flex-shrink: 0;
}
.sf-dish__body {
  padding: 16px 20px 8px;
  flex: 1;
}
.sf-dish__cat {
  margin: 0;
  color: #757575;
  font-weight: 700;
  font-size: 0.85rem;
}
.sf-dish__title {
  margin: 6px 0 0;
  font-size: 1.45rem;
  font-weight: 800;
}
.sf-dish__desc {
  margin: 8px 0 0;
  color: #6d7185;
  white-space: pre-wrap;
}
.sf-dish__price {
  margin: 10px 0 0;
  font-weight: 800;
}
.sf-dish__sizes {
  list-style: none;
  margin: 12px 0 0;
  padding: 0;
}
.sf-dish__mods { margin: 16px 0 0; }
.sf-dish__modg { margin: 14px 0 0; }
.sf-dish__modg-title {
  margin: 0;
  font-size: 1rem;
  font-weight: 800;
}
.sf-dish__modg-hint {
  margin: 4px 0 8px;
  color: #757575;
  font-size: 0.85rem;
}
.sf-dish__mod {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  margin: 0 0 6px;
  padding: 10px 12px;
  border: 1px solid #ececec;
  border-radius: 12px;
  cursor: pointer;
}
.sf-dish__mod input { margin: 0; }
.sf-dish__mod-title { flex: 1; font-weight: 600; }
.sf-dish__mod-price { color: #757575; white-space: nowrap; }
.sf-dish__mod-qty { display: inline-flex; align-items: center; gap: 8px; }
.sf-dish__mod-qty button {
  width: 30px;
  height: 30px;
  padding: 0;
  border: 1px solid #ddd;
  border-radius: 50%;
  background: #fff;
  font-size: 18px;
}
.sf-dish__add:disabled { opacity: 0.45; cursor: not-allowed; }
.sf-dish__facts {
  margin: 12px 0 0;
  font-weight: 700;
}
.sf-dish__nutri {
  margin: 16px 0 0;
  display: grid;
  gap: 8px;
}
.sf-dish__nutri div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}
.sf-dish__nutri dt { color: #757575; }
.sf-dish__nutri dd { margin: 0; font-weight: 700; }
.sf-dish__fail { margin: 12px 0 0; color: #b42318; }
.sf-dish__unavail {
  margin: 12px 0 0;
  padding: 10px 12px;
  border-radius: 12px;
  background: #f4f4f4;
  color: #5c5c5c;
  font-weight: 600;
}
.sf-dish__bar {
  position: sticky;
  bottom: 0;
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
  background: #fff;
  border-top: 1px solid #ececec;
}
.sf-dish__add {
  display: block;
  width: 100%;
  border: 0;
  border-radius: 16px;
  padding: 14px 18px;
  font: inherit;
  font-weight: 700;
  background: #21201f;
  color: #fff;
  cursor: pointer;
}

body.bl .sf-dish__add { background: #2b8659; border-radius: 12px; }
body.bl .sf-dish__hero img { height: 240px; }
body.wl .sf-dish__add { background: #009de0; }
body.wl .sf-dish__panel { border-radius: 24px 24px 0 0; }
body.ye .sf-dish__add { background: #ffcc00; color: #21201f; }
body.ye .sf-dish__title { font-weight: 700; }
body.ye .sf-dish__hero img { border-radius: 0; }

@media (min-width: 800px) {
  body.ye .sf-dish,
  body.wl .sf-dish {
    align-items: center;
  }
  body.ye .sf-dish__panel,
  body.wl .sf-dish__panel {
    border-radius: 24px;
    max-height: 85vh;
    max-width: 560px;
  }
  body.ye .sf-dish__hero img {
    height: 280px;
    border-radius: 24px 24px 0 0;
  }
}

.bl-item__hit,
.wl-item__hit,
.ye-dish__hit {
  border: 0;
  background: transparent;
  font: inherit;
  text-align: left;
  cursor: pointer;
  width: 100%;
}
