/* Homepage promotions only. Product, text and price areas keep their own theme. */
.infr-home-deal-layout .infr-home-deal-media,
.infr-home-deal-layout .infr-home-deal-featured > .flex > .relative:has(> .infr-home-deal-media--hero) {
  background: linear-gradient(180deg, #fdf9ff 0%, #f6f4fa 45%, #e7e8ed 100%) !important;
  min-width: 0;
}
.infr-home-deal-layout .infr-home-deal-media > img.infr-home-deal-image {
  box-sizing: border-box;
  max-width: 100%;
  object-fit: contain;
  object-position: center;
  padding: 48px 14px 14px;
  background: transparent;
  mix-blend-mode: normal;
}
.infr-home-deal-layout .infr-home-deal-media--hero > img.infr-home-deal-image {
  padding: 54px 20px 20px;
}
.infr-home-deal-layout .infr-home-deal-accessory .infr-home-deal-media > img.infr-home-deal-image {
  padding: 40px 12px 8px;
}
.infr-home-deal-layout .infr-home-deal-accessory .infr-home-deal-media {
  --infr-home-accessory-media-height: 220px;
  height: var(--infr-home-accessory-media-height);
  min-height: var(--infr-home-accessory-media-height) !important;
  aspect-ratio: auto !important;
  flex: 0 0 auto;
}
/* The ninth card is no longer compressed into leftover desktop column space. */
@media (min-width: 1024px) {
  .infr-home-deal-layout:has(.infr-home-deal-grid > :nth-child(6)) .infr-home-deal-left:has(.infr-home-deal-accessory) {
    contain: none;
  }
  .infr-home-deal-layout:has(.infr-home-deal-grid > :nth-child(6)) .infr-home-deal-left > .infr-home-deal-accessory {
    flex: 0 0 auto;
  }
  .infr-home-deal-layout:has(.infr-home-deal-grid > :nth-child(6)) .infr-home-deal-left > .infr-home-deal-accessory .infr-home-deal-media {
    min-height: var(--infr-home-accessory-media-height) !important;
    flex: 0 0 auto;
  }
  /* Share the taller column height with the six-card grid, not the GPU image. */
  .infr-home-deal-layout:has(.infr-home-deal-grid > :nth-child(6)) > .infr-home-deal-right {
    display: flex;
    flex-direction: column;
  }
  .infr-home-deal-layout:has(.infr-home-deal-grid > :nth-child(6)) > .infr-home-deal-right > :not(.infr-home-deal-grid) {
    flex: 0 0 auto;
  }
  .infr-home-deal-layout:has(.infr-home-deal-grid > :nth-child(6)) > .infr-home-deal-right > .infr-home-deal-grid {
    flex: 1 0 auto;
    grid-auto-rows: 1fr;
  }
}
@media (max-width: 640px) {
  .infr-home-deal-layout .infr-home-deal-media > img.infr-home-deal-image {
    padding: 41px 10px 12px;
  }
  .infr-home-deal-layout .infr-home-deal-media--hero > img.infr-home-deal-image {
    padding: 44px 16px 16px;
  }
  .infr-home-deal-layout .infr-home-deal-accessory .infr-home-deal-media > img.infr-home-deal-image {
    padding: 36px 12px 10px;
  }
  .infr-home-deal-layout .infr-home-deal-accessory .infr-home-deal-media {
    --infr-home-accessory-media-height: 190px;
  }
}
