/* Footer bands. The newsletter field is the Mailchimp for WP form. */

body.lead-sciences .footer {
  background: #fff;
}

body.lead-sciences .footer__container {
  max-width: 94.375rem;
}

body.lead-sciences .footer-before {
  background: var(--ref-background);
  margin: 1.5rem 0;
  border-radius: var(--radius);
}

body.lead-sciences .footer-before__inner {
  padding: 3.5rem 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1rem;
  max-width: 100%;
  margin: 0 auto;
}

@media (min-width: 48rem) {
  body.lead-sciences .footer-before__inner {
    padding: 3.5rem 5.3125rem 4.125rem;
  }
}

body.lead-sciences .footer p {
  margin: 0;
}

body.lead-sciences.lead-sciences h2.footer-before__heading {
  font-size: 1.625rem;
  line-height: 2rem;
  margin: 0 0 0.5rem;
  color: var(--ref-accent) !important;
}

@media (max-width: 36rem) {
  body.lead-sciences.lead-sciences h2.footer-before__heading {
    font-size: 1.125rem;
  }
}

body.lead-sciences .footer-before__form-wrap {
  width: 100%;
}

@media (min-width: 62rem) {
  body.lead-sciences .footer-before__form-wrap {
    max-width: 62.5rem;
  }
}

body.lead-sciences .footer .mc4wp-form {
  width: 100%;
  margin: 0;
}

body.lead-sciences .footer .mc4wp-form-fields {
  display: flex;
  align-items: center;
  flex-direction: column;
  gap: 1rem;
  width: 100%;
}

@media (min-width: 48rem) {
  body.lead-sciences .footer .mc4wp-form-fields {
    flex-direction: row;
  }
}

@media (min-width: 62rem) {
  body.lead-sciences .footer .mc4wp-form-fields {
    gap: 2rem;
  }
}

body.lead-sciences .footer .mc4wp-form-fields p {
  display: flex;
  width: 100%;
  margin: 0;
}

@media (min-width: 48rem) {
  body.lead-sciences .footer .mc4wp-form-fields p:last-child {
    width: auto;
  }
}

body.lead-sciences .footer .mc4wp-form input[type="email"] {
  width: 100%;
  border-radius: var(--radius);
  font-family: inherit;
  font-size: 1rem;
  line-height: 1.75rem;
  height: 3.75rem;
  border: 0;
  padding: 0 1.5rem;
  background: #fff;
  color: var(--ref-text);
}

body.lead-sciences .footer .mc4wp-form input[type="email"]:focus-visible {
  outline: 2px solid var(--ref-primary);
  outline-offset: 2px;
}

body.lead-sciences .footer .newsletter__button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.625rem;
  flex-shrink: 0;
  width: 100%;
  height: 3.75rem;
  padding: 0.3125rem 0.3125rem 0.3125rem 1.875rem;
  background: var(--ref-accent);
  border: 0.125rem solid var(--ref-accent);
  border-radius: var(--radius);
  box-sizing: border-box;
  transition: 0.2s ease-in-out;
}

@media (min-width: 48rem) {
  body.lead-sciences .footer .newsletter__button {
    width: 12.0625rem;
    justify-content: flex-start;
  }
}

body.lead-sciences .footer .newsletter__button:hover {
  background: var(--ref-accent-hover);
  border-color: var(--ref-accent-hover);
}

body.lead-sciences.lead-sciences .footer .newsletter__button input[type="submit"] {
  flex: 0 0 auto;
  width: auto !important;
  height: auto !important;
  margin: 0;
  padding: 0 !important;
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  color: #fff !important;
  font-family: var(--font-body) !important;
  font-size: 1rem !important;
  line-height: 1.75rem !important;
  font-weight: 600 !important;
  cursor: pointer;
}

body.lead-sciences .footer .newsletter__chip {
  display: none;
}

@media (min-width: 48rem) {
  body.lead-sciences .footer .newsletter__chip {
    width: 3.125rem;
    height: 3.125rem;
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--ref-accent-chip);
    flex-shrink: 0;
  }
}

body.lead-sciences .footer .newsletter__chip .icon {
  width: 1.5rem;
  height: 1.5rem;
  stroke: #fff;
  stroke-width: 1.7;
}

body.lead-sciences .footer-main {
  border-radius: var(--radius);
}

body.lead-sciences .footer-main__box {
  background: var(--ref-primary);
  color: #fff;
  border-radius: var(--radius);
  padding: 1rem;
}

@media (min-width: 62rem) {
  body.lead-sciences .footer-main__box {
    display: flex;
    align-items: center;
    flex: 1 0 60%;
    gap: 3rem;
    padding: 3rem;
  }
}

@media (min-width: 80rem) {
  body.lead-sciences .footer-main__box {
    gap: 6.5rem;
    padding: 4rem 5.3125rem;
  }
}

body.lead-sciences .footer-main a {
  color: inherit;
}

body.lead-sciences .footer-main__logo {
  display: flex;
  flex-direction: column;
  margin-bottom: 2rem;
  gap: 0.5rem;
}

@media (min-width: 62rem) {
  body.lead-sciences .footer-main__logo {
    gap: 1.25rem;
    max-width: 33.3333%;
    line-height: 2rem;
    margin-bottom: 0;
    flex: 0 0 auto;
  }
}

body.lead-sciences .footer-main__logo img {
  max-width: 70%;
  height: auto;
  display: block;
}

@media (min-width: 48rem) {
  body.lead-sciences .footer-main__logo img {
    max-width: 100%;
  }
}

@media (min-width: 62rem) {
  body.lead-sciences .footer-main__logo img {
    max-width: 21.5rem;
  }
}

body.lead-sciences .footer-links {
  display: flex;
  flex-direction: column;
}

@media (min-width: 62rem) {
  body.lead-sciences .footer-links {
    gap: 2rem;
    flex-direction: row;
    flex: 1 1 auto;
  }
}

body.lead-sciences .footer-list {
  border-top: 0.0625rem solid #fff;
}

body.lead-sciences .footer-list:last-child {
  border-bottom: 0;
}

@media (min-width: 62rem) {
  body.lead-sciences .footer-list {
    flex: 1 1 8rem;
    min-width: 0;
    border: 0;
  }
}

body.lead-sciences .footer-list__heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 1.5rem 0;
  margin: 0;
  font-size: 1.125rem;
  line-height: 1.75rem;
  color: inherit;
  background: none;
  border: 0;
  cursor: pointer;
  font-family: var(--font-heading);
  font-weight: 700;
  text-align: left;
}

body.lead-sciences .footer-list__heading .icon {
  width: 1.25rem;
  height: 1.25rem;
  transition: 0.2s;
}

body.lead-sciences .footer-list.is-open .footer-list__heading .icon {
  transform: rotate(180deg);
}

@media (min-width: 62rem) {
  body.lead-sciences .footer-list__heading {
    display: none;
  }
}

body.lead-sciences .footer-list__content {
  display: none;
  padding: 0 0 1.5rem;
}

body.lead-sciences .footer-list.is-open .footer-list__content {
  display: block;
}

@media (min-width: 62rem) {
  body.lead-sciences .footer-list__content {
    display: block;
    padding: 0;
  }
}

body.lead-sciences .footer-list ul {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  line-height: 1.375rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

body.lead-sciences .footer-after {
  background: var(--ref-background);
  display: flex;
  flex-direction: column;
  padding: 1rem;
  margin: 1.5rem 0;
  border-radius: var(--radius);
}

@media (min-width: 62rem) {
  body.lead-sciences .footer-after {
    justify-content: space-between;
    padding: 2rem 5.3125rem 1rem;
  }
}

body.lead-sciences .footer-after__top {
  width: 100%;
  display: flex;
  justify-content: space-between;
  flex-direction: column;
  align-items: flex-start;
  gap: 2rem;
}

@media (min-width: 62rem) {
  body.lead-sciences .footer-after__top {
    flex-direction: row;
    align-items: center;
  }
}

body.lead-sciences .footer-social {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
}

body.lead-sciences .footer-social__pre {
  color: var(--ref-accent);
  font-style: italic;
}

body.lead-sciences .footer-social__list {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

body.lead-sciences .footer-social__list a {
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 0;
  color: var(--ref-accent);
}

body.lead-sciences .footer-social__list a:hover {
  color: var(--ref-accent-dark);
}

body.lead-sciences .footer-social__list .icon {
  width: 1.5rem;
  height: 1.5rem;
  fill: currentColor;
  stroke: none;
}

body.lead-sciences .footer-support {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.5rem;
}

body.lead-sciences .footer-support a {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  font-weight: 700;
  padding: 0.25rem 0;
}

body.lead-sciences .footer-support a:hover {
  color: var(--ref-accent);
}

body.lead-sciences .footer-support__icon {
  background: #fff;
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 50%;
  padding: 0.25rem;
  display: flex;
  flex: 0 0 1.5rem;
  box-sizing: border-box;
  color: var(--ref-accent);
}

body.lead-sciences .footer-support__icon .icon {
  width: 100%;
  height: 100%;
}

body.lead-sciences .footer-after__bottom {
  font-size: 0.875rem;
  line-height: 1.25rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  width: 100%;
  border-top: 1px solid var(--ref-border);
  padding-top: 1rem;
  margin-top: 1rem;
}

@media (min-width: 90rem) {
  body.lead-sciences .footer-after__bottom {
    flex-direction: row;
  }
}

body.lead-sciences .footer-copy {
  text-align: center;
  margin: 0;
}

@media (max-width: 62rem) {
  body.lead-sciences .footer-copy {
    order: 1;
  }
}

body.lead-sciences .footer-service {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

@media (min-width: 48rem) {
  body.lead-sciences .footer-service {
    flex-direction: row;
    gap: 2rem;
    flex-wrap: wrap;
    justify-content: center;
  }
}

body.lead-sciences .footer-service a:hover {
  color: var(--ref-accent);
}

/* Newsletter heading: mock 26/32 (18px under 36rem); a global h2 rule was making it 36/48. */
html body.lead-sciences.lead-sciences.lead-sciences .footer-before h2.footer-before__heading {
  font-size: 1.625rem !important;
  line-height: 2rem !important;
}
@media (max-width: 36rem) {
  html body.lead-sciences.lead-sciences.lead-sciences .footer-before h2.footer-before__heading {
    font-size: 1.125rem !important;
  }
}

/* Footer bottom band: contact and legal links are the text colour in the mock (they were primary teal). */
html body.lead-sciences .footer-after .footer-support a,
html body.lead-sciences .footer-after .footer-service a {
  color: var(--ref-text) !important;
}
html body.lead-sciences .footer-after .footer-support a:hover,
html body.lead-sciences .footer-after .footer-service a:hover {
  color: var(--ref-accent) !important;
}

/* Wishlist, Compare and the currency switcher moved out of the header (mock header = search + cart). */
html body.lead-sciences .footer-tools {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.5rem 1.5rem;
  padding: 0 0 1rem;
  font-size: 0.875rem;
  line-height: 1.5rem;
}
html body.lead-sciences .footer-tools a { color: var(--ref-text); }
html body.lead-sciences .footer-tools a:hover { color: var(--ref-accent); }
html body.lead-sciences .footer-tools__currency { display: inline-flex; align-items: center; }

/* Pinkmart's .row_overlay (position:absolute, full height of .layout, no z-index) painted over the whole footer, so footer
   links could not be hovered or clicked. Lifting the footer above it fixes that; the overlay itself is untouched (it still
   closes the off-canvas menus when clicked). */
html body.lead-sciences footer.footer { position: relative; z-index: 2; }

/* CL-224: Services has 12 live links; show them as two balanced sub-columns (6 rows) so no column is longer than the mock's */
@media (min-width: 62rem) {
  body.lead-sciences .footer-main__box { gap: 3rem; }
  body.lead-sciences .footer-links { gap: 1.5rem; }
  body.lead-sciences .footer-links > .footer-list { flex: 1 1 0; }
  body.lead-sciences .footer-links > .footer-list:nth-child(2) { flex: 2.2 1 0; }
  body.lead-sciences .footer-links > .footer-list:nth-child(2) ul {
    display: block;
    column-count: 2;
    column-gap: 1.5rem;
  }
  body.lead-sciences .footer-links > .footer-list:nth-child(2) ul li { break-inside: avoid; margin: 0 0 0.75rem; }
}

/* CL-229: footer currency switcher on palette tokens (was #eee / #ccc) */
html body.lead-sciences footer .dd-container .dd-select {
  background: #fff !important;
  background-color: #fff !important;
  border: 1px solid var(--ref-border) !important;
  border-radius: 0.5rem !important;
}
html body.lead-sciences footer .dd-container .dd-select:hover { border-color: var(--ref-primary) !important; }
html body.lead-sciences footer .dd-container .dd-selected-description { color: var(--ref-muted, #586f6a) !important; }

/* R-03b: at 992-1279 the footer logo ran into the first link column (CL-224 narrowed the logo block). */
@media (min-width: 62rem) and (max-width: 79.99875rem) {
  html body.lead-sciences .footer-main__box .footer-main__logo { flex: 0 0 15rem; max-width: 15rem; min-width: 0; }
  html body.lead-sciences .footer-main__box .footer-main__logo img { width: 100% !important; max-width: 100% !important; height: auto !important; }
}

/* Currency box: room for the arrow beside the text, compact height. */
html body.lead-sciences.lead-sciences .footer-tools__currency .dd-selected { box-sizing: border-box; min-width: 7.5rem; padding: .375rem 2rem .375rem .75rem !important; }
html body.lead-sciences.lead-sciences .footer-tools__currency .dd-selected-text { margin: 0 !important; line-height: 1.25rem !important; white-space: nowrap; }
html body.lead-sciences.lead-sciences .footer-tools__currency .dd-selected-description { margin: 0; line-height: 1rem; white-space: nowrap; }
html body.lead-sciences.lead-sciences .footer-tools__currency .dd-pointer { top: 50% !important; right: .75rem !important; margin: -.15rem 0 0 !important; }

/* Desktop: Follow us, Wishlist / Compare / currency, and the contacts share one row. */
@media (min-width: 75rem) {
  html body.lead-sciences.lead-sciences .footer-after { display: grid; grid-template-columns: auto 1fr auto; align-items: center; column-gap: 2rem; }
  html body.lead-sciences.lead-sciences .footer-after__top { display: contents; }
  html body.lead-sciences.lead-sciences .footer-after .footer-social { grid-column: 1; grid-row: 1; justify-self: start; margin: 0; }
  html body.lead-sciences.lead-sciences .footer-after .footer-tools { grid-column: 2; grid-row: 1; margin: 0; padding: 0; }
  html body.lead-sciences.lead-sciences .footer-after .footer-support { grid-column: 3; grid-row: 1; justify-self: end; margin: 0; }
  html body.lead-sciences.lead-sciences .footer-after__bottom { grid-column: 1 / -1; grid-row: 2; }
}

/* Tablet and phone: a gap above the Wishlist row; left-aligned below desktop like the lines above it. */
@media (max-width: 74.99875rem) {
  html body.lead-sciences.lead-sciences .footer-after .footer-tools { padding-top: .75rem; }
}
@media (max-width: 61.99875rem) {
  html body.lead-sciences.lead-sciences .footer-after .footer-tools { justify-content: flex-start; }
}

/* Tablet and large phones: the footer logo filled the box; keep it no wider than the mock's largest size. */
@media (max-width: 47.99875rem) {
  html body.lead-sciences.lead-sciences .footer-main__box .footer-main__logo img { max-width: min(70%, 21.5rem) !important; }
}
@media (min-width: 48rem) and (max-width: 61.99875rem) {
  html body.lead-sciences.lead-sciences .footer-main__box .footer-main__logo img { width: 100% !important; max-width: 21.5rem !important; height: auto !important; }
}
