/* Special banner offers (includes/class-offers-manager.php) */
.offers-banners-container .offer-link {
  display: block;
  line-height: 0;
}

.offers-banners-container .offer-image {
  display: block;
  width: 100%;
  height: auto;
}

.offers-banners-grid {
  display: grid;
  gap: 16px;
}

/* Cart and checkout: below the content. js/offers.js matches the width of
   the cart items table / the Place order button; 800px until it runs. */
.offers-banners--cart,
.offers-banners--checkout,
.offers-banners--shortcode {
  max-width: 800px;
  margin: 24px 0 20px;
}

/* Homepage: takes the place of the hero section (same width: up to 1920px). */
.has-offer-home .et-l--body .et_pb_section_0_tb_body {
  display: none;
}

.offers-banners--home {
  max-width: 1920px;
  margin: 0 auto;
}

.offers-banners--home .offers-banners-grid {
  gap: 0;
}

/* Header bar: centered above the header at the image's own size (never
   enlarged, so it stays sharp); it only shrinks on narrow screens. */
.offers-banners--header {
  position: relative;
  z-index: 100000;
}

.offers-banners--header .offers-banners-grid {
  gap: 0;
}

.offers-banners--header .offer-link {
  text-align: center;
}

.offers-banners--header .offer-image {
  display: inline-block;
  width: auto;
  max-width: 100%;
  height: auto;
}
