.curated-offers-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 20px;
  align-items: stretch;
}

/* A balanced storefront grid: no product is allowed to become a giant banner. */
.curated-offers-grid > *,
.curated-offers-grid > :first-child,
.curated-offers-grid > :nth-child(2),
.curated-offers-grid > :nth-child(3) {
  grid-column: span 3;
  grid-row: auto;
  min-width: 0;
  height: 100%;
}

/* The selected MSI is recognizable as the lead offer without changing its size. */
.curated-offers-grid > :first-child {
  position: relative;
  border-color: rgba(31, 96, 56, 0.52);
  background: #fffdf8;
  box-shadow: 0 10px 28px rgba(28, 65, 41, 0.11);
}

.curated-offers-grid > :first-child::after {
  content: "REKOMENDUOJAME";
  position: absolute;
  z-index: 3;
  top: 16px;
  right: 14px;
  padding: 7px 10px;
  border-radius: 999px;
  color: #fff;
  background: #215f38;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .08em;
  pointer-events: none;
}

.curated-offers-grid > :first-child > a:first-child {
  aspect-ratio: auto;
  min-height: 0;
  max-height: none;
  background: inherit;
}

.curated-offers-grid > :first-child img {
  padding: 0;
}

.curated-offers-grid > :first-child h4,
.curated-offers-grid > :first-child span {
  font-size: inherit;
  line-height: inherit;
}

@media (max-width: 1279px) {
  .curated-offers-grid > *,
  .curated-offers-grid > :first-child,
  .curated-offers-grid > :nth-child(2),
  .curated-offers-grid > :nth-child(3) {
    grid-column: span 4;
  }
}

@media (max-width: 899px) {
  .curated-offers-grid > *,
  .curated-offers-grid > :first-child,
  .curated-offers-grid > :nth-child(2),
  .curated-offers-grid > :nth-child(3) {
    grid-column: span 6;
  }
}

@media (max-width: 559px) {
  .curated-offers-grid > *,
  .curated-offers-grid > :first-child,
  .curated-offers-grid > :nth-child(2),
  .curated-offers-grid > :nth-child(3) {
    grid-column: 1 / -1;
  }
}
