/* Couponelo v88 - one shared presentation for country coupon cards. */
.country-page .temu-local-grid.ce-v76-layout,
.country-page .ce-v76-more-grid {
  --ce-coupon-gap: 12px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--ce-coupon-gap);
  align-items: stretch;
}
.country-page .ce-v76-layout .temu-local-card {
  box-sizing: border-box;
  min-width: 0;
  margin: 0;
  border-radius: 18px;
  align-items: stretch;
}
.country-page .ce-v76-layout .temu-local-card > .local-head,
.country-page .ce-v76-layout .temu-local-card > .verified-badge,
.country-page .ce-v76-layout .temu-local-card > .local-title,
.country-page .ce-v76-layout .temu-local-card > .local-details,
.country-page .ce-v76-layout .temu-local-card > .sh-button {
  box-sizing: border-box;
  min-width: 0;
  max-width: 100%;
}
.country-page .ce-v76-layout .temu-local-card > .local-head .offer-tag {
  box-sizing: border-box;
  height: auto;
  min-height: 100%;
}
.country-page .ce-v76-layout .temu-local-card > .local-details {
  width: 100%;
  text-align: start;
  align-self: start;
}
.country-page .ce-v76-layout .temu-local-card > .sh-code.coupon-visible {
  width: min(100%, 190px);
  max-width: 190px;
  min-width: 0;
  justify-self: center;
  align-self: stretch;
}
.country-page .ce-v76-layout .temu-local-card > .sh-button {
  align-self: end;
  width: 100%;
  min-height: 48px;
}
/* A lone main offer is centred, but no longer squeezed into half a phone screen. */
.country-page .temu-local-grid.ce-v76-layout.ce-single-offer > .featured-coupon {
  grid-column: 1 / -1;
  width: calc((100% - var(--ce-coupon-gap)) / 2);
  justify-self: center;
}
/* The unpaired last alternative has the same width as its neighbours. */
.country-page .ce-v76-more-grid > .temu-local-card:last-child:nth-child(odd) {
  grid-column: 1 / -1;
  width: calc((100% - var(--ce-coupon-gap)) / 2);
  justify-self: center;
}
/* Keep the aligned nine-row model; fallback is the original seven-row grid. */
@supports (grid-template-rows: subgrid) {
  .country-page .temu-local-grid.ce-v76-layout > .temu-local-card,
  .country-page .ce-v76-more-grid > .temu-local-card {
    grid-row: span 9;
    grid-template-rows: subgrid;
    row-gap: 9px;
  }
  .country-page .ce-v76-layout .temu-local-card > .sh-valid {
    display: grid;
    grid-row: 5 / span 3;
    grid-template-rows: subgrid;
    row-gap: 4px;
  }
  .country-page .ce-v76-layout .temu-local-card > .local-details { grid-row: 8; }
  .country-page .ce-v76-layout .temu-local-card > .sh-button { grid-row: 9; align-self: stretch; }
}
@media (min-width: 760px) {
  .country-page .temu-local-grid.ce-v76-layout,
  .country-page .ce-v76-more-grid { --ce-coupon-gap: 16px; }
}
@media (max-width: 520px) {
  .country-page .temu-local-grid.ce-v76-layout.ce-single-offer > .featured-coupon {
    width: min(100%, 360px);
  }
}
@media (max-width: 350px) {
  .country-page .temu-local-grid.ce-v76-layout,
  .country-page .ce-v76-more-grid { --ce-coupon-gap: 8px; }
}

/* v91: promoted discount uses the same title style as the gift card. */
.country-page .ce-v76-layout .ce-v91-alternative>.local-title{font-size:clamp(14px,2.1vw,20px);line-height:1.3;justify-content:flex-start}
