/**
 * Extract Labs footer.
 */

.elab-footer {
  --el-footer-pine: var(--el-pine, #264c48);
  --el-footer-pine-deep: #1f413d;
  --el-footer-cream: var(--el-cream, #f9f7f1);
  --el-footer-muted: rgba(249, 247, 241, 0.78);
  --el-footer-soft: rgba(249, 247, 241, 0.16);
  --el-footer-orange: #c86423;
  background: var(--el-footer-pine);
  color: var(--el-footer-cream);
  font-family: inherit;
  overflow: hidden;
  position: relative;
}

.elab-footer.has-ridgeline::before {
  background-color: rgba(18, 47, 43, 0.6);
  background-image: var(--el-footer-ridgeline);
  background-position: center;
  background-repeat: no-repeat;
  background-size: max(1760px, 112vw) auto;
  content: "";
  filter: invert(1);
  inset: 0 0 42px;
  mix-blend-mode: soft-light;
  opacity: 0.18;
  pointer-events: none;
  position: absolute;
}

.elab-footer a {
  color: inherit;
  text-decoration: none;
}

.elab-footer a:hover,
.elab-footer a:focus-visible {
  color: #ffffff;
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

.elab-footer__inner,
.elab-footer__bar-inner {
  margin: 0 auto;
  max-width: 1760px;
  padding-left: clamp(24px, 3vw, 44px);
  padding-right: clamp(24px, 3vw, 44px);
  position: relative;
  z-index: 1;
}

.elab-footer__inner {
  display: grid;
  gap: clamp(22px, 2.5vw, 38px) clamp(24px, 3vw, 50px);
  grid-template-areas:
    "brand nav trust"
    "newsletter newsletter utility"
    "badges badges badges"
    "disclaimer disclaimer disclaimer";
  grid-template-columns: minmax(300px, 0.95fr) minmax(0, 2.4fr) minmax(250px, 0.78fr);
  padding-bottom: 0;
  padding-top: clamp(44px, 5vw, 72px);
}

.elab-footer__brand {
  align-self: start;
  grid-area: brand;
  max-width: 420px;
}

.elab-footer__logo {
  margin-bottom: 18px;
}

.elab-footer__logo .custom-logo-link {
  display: inline-flex;
}

.elab-footer__logo img,
.elab-footer__logo .custom-logo {
  filter: brightness(0) invert(1);
  height: auto;
  max-height: 54px;
  max-width: min(320px, 82vw);
  width: auto;
}

.elab-footer__logo-fallback {
  color: #ffffff;
  display: inline-block;
  font-size: clamp(28px, 3vw, 44px);
  font-weight: 700;
  line-height: 1;
}

.elab-footer__blurb,
.elab-footer__contact,
.elab-footer__newsletter-subtext,
.elab-footer__disclaimer {
  color: var(--el-footer-muted);
}

.elab-footer__blurb {
  font-size: 15px;
  line-height: 1.45;
  margin: 0 0 24px;
}

.elab-footer__contact {
  font-size: 15px;
  line-height: 1.35;
}

.elab-footer__contact p {
  margin: 0 0 14px;
}

.elab-footer__email a,
.elab-footer__phone a {
  color: rgba(255, 255, 255, 0.9);
  font-weight: 500;
}

.elab-footer__nav {
  display: grid;
  gap: 24px clamp(20px, 2.7vw, 44px);
  grid-area: nav;
  grid-template-columns: repeat(5, minmax(96px, 1fr));
}

.elab-footer__col-heading,
.elab-footer__newsletter-heading {
  color: #ffffff !important;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.25;
  margin: 0 0 13px;
}

.elab-footer__list,
.elab-footer__badges,
.elab-footer__social,
.elab-footer__legal {
  list-style: none;
  margin: 0;
  padding: 0;
}

.elab-footer__item {
  margin: 0 0 6px;
}

.elab-footer__link {
  color: rgba(255, 255, 255, 0.88) !important;
  display: inline-block;
  font-size: 15px;
  line-height: 1.2;
}

.elab-footer__newsletter {
  align-self: center;
  grid-area: newsletter;
  margin-top: -6px;
  max-width: 620px;
}

.elab-footer__newsletter-heading {
  font-size: clamp(18px, 1.6vw, 22px);
  margin-bottom: 8px;
}

.elab-footer__newsletter-subtext {
  font-size: 14px;
  line-height: 1.4;
  margin: 0 0 14px;
}

.elab-footer__newsletter-form {
  display: grid;
  gap: 10px;
  grid-template-columns: minmax(0, 1fr) auto;
  max-width: 410px;
}

.elab-footer__newsletter-input,
.elab-footer__newsletter-submit,
.elab-footer__top {
  border: 1px solid transparent;
  border-radius: 4px;
  font: inherit;
  min-height: 44px;
}

.elab-footer__newsletter-input {
  background: rgba(255, 255, 255, 0.96);
  color: #153331;
  min-width: 0;
  padding: 0 14px;
  width: 100%;
}

.elab-footer__newsletter-input::placeholder {
  color: rgba(21, 51, 49, 0.64);
}

.elab-footer .elab-footer__newsletter-submit,
.elab-footer .elab-footer__top {
  appearance: none;
  background: rgba(255, 255, 255, 0.18);
  color: #ffffff;
  cursor: pointer;
  font-weight: 700;
  padding: 0 18px;
  transition: background-color 160ms ease, border-color 160ms ease;
}

.elab-footer .elab-footer__newsletter-submit {
  background: #ffffff;
  border-color: #ffffff;
  color: #1f413d;
}

.elab-footer .elab-footer__newsletter-submit:hover,
.elab-footer .elab-footer__newsletter-submit:focus-visible {
  background: #f1e8de;
}

.elab-footer__newsletter-message {
  font-size: 13px;
  margin: 9px 0 0;
  min-height: 1em;
}

.elab-footer__badges {
  align-self: start;
  display: grid;
  gap: 14px clamp(18px, 3vw, 34px);
  grid-area: badges;
  grid-template-columns: repeat(4, minmax(150px, 1fr));
  margin-top: -2px;
}

.elab-footer__trust {
  align-self: start;
  display: grid;
  gap: 14px;
  grid-area: trust;
  list-style: none;
  margin: 2px 0 0;
  padding: 0;
}

.elab-footer__badge a,
.elab-footer__badge {
  align-items: center;
  color: rgba(255, 255, 255, 0.88);
  display: flex;
  gap: 10px;
  min-width: 0;
}

.elab-footer__badge-icon {
  background: transparent;
  display: block;
  flex: 0 0 26px;
  height: 26px;
  object-fit: contain;
  width: 26px;
}

.elab-footer__badge-icon::before {
  border: 2px solid currentColor;
  border-radius: 50%;
  content: "";
  display: block;
  height: 18px;
  opacity: 0.7;
  width: 18px;
}

.elab-footer__badge img.elab-footer__badge-icon::before {
  display: none;
}

.elab-footer__badge-label {
  font-size: 13px;
  font-weight: 600;
  line-height: 1.12;
}

.elab-footer__trust .elab-footer__badge.is-featured {
  color: #ffffff;
}

.elab-footer__trust .elab-footer__badge.is-featured .elab-footer__badge-icon {
  flex-basis: 30px;
  height: 30px;
  width: 30px;
}

.elab-footer__trust .elab-footer__badge.is-featured .elab-footer__badge-label {
  font-size: clamp(16px, 1.05vw, 19px);
  font-weight: 800;
  line-height: 1.16;
}

.elab-footer__utility {
  align-items: center;
  display: flex;
  gap: 16px;
  grid-area: utility;
  justify-content: flex-end;
  margin-top: -4px;
  min-width: 0;
}

.elab-footer .elab-footer__top {
  flex: 0 0 auto;
  white-space: nowrap;
}

.elab-footer__social {
  display: flex;
  gap: 10px;
}

.elab-footer__social-link {
  align-items: center;
  background: rgba(255, 255, 255, 0.92);
  border-radius: 999px;
  color: #254a46 !important;
  display: inline-flex;
  height: 34px;
  justify-content: center;
  position: relative;
  width: 34px;
}

.elab-footer__social-link::before {
  content: attr(data-platform);
  font-size: 0;
}

.elab-footer__social-link[data-platform="facebook"]::before { content: "f"; font-size: 19px; font-weight: 800; }
.elab-footer__social-link[data-platform="instagram"]::before { content: "ig"; font-size: 12px; font-weight: 800; }
.elab-footer__social-link[data-platform="tiktok"]::before { content: "tk"; font-size: 12px; font-weight: 800; }
.elab-footer__social-link[data-platform="youtube"]::before { content: "yt"; font-size: 12px; font-weight: 800; }
.elab-footer__social-link[data-platform="x"]::before { content: "x"; font-size: 16px; font-weight: 800; }
.elab-footer__social-link[data-platform="linkedin"]::before { content: "in"; font-size: 13px; font-weight: 800; }

.elab-footer__top:hover,
.elab-footer__top:focus-visible {
  background: rgba(255, 255, 255, 0.26);
  border-color: rgba(255, 255, 255, 0.32);
}

.elab-footer__disclaimer {
  border-top: 1px solid var(--el-footer-soft);
  font-size: 12px;
  grid-area: disclaimer;
  line-height: 1.32;
  margin-top: 4px;
  padding-top: 18px;
  text-align: center;
}

.elab-footer__disclaimer p {
  margin: 0 auto;
  max-width: 1100px;
}

.elab-footer__bar {
  background: var(--el-footer-orange);
  color: #1c2421;
  margin-top: 18px;
  position: relative;
  z-index: 1;
}

.elab-footer__bar-inner {
  align-items: center;
  display: grid;
  gap: 16px;
  grid-template-columns: minmax(180px, 0.8fr) minmax(0, 2.8fr);
  min-height: 42px;
}

.elab-footer__copyright {
  font-size: 13px;
  margin: 0;
}

.elab-footer__legal {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 12px clamp(18px, 4vw, 58px);
  justify-content: center;
}

.elab-footer__legal-link {
  color: inherit;
  font-size: 13px;
}

.screen-reader-text {
  clip: rect(1px, 1px, 1px, 1px);
  height: 1px;
  overflow: hidden;
  position: absolute;
  white-space: nowrap;
  width: 1px;
}

@media (max-width: 1540px) {
  .elab-footer__inner {
    column-gap: clamp(18px, 2vw, 30px);
    grid-template-columns: minmax(280px, 0.85fr) minmax(0, 2.45fr) minmax(220px, 0.7fr);
  }

  .elab-footer__nav {
    gap: 22px clamp(16px, 2vw, 30px);
    grid-template-columns: repeat(5, minmax(86px, 1fr));
  }

  .elab-footer__link {
    font-size: 14px;
  }

  .elab-footer__trust .elab-footer__badge.is-featured .elab-footer__badge-label {
    font-size: clamp(15px, 1vw, 17px);
  }
}

@media (max-width: 1320px) {
  .elab-footer.has-ridgeline::before {
    background-position: center top;
    background-size: max(1500px, 130vw) auto;
    opacity: 0.16;
  }

  .elab-footer__inner {
    grid-template-areas:
      "brand nav"
      "trust nav"
      "newsletter utility"
      "badges badges"
      "disclaimer disclaimer";
    grid-template-columns: minmax(280px, 0.85fr) minmax(0, 1.7fr);
  }

  .elab-footer__nav {
    grid-template-columns: repeat(3, minmax(140px, 1fr));
  }

  .elab-footer__trust {
    max-width: 360px;
  }

  .elab-footer__utility {
    align-self: end;
  }
}

@media (max-width: 980px) {
  .elab-footer.has-ridgeline::before {
    background-position: 54% top;
    background-size: max(1220px, 155vw) auto;
    opacity: 0.14;
  }

  .elab-footer__inner {
    grid-template-areas:
      "brand"
      "nav"
      "trust"
      "newsletter"
      "utility"
      "badges"
      "disclaimer";
    grid-template-columns: 1fr;
  }

  .elab-footer__brand,
  .elab-footer__newsletter,
  .elab-footer__trust {
    max-width: 680px;
  }

  .elab-footer__nav {
    grid-template-columns: repeat(3, minmax(150px, 1fr));
  }

  .elab-footer__badges {
    grid-template-columns: repeat(2, minmax(180px, 1fr));
  }

  .elab-footer__badge.is-featured {
    grid-column: span 1;
  }

  .elab-footer__utility {
    justify-content: flex-start;
  }
}

@media (max-width: 782px) {
  .elab-footer.has-ridgeline:not(.ridgeline-mobile)::before {
    background-image: var(--el-footer-ridgeline);
  }

  .elab-footer__inner {
    gap: 30px;
    padding-top: 44px;
  }

  .elab-footer__nav {
    gap: 24px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .elab-footer__newsletter-form {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .elab-footer__newsletter-submit {
    width: 100%;
  }

  .elab-footer__badges {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .elab-footer__bar-inner {
    grid-template-columns: 1fr;
    justify-items: start;
    padding-bottom: 14px;
    padding-top: 14px;
  }

  .elab-footer__legal {
    justify-content: flex-start;
  }
}

@media (max-width: 520px) {
  .elab-footer__nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .elab-footer__link {
    font-size: 13px;
  }

  .elab-footer__utility {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .elab-footer__newsletter-form {
    grid-template-columns: minmax(0, 1fr);
  }

  .elab-footer__newsletter-submit {
    width: 100%;
  }
}
