/* Compact hot offers. Preserve readable type and touch targets instead of
   scaling the whole card. Compatibility selectors cover the verified runtime. */
html :is(.auto-hot-deal-card, .peek-carousel__slide > article.min-h-56[class~="border-orange-200/70"]) {
  min-height: 136px;
  padding: 10px;
  gap: 3px;
  border-radius: 16px;
}
html :is(.auto-hot-deal-card, .peek-carousel__slide > article.min-h-56[class~="border-orange-200/70"]) > div:first-child { margin-bottom: 0; min-height: 18px; }
html :is(.auto-hot-deal-card, .peek-carousel__slide > article.min-h-56[class~="border-orange-200/70"]) > div:first-child > span { padding-block: 2px; }
html :is(.auto-hot-deal-card, .peek-carousel__slide > article.min-h-56[class~="border-orange-200/70"]) > h3 { font-size: 14px; line-height: 18px; -webkit-line-clamp: 1; }
html :is(.auto-hot-deal-card, .peek-carousel__slide > article.min-h-56[class~="border-orange-200/70"]) > p { margin-top: 0; font-size: 12px; line-height: 16px; -webkit-line-clamp: 1; }
html :is(.auto-hot-deal-card, .peek-carousel__slide > article.min-h-56[class~="border-orange-200/70"]) > div:last-child {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 8px;
  padding-top: 3px;
}
html :is(.auto-hot-deal-card, .peek-carousel__slide > article.min-h-56[class~="border-orange-200/70"]) > div:last-child > div {
  min-width: 0;
  flex-direction: column;
  align-items: flex-start;
  gap: 0;
}
html :is(.auto-hot-deal-card, .peek-carousel__slide > article.min-h-56[class~="border-orange-200/70"]) > div:last-child > div > div { display: flex; flex-wrap: wrap; align-items: baseline; column-gap: 6px; }
html :is(.auto-hot-deal-card, .peek-carousel__slide > article.min-h-56[class~="border-orange-200/70"]) .text-xl { font-size: 17px; line-height: 22px; }
html :is(.auto-hot-deal-card, .peek-carousel__slide > article.min-h-56[class~="border-orange-200/70"]) .line-through { font-size: 11px; line-height: 14px; }
html :is(.auto-hot-deal-card, .peek-carousel__slide > article.min-h-56[class~="border-orange-200/70"]) > div:last-child > div > p { margin-bottom: 0; font-size: 11px; line-height: 15px; }
html :is(.auto-hot-deal-card, .peek-carousel__slide > article.min-h-56[class~="border-orange-200/70"]) button { width: auto; min-height: 40px; margin-top: 0; padding-inline: 10px; font-size: 12px; gap: 6px; }
html .peek-carousel__slide > div.min-h-56.animate-pulse { min-height: 136px; }

/* The home partner-offer cards use the same hot-service data. */
html .desktop-home .dh-offer { padding: 10px; gap: 3px; border-radius: 14px; }
html .desktop-home .dh-offer-tag { padding: 2px 7px; line-height: 14px; }
html .desktop-home .dh-offer h3 { margin: 0; font-size: 14px; line-height: 18px; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 1; overflow: hidden; }
html .desktop-home .dh-offer p { margin-bottom: 3px; font-size: 12px; line-height: 16px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 100%; }
html .desktop-home .dh-offer > div { min-height: 28px; gap: 6px; flex-wrap: wrap; }
html .desktop-home .dh-offer strong { font-size: 17px; line-height: 22px; }

/* Compact customer hot offers, matched against the 1.28.44 runtime.
   Natural height is retained for long names, expiry, locations and prices.
   Shared Food menu cards and dormant BeautyHotServicesSection are excluded. */

/* Travel: the section id is a stable, translated-label-independent anchor.
   Put the identity, offer and price in short rows beside the small logo. */
html section[aria-labelledby="travel-hot-services-heading"] .peek-carousel__slide > a[class~="border-orange-200/70"] {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr) auto;
  grid-template-rows: auto auto auto auto;
  align-content: start;
  column-gap: 6px;
  row-gap: 3px;
  min-height: 80px;
  padding: 8px;
  border-radius: 12px;
}
html section[aria-labelledby="travel-hot-services-heading"] .peek-carousel__slide > a[class~="border-orange-200/70"] > div:first-child {
  display: contents;
}
html section[aria-labelledby="travel-hot-services-heading"] .peek-carousel__slide > a[class~="border-orange-200/70"] > div:first-child > span:first-child {
  grid-column: 1;
  grid-row: 1 / 3;
  width: 24px;
  height: 24px;
  border-radius: 6px;
}
html section[aria-labelledby="travel-hot-services-heading"] .peek-carousel__slide > a[class~="border-orange-200/70"] > div:first-child > p {
  grid-column: 2;
  grid-row: 1;
  margin: 0;
  -webkit-line-clamp: 1;
}
html section[aria-labelledby="travel-hot-services-heading"] .peek-carousel__slide > a[class~="border-orange-200/70"] > div:first-child > span:not(:first-child) {
  grid-column: 3;
  grid-row: 1;
  align-self: start;
  padding: 1px 5px;
}
html section[aria-labelledby="travel-hot-services-heading"] .peek-carousel__slide > a[class~="border-orange-200/70"] > h3 {
  grid-column: 2 / -1;
  grid-row: 2;
  line-height: 1.25;
  -webkit-line-clamp: 1;
}
html section[aria-labelledby="travel-hot-services-heading"] .peek-carousel__slide > a[class~="border-orange-200/70"] > p {
  grid-column: 2 / -1;
  grid-row: 3;
  margin-top: 0;
  -webkit-line-clamp: 1;
}
html section[aria-labelledby="travel-hot-services-heading"] .peek-carousel__slide > a[class~="border-orange-200/70"] > div:last-child {
  grid-column: 2 / -1;
  grid-row: 4;
  align-items: center;
  gap: 4px 6px;
  margin-top: 0;
  padding-top: 1px;
}
html section[aria-labelledby="travel-hot-services-heading"] .peek-carousel__slide > a[class~="border-orange-200/70"] > div:last-child > div {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 2px 6px;
}
html section[aria-labelledby="travel-hot-services-heading"] .peek-carousel__slide > a[class~="border-orange-200/70"] > div:last-child [class~="text-base"] {
  font-size: 14px;
  line-height: 20px;
}

/* Fitness: this exact direct warm banner identifies HotDealCard only.
   Price and the existing action share the final row; no information is removed. */
html .fitness-theme div.rounded-3xl.border.bg-card:has(> div.fit-warm-bg) {
  border-radius: 14px;
}
html .fitness-theme div.rounded-3xl.border.bg-card:has(> div.fit-warm-bg) > div.fit-warm-bg {
  gap: 6px;
  padding: 4px 10px;
  font-size: 12px;
  line-height: 16px;
}
html .fitness-theme div.rounded-3xl.border.bg-card:has(> div.fit-warm-bg) > div.p-4 {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: 3px 8px;
  padding: 8px 10px;
}
html .fitness-theme div.rounded-3xl.border.bg-card:has(> div.fit-warm-bg) > div.p-4 > :is(h4,p) {
  grid-column: 1 / -1;
  margin-top: 0;
}
html .fitness-theme div.rounded-3xl.border.bg-card:has(> div.fit-warm-bg) > div.p-4 > h4 {
  font-size: 14px;
  line-height: 18px;
}
html .fitness-theme div.rounded-3xl.border.bg-card:has(> div.fit-warm-bg) > div.p-4 > p:not(:has(svg)) {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 1;
  overflow: hidden;
  font-size: 12px;
  line-height: 16px;
}
html .fitness-theme div.rounded-3xl.border.bg-card:has(> div.fit-warm-bg) > div.p-4 > div.mt-3:not(:has(> div.items-baseline)) {
  grid-column: 1 / -1;
  flex-wrap: wrap;
  gap: 3px 10px;
  margin-top: 0;
}
html .fitness-theme div.rounded-3xl.border.bg-card:has(> div.fit-warm-bg) > div.p-4 > div.mt-3:has(> div.items-baseline) {
  grid-column: 1;
  align-self: center;
  flex-wrap: wrap;
  gap: 4px 8px;
  margin-top: 0;
  min-width: 0;
}
html .fitness-theme div.rounded-3xl.border.bg-card:has(> div.fit-warm-bg) > div.p-4 > div.mt-3:has(> div.items-baseline) > div {
  flex-wrap: wrap;
  gap: 2px 6px;
}
html .fitness-theme div.rounded-3xl.border.bg-card:has(> div.fit-warm-bg) > div.p-4 > div.mt-3:has(> div.items-baseline) .text-xl {
  font-size: 16px;
  line-height: 22px;
}
html .fitness-theme div.rounded-3xl.border.bg-card:has(> div.fit-warm-bg) > div.p-4 > button {
  grid-column: 2;
  align-self: center;
  width: auto;
  height: auto;
  min-height: 36px;
  margin-top: 0;
  padding: 6px 12px;
  font-size: 13px;
  line-height: 18px;
}

/* Business-detail hot offers only. The existing buttons, expiry dates and
   expandable descriptions remain intact. No fixed height or global scaling. */

/* Auto: carwash and service-centre offer cards share this component. */
html .wash-care__section--hot .wash-care__deals {
  gap: 6px;
}
/* A narrow two-column card cannot fit a full price and action on one row.
   Use the same swipeable width as the catalog hot offers on small screens. */
@media (max-width: 639px) {
  html .wash-care__section--hot .wash-care__deals,
  html .beauty-detail section > .grid:has(> article[class~="from-orange-50/70"][class~="bg-gradient-to-b"]) {
    grid-template-columns: none;
    grid-auto-flow: column;
    grid-auto-columns: calc(100% - 28px);
    align-items: start;
    gap: 8px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding-bottom: 4px;
  }
  html .wash-care__section--hot .wash-care__deal,
  html .beauty-detail section > .grid > article[class~="from-orange-50/70"][class~="bg-gradient-to-b"] { scroll-snap-align: start; }
}
@media (min-width: 640px) and (max-width: 1023px) {
  html .beauty-detail section > .grid:has(> article[class~="from-orange-50/70"][class~="bg-gradient-to-b"]) { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
html .wash-care__section--hot :is(.wash-care__deal-title, .wash-care__service),
html .beauty-detail section > .grid > article[class~="from-orange-50/70"][class~="bg-gradient-to-b"] > div:first-child > :is(h3,p) {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 1;
  overflow: hidden;
}
html .wash-care__section--hot .wash-care__deal {
  border-radius: 12px;
  container-type: inline-size;
}
html .wash-care__section--hot .wash-care__deal-main {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-content: start;
  align-items: center;
  gap: 3px 6px;
  padding: 8px;
  border-radius: 12px;
}
html .wash-care__section--hot .wash-care__deal-main > :is(.wash-care__deal-top, .wash-care__deal-title, .wash-care__service) {
  grid-column: 1 / -1;
}
html .wash-care__section--hot .wash-care__deal-main > .wash-care__price {
  flex-direction: row;
  flex-wrap: wrap;
  align-items: baseline;
  column-gap: 5px;
  row-gap: 1px;
  margin: 0;
  padding: 0;
}
html .wash-care__section--hot .wash-care__deal-main > .wash-care__price > span {
  column-gap: 3px;
}
html .wash-care__section--hot .wash-care__deal-action {
  width: auto;
  min-height: 32px;
  gap: 3px;
  border: 0;
  padding: 0;
}
html .wash-care__section--hot .wash-care__deal-details {
  margin: -3px 8px 4px;
}
html .wash-care__section--hot .wash-care__deal-details summary {
  min-height: 28px;
  padding-block: 5px;
}

/* Food: a compact title/price row, with the action beside supporting text.
   The exact legacy selector also matches release 1.28.44 without JS edits. */
html .peek-carousel__slide > article.min-h-48[class~="border-orange-200/70"] {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-content: start;
  gap: 4px 8px;
  min-height: 0;
  height: auto;
  padding: 10px;
  border-radius: 12px;
}
html .peek-carousel__slide > article.min-h-48[class~="border-orange-200/70"] > div {
  display: contents;
}
html .peek-carousel__slide > article.min-h-48[class~="border-orange-200/70"] > div:first-child > h3 {
  grid-area: 1 / 1 / 2 / 3;
  font-size: 14px;
  line-height: 18px;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 1;
  overflow: hidden;
}
html .peek-carousel__slide > article.min-h-48[class~="border-orange-200/70"] > div:first-child > p {
  grid-area: 2 / 1 / 3 / 3;
  margin: 0;
  -webkit-line-clamp: 1;
  line-height: 1.35;
}
html .peek-carousel__slide > article.min-h-48[class~="border-orange-200/70"] > div:last-child > div {
  grid-area: 3 / 1;
  justify-content: flex-start;
  align-self: start;
  min-width: 0;
  column-gap: 4px;
  row-gap: 0;
  margin: 0;
}
html .peek-carousel__slide > article.min-h-48[class~="border-orange-200/70"] > div:last-child > p {
  grid-area: 4 / 1;
  align-self: center;
  margin: 0;
}
html .peek-carousel__slide > article.min-h-48[class~="border-orange-200/70"] > div:last-child > button {
  grid-area: 3 / 2 / 5 / 3;
  align-self: end;
  width: auto;
  min-height: 44px;
  height: auto;
  margin: 0;
  padding-inline: 8px;
  gap: 4px;
  border-radius: 9px;
}

/* Beauty: inline price and booking action; details expand in normal flow. */
html .beauty-detail section > .grid > article[class~="from-orange-50/70"][class~="bg-gradient-to-b"] {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-content: start;
  align-items: center;
  gap: 4px 6px;
  padding: 8px;
  border-radius: 12px;
  container-type: inline-size;
}
html .beauty-detail section > .grid > article[class~="from-orange-50/70"][class~="bg-gradient-to-b"] > div:first-child {
  grid-column: 1 / -1;
}
html .beauty-detail section > .grid > article[class~="from-orange-50/70"][class~="bg-gradient-to-b"] > div:first-child > p {
  margin-top: 2px;
}
html .beauty-detail section > .grid > article[class~="from-orange-50/70"][class~="bg-gradient-to-b"] > div:nth-child(2) {
  grid-area: 2 / 1;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0 4px;
  margin: 0;
}
html .beauty-detail section > .grid > article[class~="from-orange-50/70"][class~="bg-gradient-to-b"] > button {
  grid-area: 2 / 2;
  width: auto;
  height: auto;
  min-height: 36px;
  padding-inline: 6px;
  border-radius: 9px;
  gap: 2px;
}
html .beauty-detail section > .grid > article[class~="from-orange-50/70"][class~="bg-gradient-to-b"] > button > svg {
  display: none;
}
html .beauty-detail section > .grid > article[class~="from-orange-50/70"][class~="bg-gradient-to-b"] > :is(p, details) {
  grid-column: 1 / -1;
}
html .beauty-detail section > .grid > article[class~="from-orange-50/70"][class~="bg-gradient-to-b"] > details > summary {
  min-height: 28px;
  padding-block: 5px;
}
html .beauty-detail section > .grid > article[class~="from-orange-50/70"][class~="bg-gradient-to-b"] > details[open] > p {
  padding-top: 4px;
}

/* On unusually narrow cards, retain readable prices and full action labels. */
@container (max-width: 145px) {
  html .wash-care__section--hot .wash-care__deal-main {
    grid-template-columns: minmax(0, 1fr);
  }
  html .wash-care__section--hot .wash-care__deal-action {
    grid-column: 1;
  }
  html .beauty-detail section > .grid > article[class~="from-orange-50/70"][class~="bg-gradient-to-b"] > div:nth-child(2) {
    grid-area: 2 / 1 / 3 / 3;
  }
  html .beauty-detail section > .grid > article[class~="from-orange-50/70"][class~="bg-gradient-to-b"] > button {
    grid-area: 3 / 1 / 4 / 3;
    width: 100%;
  }
}
