/* Apex Banner Block */

.apex-banner {
  box-sizing: border-box;
  width: 100%;
  overflow: hidden;
  font-family: inherit;
}

.apex-banner *,
.apex-banner *::before,
.apex-banner *::after {
  box-sizing: border-box;
}

.apex-banner__link {
  display: block;
  color: inherit;
  text-decoration: none;
}

.apex-banner picture,
.apex-banner__image {
  display: block;
  width: 100%;
  height: auto;
}

/* Mobile image variant: hidden by default everywhere. Banners that haven't
   configured a mobile image never render one (Twig's {% if %} guard), so
   this rule never has an effect on them.
   This block has several layout-specific rules further down with varying
   specificity (some scoped with "section.apex-banner.apex-banner--X", which
   beats a plain class selector) that also set "display" on .apex-banner__image.
   !important guarantees the mobile variant stays hidden outside the mobile
   breakpoint regardless of which layout is active, without having to chase
   every existing selector's specificity. */
.apex-banner__image--mobile {
  display: none !important;
}

.apex-banner__heading {
  margin: 0;
  color: #292929;
  font-size: 46px;
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1.1;
  text-transform: uppercase;
}

.apex-banner__body {
  margin-top: 26px;
  color: #707070;
  font-size: 22px;
  line-height: 1.25;
}

.apex-banner__body p {
  margin: 0 0 12px;
}

.apex-banner__body p:last-child {
  margin-bottom: 0;
}

.apex-banner__body ul,
.apex-banner__features {
  display: grid;
  gap: 10px;
  margin: 26px 0 0;
  padding: 0;
  color: #555;
  font-size: 20px;
  line-height: 1.25;
  list-style: none;
}

.apex-banner__body li,
.apex-banner__features li {
  position: relative;
  padding-left: 24px;
}

.apex-banner__body li::before,
.apex-banner__features li::before {
  position: absolute;
  top: 0.52em;
  left: 0;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #eb5b93;
  content: "";
}

.apex-banner__buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 44px;
}

.apex-banner__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 408px;
  min-height: 60px;
  margin-top: 0;
  padding: 16px 34px;
  border-radius: 7px;
  background: #eb5b93;
  color: #fff;
  font-size: 20px;
  font-weight: 500;
  letter-spacing: 0;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  text-transform: uppercase;
  transition: background-color 0.2s ease;
}

.apex-banner--button-pink .apex-banner__button {
  background: #eb5b93;
}

.apex-banner--button-pink .apex-banner__button:hover,
.apex-banner--button-pink .apex-banner__button:focus {
  background: #d94f85;
  color: #fff;
  text-decoration: none;
}

.apex-banner--button-blue .apex-banner__button {
  background: #489cec;
}

.apex-banner--button-blue .apex-banner__button:hover,
.apex-banner--button-blue .apex-banner__button:focus {
  background: #2f86db;
  color: #fff;
  text-decoration: none;
}

.apex-banner--button-blue .apex-banner__body li::before,
.apex-banner--button-blue .apex-banner__features li::before {
  background: #489cec;
}

.apex-banner__button--disabled {
  cursor: default;
}

section.apex-banner.apex-banner--simple_image {
  display: block;
  text-align: center;
}

section.apex-banner.apex-banner--simple_image picture,
section.apex-banner.apex-banner--simple_image .apex-banner__image {
  display: block;
  width: 100%;
  height: auto;
  transition: transform 0.35s ease;
}

section.apex-banner.apex-banner--simple_image .apex-banner__link:hover .apex-banner__image,
section.apex-banner.apex-banner--simple_image .apex-banner__link:focus .apex-banner__image {
  transform: scale(1.02);
}

section.apex-banner.apex-banner--simple_image .apex-banner__simple-title {
  margin: 20px 0 0;
  color: #292929;
  font-size: 20px;
  font-weight: 400;
  letter-spacing: 0;
  line-height: 1.3;
  text-align: center;
  text-transform: uppercase;
}

section.apex-banner.apex-banner--simple_image.apex-banner--title-top .apex-banner__simple-title {
  margin: 0 0 20px;
}

.apex-banner--image_overlay {
  position: relative;
  min-height: 400px;
  background: #292929;
  border-radius: 7px;
}

.apex-banner--image_overlay picture,
.apex-banner--image_overlay .apex-banner__image {
  width: 100%;
  height: 400px;
  object-fit: cover;
}

.apex-banner--image_overlay .apex-banner__overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 42px 64px;
  background: rgba(0, 0, 0, 0.46);
  text-align: center;
}

.apex-banner--image_overlay .apex-banner__content {
  max-width: 720px;
}

.apex-banner--image_overlay .apex-banner__heading,
.apex-banner--image_overlay .apex-banner__body,
.apex-banner--image_overlay .apex-banner__body ul,
.apex-banner--image_overlay .apex-banner__features {
  color: #fff;
}

.apex-banner--image_overlay .apex-banner__heading {
  font-size: 36px;
}

.apex-banner--image_overlay .apex-banner__body {
  margin-top: 14px;
  font-size: 20px;
  line-height: 1.2;
}

.apex-banner--image_overlay .apex-banner__button {
  min-width: 408px;
  min-height: 60px;
}

.apex-banner--image_overlay .apex-banner__buttons {
  justify-content: center;
  margin-top: 38px;
}

.apex-banner--split_content,
.apex-banner--image_left,
.apex-banner--image_right {
  display: grid;
  grid-template-columns: minmax(360px, 56%) minmax(420px, 44%);
  column-gap: 24px;
  align-items: center;
  min-height: 500px;
  max-width: 1678px;
  margin: 0 auto;
  padding: 86px 8.6% 86px 10.2%;
  overflow: visible;
}

.apex-banner--split_content {
  background: #f4f4f4;
}

.apex-banner--image_right {
  grid-template-columns: minmax(420px, 44%) minmax(360px, 56%);
}

.apex-banner--image_left,
.apex-banner--image_right {
  grid-template-columns: minmax(300px, 38%) minmax(420px, 62%);
  column-gap: clamp(28px, 5vw, 86px);
  min-height: 390px;
  padding: 38px 5.4%;
}

.apex-banner--image_left {
  grid-template-columns: minmax(420px, 62%) minmax(300px, 38%);
}

.apex-banner--image_right .apex-banner__media {
  order: 2;
}

.apex-banner--image_right .apex-banner__content {
  order: 1;
}

.apex-banner__media,
.apex-banner__split-label {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 300px;
  padding-top: 42px;
}

.apex-banner--image_left .apex-banner__media,
.apex-banner--image_right .apex-banner__media {
  min-height: 0;
  padding-top: 0;
}

.apex-banner__media picture,
.apex-banner__media .apex-banner__image,
.apex-banner__split-label img {
  display: block;
  max-width: 100%;
  max-height: 360px;
  object-fit: contain;
}

.apex-banner--image_left .apex-banner__media .apex-banner__image,
.apex-banner--image_right .apex-banner__media .apex-banner__image {
  max-height: 350px;
}

.apex-banner__split-label span {
  color: #292929;
  font-size: 46px;
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1.1;
  text-transform: uppercase;
}

.apex-banner--split_content .apex-banner__content,
.apex-banner--image_left .apex-banner__content,
.apex-banner--image_right .apex-banner__content {
  max-width: 560px;
  align-self: center;
  justify-self: start;
}

.apex-banner--image_left .apex-banner__content,
.apex-banner--image_right .apex-banner__content {
  max-width: 420px;
}

.apex-banner--image_right .apex-banner__content {
  justify-self: start;
}

.apex-banner--split_content .apex-banner__heading,
.apex-banner--image_left .apex-banner__heading,
.apex-banner--image_right .apex-banner__heading {
  font-size: 46px;
  line-height: 1.08;
}

.apex-banner--image_left .apex-banner__heading,
.apex-banner--image_right .apex-banner__heading {
  font-size: 26px;
  line-height: 1.06;
}

.apex-banner--split_content .apex-banner__body,
.apex-banner--image_left .apex-banner__body,
.apex-banner--image_right .apex-banner__body {
  max-width: 560px;
  margin-top: 28px;
  font-size: 21px;
  line-height: 1.12;
}

.apex-banner--image_left .apex-banner__body,
.apex-banner--image_right .apex-banner__body {
  max-width: 390px;
  margin-top: 14px;
  font-size: 11px;
  line-height: 1.35;
}

.apex-banner--split_content .apex-banner__body ul,
.apex-banner--split_content .apex-banner__features,
.apex-banner--image_left .apex-banner__body ul,
.apex-banner--image_left .apex-banner__features,
.apex-banner--image_right .apex-banner__body ul,
.apex-banner--image_right .apex-banner__features {
  max-width: 560px;
}

.apex-banner--image_left .apex-banner__body ul,
.apex-banner--image_left .apex-banner__features,
.apex-banner--image_right .apex-banner__body ul,
.apex-banner--image_right .apex-banner__features {
  gap: 6px;
  max-width: 400px;
  margin-top: 12px;
  font-size: 11px;
  line-height: 1.25;
}

.apex-banner--image_left .apex-banner__body li,
.apex-banner--image_left .apex-banner__features li,
.apex-banner--image_right .apex-banner__body li,
.apex-banner--image_right .apex-banner__features li {
  padding-left: 20px;
}

.apex-banner--image_left .apex-banner__body li::before,
.apex-banner--image_left .apex-banner__features li::before,
.apex-banner--image_right .apex-banner__body li::before,
.apex-banner--image_right .apex-banner__features li::before {
  top: 0.18em;
  width: 11px;
  height: 11px;
  border: 1px solid #eb5b93;
  background: transparent;
}

.apex-banner--button-blue.apex-banner--image_left .apex-banner__body li::before,
.apex-banner--button-blue.apex-banner--image_left .apex-banner__features li::before,
.apex-banner--button-blue.apex-banner--image_right .apex-banner__body li::before,
.apex-banner--button-blue.apex-banner--image_right .apex-banner__features li::before {
  border-color: #489cec;
  background: transparent;
}

.apex-banner--image_left .apex-banner__body li::after,
.apex-banner--image_left .apex-banner__features li::after,
.apex-banner--image_right .apex-banner__body li::after,
.apex-banner--image_right .apex-banner__features li::after {
  position: absolute;
  top: 0.36em;
  left: 3px;
  width: 5px;
  height: 3px;
  border-bottom: 1px solid #eb5b93;
  border-left: 1px solid #eb5b93;
  content: "";
  transform: rotate(-45deg);
}

.apex-banner--button-blue.apex-banner--image_left .apex-banner__body li::after,
.apex-banner--button-blue.apex-banner--image_left .apex-banner__features li::after,
.apex-banner--button-blue.apex-banner--image_right .apex-banner__body li::after,
.apex-banner--button-blue.apex-banner--image_right .apex-banner__features li::after {
  border-color: #489cec;
}

.apex-banner--split_content .apex-banner__button,
.apex-banner--image_left .apex-banner__button,
.apex-banner--image_right .apex-banner__button {
  width: 408px;
  min-width: 0;
}

.apex-banner--image_left .apex-banner__button,
.apex-banner--image_right .apex-banner__button {
  width: 170px;
  min-height: 34px;
  padding: 9px 20px;
  border: 1px solid #eb5b93;
  border-radius: 4px;
  font-size: 10px;
  font-weight: 500;
}

.apex-banner--image_left .apex-banner__button:last-child:not(:first-child),
.apex-banner--image_right .apex-banner__button:last-child:not(:first-child) {
  background: #fff;
  color: #eb5b93;
}

.apex-banner--button-blue.apex-banner--image_left .apex-banner__button:last-child:not(:first-child),
.apex-banner--button-blue.apex-banner--image_right .apex-banner__button:last-child:not(:first-child) {
  border-color: #489cec;
  background: #fff;
  color: #489cec;
}

.apex-banner--image_left .apex-banner__button:last-child:not(:first-child):hover,
.apex-banner--image_left .apex-banner__button:last-child:not(:first-child):focus,
.apex-banner--image_right .apex-banner__button:last-child:not(:first-child):hover,
.apex-banner--image_right .apex-banner__button:last-child:not(:first-child):focus {
  background: #fff5f9;
  color: #eb5b93;
}

.apex-banner--button-blue.apex-banner--image_left .apex-banner__button:last-child:not(:first-child):hover,
.apex-banner--button-blue.apex-banner--image_left .apex-banner__button:last-child:not(:first-child):focus,
.apex-banner--button-blue.apex-banner--image_right .apex-banner__button:last-child:not(:first-child):hover,
.apex-banner--button-blue.apex-banner--image_right .apex-banner__button:last-child:not(:first-child):focus {
  background: #f2f8ff;
  color: #489cec;
}

.apex-banner--split_content .apex-banner__buttons,
.apex-banner--image_left .apex-banner__buttons,
.apex-banner--image_right .apex-banner__buttons {
  margin-top: 48px;
}

.apex-banner--image_left .apex-banner__buttons,
.apex-banner--image_right .apex-banner__buttons {
  gap: 14px;
  margin-top: 24px;
}

.apex-banner--split_content .apex-banner__button--disabled,
.apex-banner--image_left .apex-banner__button--disabled,
.apex-banner--image_right .apex-banner__button--disabled {
  opacity: 1;
}

@media (max-width: 991px) {
  .apex-banner__heading,
  .apex-banner__split-label span {
    font-size: 36px;
  }

  .apex-banner__body {
    font-size: 18px;
  }

  .apex-banner__body ul,
  .apex-banner__features {
    font-size: 17px;
  }

  .apex-banner__button {
    min-width: 300px;
    font-size: 17px;
  }

  section.apex-banner.apex-banner--simple_image .apex-banner__simple-title {
    font-size: 18px;
  }

  .apex-banner--split_content,
  .apex-banner--image_left,
  .apex-banner--image_right {
    grid-template-columns: 1fr;
    gap: 34px;
    padding: 54px 28px;
    text-align: center;
  }

  .apex-banner--image_left,
  .apex-banner--image_right {
    min-height: 0;
    padding: 34px 28px;
  }

  .apex-banner--image_right .apex-banner__media,
  .apex-banner--image_right .apex-banner__content {
    order: initial;
  }

  .apex-banner--split_content .apex-banner__content,
  .apex-banner--image_left .apex-banner__content,
  .apex-banner--image_right .apex-banner__content {
    max-width: none;
    justify-self: stretch;
  }

  .apex-banner--image_left .apex-banner__content,
  .apex-banner--image_right .apex-banner__content {
    max-width: none;
  }

  .apex-banner__media,
  .apex-banner__split-label {
    min-height: 120px;
    padding-top: 0;
  }

  .apex-banner--split_content .apex-banner__body,
  .apex-banner--image_left .apex-banner__body,
  .apex-banner--image_right .apex-banner__body {
    margin-right: auto;
    margin-left: auto;
  }

  .apex-banner--split_content .apex-banner__body ul,
  .apex-banner--split_content .apex-banner__features,
  .apex-banner--image_left .apex-banner__body ul,
  .apex-banner--image_left .apex-banner__features,
  .apex-banner--image_right .apex-banner__body ul,
  .apex-banner--image_right .apex-banner__features {
    margin-right: auto;
    margin-left: auto;
    text-align: left;
  }

  .apex-banner__buttons {
    justify-content: center;
  }

  .apex-banner--split_content .apex-banner__button,
  .apex-banner--image_left .apex-banner__button,
  .apex-banner--image_right .apex-banner__button {
    width: min(100%, 408px);
  }

  .apex-banner--image_left .apex-banner__button,
  .apex-banner--image_right .apex-banner__button {
    width: min(100%, 170px);
  }
}

@media (max-width: 640px) {
  .apex-banner--image_overlay {
    min-height: 300px;
  }

  .apex-banner--image_overlay .apex-banner__image {
    height: 300px;
  }

  .apex-banner--image_overlay .apex-banner__overlay {
    padding: 26px 18px;
  }

  .apex-banner__heading,
  .apex-banner__split-label span {
    font-size: 28px;
  }

  section.apex-banner.apex-banner--simple_image .apex-banner__simple-title {
    font-size: 18px;
  }

  .apex-banner__body {
    margin-top: 18px;
    font-size: 16px;
  }

  .apex-banner__body ul,
  .apex-banner__features {
    margin-top: 18px;
    font-size: 15px;
  }

  .apex-banner__buttons {
    margin-top: 28px;
  }

  .apex-banner__button {
    width: 100%;
    min-width: 0;
    min-height: 54px;
    padding: 14px 20px;
    font-size: 15px;
  }
}

/* Mobile image swap — deliberately a separate breakpoint (767px) from the
   layout-stacking media queries above (640px/991px content tweaks).
   Only swap to the mobile image when one is actually configured for this
   banner (:has() scopes it to that banner only) — banners without a
   mobile image keep showing their desktop image, unaffected.
   Desktop images render inside a <picture> wrapper when a responsive
   image style is used; hiding just the inner <img> isn't enough because
   <picture> itself matches ".apex-banner picture { display:block; ... }"
   and keeps reserving a box. Hide the <picture> wrapper too. !important
   matches the specificity approach used above for the default-hidden rule. */
@media (max-width: 767px) {
  .apex-banner:has(.apex-banner__image--mobile) picture:has(.apex-banner__image--desktop),
  .apex-banner:has(.apex-banner__image--mobile) .apex-banner__image--desktop {
    display: none !important;
  }

  .apex-banner:has(.apex-banner__image--mobile) .apex-banner__image--mobile {
    display: block !important;
  }
}
