.catalog .cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr));
  gap: 10px;
}

.restaurant-tile {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr) 12px;
  align-items: center;
  gap: 12px;
  padding: 9px;
  border: 1px solid #dce4ee;
  border-radius: 15px;
  background: white;
  color: #162f50;
  text-align: left;
}

.restaurant-tile:hover,
.restaurant-tile:focus-visible {
  border-color: #8baad7;
  background: #f7faff;
}

.restaurant-thumb {
  display: block;
  width: 72px;
  height: 72px;
  border-radius: 10px;
  object-fit: cover;
}

.restaurant-initial {
  display: grid;
  place-items: center;
  background: #e6effb;
  color: #2455a4;
  font-size: 1.65rem;
}

.restaurant-details,
.offer-details {
  display: grid;
  gap: 3px;
  min-width: 0;
  overflow-wrap: anywhere;
}

.restaurant-details strong { font-size: 1rem; line-height: 1.2; }
.restaurant-details > span { color: #4c5e73; font-size: .78rem; font-weight: 500; }
.restaurant-details .rating-info { justify-self: start; }
.restaurant-chevron { color: #4773ad; font-size: 1.4rem; }

#panel[data-view="menu"] {
  width: min(460px, calc(100% - 24px));
  padding: clamp(16px, 4vw, 22px);
  color: var(--mkt-ink);
}
#panel[data-view="menu"] .panel-head { margin-bottom: 0; align-items: start; }
#panel[data-view="menu"] .panel-head h2 { font-size: clamp(1.24rem, 4.7vw, 1.55rem); line-height: 1.22; overflow-wrap: anywhere; }
#panel[data-view="menu"] .close { flex: none; width: 38px; height: 38px; padding: 0; border-radius: 50%; }
.menu-context { margin: 0 0 12px; color: var(--mkt-muted); font-size: .84rem; line-height: 1.4; }
.menu-about { margin-block: 10px 4px; color: var(--mkt-muted); font-size: .875rem; }
.menu-about > summary { padding-block: 9px; font-weight: 650; color: var(--mkt-action); cursor: pointer; }
.menu-about p { margin: 4px 0 8px; line-height: 1.5; overflow-wrap: anywhere; }
.menu-description, .offer-description p { white-space: pre-line; }
.menu-sharing button { min-height: 36px; font-size: .83rem; padding: 6px 10px; }
#menu-error:empty { margin: 0; }
#menu-error:not(:empty) { margin: 8px 0; color: var(--mkt-action); font-size: .88rem; }
.menu-offer {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 9px 0;
  border-bottom: 1px solid var(--mkt-line);
}

.menu-offer img { border-radius: 10px; object-fit: cover; }
.offer-details { gap: 4px; }
.offer-details strong { color: #172e4d; }
.offer-details b { color: #214d8a; font-size: .87rem; }
.offer-description summary {
  display: flex;
  align-items: center;
  min-height: 28px;
  gap: 6px;
  list-style: none;
  cursor: pointer;
  line-height: 1.35;
}
.offer-description summary::-webkit-details-marker { display: none; }
.offer-description summary::after {
  content: '';
  width: 6px;
  height: 6px;
  flex: none;
  border: solid var(--mkt-muted);
  border-width: 0 1.5px 1.5px 0;
  transform: rotate(45deg) translateY(-1px);
}
.offer-description[open] summary::after { transform: rotate(225deg); }
.offer-description p { margin: 5px 0 0; font-size: .85rem; line-height: 1.45; color: var(--mkt-muted); }
.menu-offer:has(.offer-description[open]) { align-items: start; }
.offer-add {
  position: relative;
  flex: none;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid #cbdcf2;
  border-radius: 50%;
  background: #eef4fc;
  color: #174581;
}
.offer-add svg { width: 18px; height: 18px; }
.offer-add:not(:disabled):hover { background: #dbe8fb; }
.offer-add[data-quantity]::after {
  content: attr(data-quantity);
  position: absolute;
  top: -4px;
  right: -3px;
  min-width: 16px;
  padding: 1px 3px;
  border-radius: 12px;
  background: #174581;
  color: white;
  font-size: .65rem;
}

#panel .offer-checkout {
  display: block;
  margin-top: 6px;
  padding: 12px 16px;
  border-radius: 24px;
  text-align: center;
  font-weight: 700;
  text-decoration: none;
}

@media (max-width: 420px) {
  .restaurant-tile { grid-template-columns: 60px minmax(0, 1fr) 12px; gap: 9px; }
  .restaurant-thumb { width: 60px; height: 60px; }
  .menu-offer img { width: 50px; height: 50px; }
}
