/* EatsOne front order V7.11 — promo chip placement only.
   List: inline immediately before product name.
   Grid: keep original top-left image chip.
   The existing promotion data, modal full name and cart logic are unchanged. */

/* In list mode, hide the existing overlay on the product photo. */
body.order-front-v7 .order-content-area:not(.is-grid-view) .hybrid-product > .product-promo-tags-v292 {
  display: none !important;
}

/* Preserve the natural label + product-name reading order. */
body.order-front-v7 .order-content-area:not(.is-grid-view) .hybrid-product-title {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  min-width: 0;
}
body.order-front-v7 .order-content-area:not(.is-grid-view) .hybrid-product-title h3 {
  flex: 0 1 auto;
  min-width: 0;
  overflow-wrap: break-word;
}

/* Only products that really have an active promotion get this label. */
body.order-front-v7 .order-content-area:not(.is-grid-view) .hybrid-product:has(> .product-promo-tags-v292:not([hidden]) > span) .hybrid-product-title::before {
  content: "優惠中";
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  order: -1;
  min-height: 22px;
  padding: 0 8px;
  border-radius: 999px;
  background: #584b40;
  color: #fff;
  font-size: 10px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: .02em;
  white-space: nowrap;
}

@media (max-width: 600px) {
  body.order-front-v7 .order-content-area:not(.is-grid-view) .hybrid-product-title {
    gap: 6px;
  }
  body.order-front-v7 .order-content-area:not(.is-grid-view) .hybrid-product:has(> .product-promo-tags-v292:not([hidden]) > span) .hybrid-product-title::before {
    min-height: 20px;
    padding: 0 7px;
    font-size: 9px;
  }
}
