/* Storefront fixes from the 2026-10-11 review. */

/* The status row styles every chip, which cancelled [hidden] and left an
   empty chip when the rating is off. */
#hero-rating[hidden] {
  display: none;
}

/* A product image that could not load shows a neutral tile, not its alt text
   or the browser's broken-image icon. */
img.image-missing {
  opacity: 0;
}

.product-media:has(img.image-missing),
.cart-item:has(img.image-missing) .cart-item-img {
  background: linear-gradient(135deg, #f4eef3, #ece6ea);
}

/* The bar for logged-in merchants stays in a corner instead of covering dishes. */
.front-admin-bar {
  left: 12px;
  transform: none;
  gap: 8px;
  padding: 6px 8px 6px 12px;
  white-space: nowrap;
}

.front-admin-bar strong {
  font-size: 12px;
}

@media (max-width: 640px) {
  .front-admin-bar {
    padding: 4px 6px;
    font-size: 12px;
  }

  .front-admin-bar strong {
    display: none;
  }

  .front-admin-bar .front-admin-toggle,
  .front-admin-bar a {
    padding: 6px 10px;
    font-size: 12px;
  }

  /* Long restaurant names wrap on two lines instead of "…". */
  .quick-order-hero h1 {
    display: -webkit-box;
    overflow: hidden;
    white-space: normal;
    text-overflow: clip;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }

  /* Only necessary cookies are used: keep the notice short on phones. */
  .privacy-banner {
    left: 10px;
    right: 10px;
    bottom: calc(10px + env(safe-area-inset-bottom));
    gap: 8px;
    padding: 12px 14px;
    border-radius: 16px;
  }

  .privacy-banner h2 {
    font-size: 15px;
  }

  /* The full explanation stays one tap away in the cookie settings. */
  .privacy-banner h2 + p {
    display: none;
  }

  .privacy-banner-actions {
    flex-wrap: nowrap;
  }

  .privacy-banner-actions button {
    flex: 1 1 0;
    padding: 9px 10px;
    font-size: 14px;
  }
}
