.restaurant-essentials {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin: 0 0 16px;
  padding: 18px 20px;
  border: 1px solid rgba(17, 17, 17, .08);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 10px 28px rgba(25, 20, 28, .07);
}
.restaurant-identity { min-width: 0; }
.restaurant-identity .section-eyebrow { margin: 0 0 4px; color: var(--main-dark); font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.restaurant-identity h2 { margin: 0; font-size: clamp(20px, 3vw, 28px); }
.restaurant-address { margin: 6px 0 2px; color: #333; font-weight: 650; }
.restaurant-service-summary { margin: 0; color: var(--muted); font-size: 14px; }
.restaurant-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }
.restaurant-action { min-height: 42px; padding: 10px 15px; border: 1px solid #d8d8d8; border-radius: 999px; background: #fff; color: #222; cursor: pointer; font-weight: 750; }
.restaurant-action.primary { border-color: #111; background: #111; color: #fff; }
.restaurant-action.quiet { color: #555; }
.server-product-badge { display: inline-flex; padding: 5px 8px; border-radius: 999px; background: #ecf8ef; color: #19672f; font-size: 11px; font-weight: 800; }
.server-product-badge.unavailable { background: #f1f1f1; color: #666; }

.returning-visitor-summary { display: none; }

.restaurant-info-drawer { position: fixed; inset: 0; z-index: 10020; }
.restaurant-info-open { overflow: hidden; }
.restaurant-info-drawer[hidden] { display: none; }
.restaurant-info-backdrop { position: absolute; inset: 0; width: 100%; border: 0; background: rgba(10, 10, 12, .48); backdrop-filter: blur(3px); }
.restaurant-info-panel { position: absolute; top: 0; right: 0; width: min(520px, 100%); height: 100%; overflow: auto; background: #f6f4f6; box-shadow: -20px 0 50px rgba(0,0,0,.18); }
.restaurant-info-panel > header { position: sticky; top: 0; z-index: 2; display: flex; align-items: center; justify-content: space-between; padding: 22px; border-bottom: 1px solid #e7e2e7; background: rgba(255,255,255,.94); backdrop-filter: blur(12px); }
.restaurant-info-panel header small { color: var(--muted); font-weight: 700; }
.restaurant-info-panel header h2 { margin: 3px 0 0; font-size: 28px; }
.restaurant-info-panel header button { width: 44px; height: 44px; border: 0; border-radius: 50%; background: #eee; cursor: pointer; font-size: 28px; }
.info-panel-content { display: grid; gap: 12px; padding: 18px; }
.info-facts-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.info-fact { display: grid; gap: 6px; padding: 16px; border-radius: 16px; background: #fff; }
.info-fact span { color: var(--muted); font-size: 12px; font-weight: 750; text-transform: uppercase; letter-spacing: .05em; }
.info-fact strong { line-height: 1.35; }
.info-fact a { width: fit-content; color: var(--main-dark); font-weight: 800; }

.arrival-map { position: relative; min-height: 230px; overflow: hidden; border-radius: 20px; background: linear-gradient(145deg, #e8ece5, #f4eee8); }
.arrival-map::before, .arrival-map::after { content: ""; position: absolute; width: 160%; height: 26px; left: -30%; background: rgba(255,255,255,.76); transform: rotate(-17deg); box-shadow: 0 0 0 1px rgba(110,110,110,.08); }
.arrival-map::before { top: 38px; }
.arrival-map::after { bottom: 36px; transform: rotate(12deg); }
.arrival-map-line { position: absolute; z-index: 1; left: 32%; top: 53%; width: 38%; border-top: 4px dotted var(--main-dark); transform: rotate(-8deg); }
.arrival-marker { position: absolute; z-index: 2; display: grid; justify-items: center; gap: 4px; max-width: 150px; text-align: center; }
.arrival-marker.marker-0 { right: 8%; top: 32px; }
.arrival-marker.marker-1 { left: 8%; bottom: 25px; }
.marker-pin { display: grid; place-items: center; width: 48px; height: 48px; border: 4px solid #fff; border-radius: 50%; background: #111; color: #fff; box-shadow: 0 8px 20px rgba(0,0,0,.2); font-size: 18px; font-weight: 900; }
.arrival-marker strong, .arrival-marker small { padding: 3px 7px; border-radius: 6px; background: rgba(255,255,255,.92); }
.arrival-marker strong { font-size: 13px; }
.arrival-marker small { color: #555; font-size: 11px; }
.access-point-list { display: grid; gap: 10px; }
.access-point-list article { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px; border-radius: 16px; background: #fff; }
.access-point-list article span { color: var(--muted); font-size: 11px; font-weight: 800; text-transform: uppercase; }
.access-point-list article h3 { margin: 4px 0; font-size: 17px; }
.access-point-list article p, .access-point-list article small { display: block; margin: 3px 0; color: #606060; font-size: 13px; line-height: 1.4; }
.access-point-list article > a { flex: 0 0 auto; padding: 9px 12px; border-radius: 999px; background: #111; color: #fff; font-weight: 750; }

.legal-footer { display: grid; gap: 10px; }
.footer-practical, .footer-legal { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px 16px; }
.footer-practical { color: #292929; }
.footer-practical a { color: var(--main-dark); font-weight: 750; }
.footer-legal { color: var(--muted); font-size: 13px; }
.footer-legal a { display: inline-flex; align-items: center; min-height: 32px; padding: 4px 2px; }

@media (max-width: 720px) {
  .restaurant-essentials { align-items: flex-start; flex-direction: column; margin: 0 0 10px; padding: 12px; gap: 10px; }
  .restaurant-identity .section-eyebrow { display: none; }
  .restaurant-identity h2 { font-size: 20px; line-height: 1.15; }
  .restaurant-address { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; }
  .restaurant-service-summary { font-size: 12px; }
  .restaurant-actions { width: 100%; justify-content: stretch; }
  .restaurant-action { flex: 1 1 0; min-height: 38px; padding: 8px 12px; text-align: center; }
  .restaurant-action.quiet { display: none; }
  .info-facts-row { grid-template-columns: 1fr; }
  /* Leave the application's own navigation visible. Customers can always
     return to the menu without reaching for the browser Back button. */
  .restaurant-info-drawer {
    inset: 0 0 calc(82px + env(safe-area-inset-bottom));
  }
  .restaurant-info-panel {
    top: max(8px, env(safe-area-inset-top));
    bottom: 0;
    height: auto;
    border-radius: 24px 24px 0 0;
  }
  .restaurant-info-panel > header { padding: 16px 18px; }
  .restaurant-info-panel header h2 { font-size: 25px; }
  .restaurant-info-open .mobile-bottom-bar { z-index: 10021; }
  #restaurant-info-toggle[aria-expanded="true"] {
    color: var(--main-dark);
    background: var(--main-light);
  }
  .arrival-map { min-height: 210px; }
  .footer-practical { align-items: flex-start; flex-direction: column; padding: 0 8px; }

  html.storefront-returning .quick-order-hero,
  html.storefront-returning .restaurant-essentials { display: none; }

  html.storefront-returning .returning-visitor-summary {
    display: grid;
    grid-template-columns: auto auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 7px;
    min-height: 54px;
    margin: 0 0 8px;
    padding: 8px 10px;
    border: 1px solid rgba(17,17,17,.08);
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 8px 20px rgba(25,20,28,.06);
  }

  .compact-open-status {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 0 8px;
    border-radius: 999px;
    background: #e8f8ef;
    color: #126b3a;
    font-size: 11px;
    font-weight: 850;
    white-space: nowrap;
  }
  .compact-open-status.paused { background: #fff4e5; color: #93370d; }
  .compact-open-status.suspended { background: #fef9c3; color: #854d0e; }
  .compact-open-status.closed { background: #fee2e2; color: #991b1b; }
  .returning-visitor-summary > strong { font-size: 13px; white-space: nowrap; }
  .compact-restaurant-address { min-width: 0; overflow: hidden; color: #65616a; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
  .returning-visitor-summary > button {
    min-height: 36px;
    padding: 0 11px;
    border: 1px solid #dedade;
    border-radius: 999px;
    background: #fff;
    color: #242126;
    font-weight: 800;
  }
}
