/* Shared footer and consultation callout. */
.footer-cta {
  background: var(--white);
  color: var(--navy);
  border-top: 1px solid var(--line);
  padding-block: 3rem;
}
.footer-cta-inner {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2rem;
}
.footer-cta h2 {
  font-size: clamp(2.7rem, 5.5vw, 4.5rem);
}
.footer-cta .eyebrow {
  color: var(--muted);
}
.site-footer {
  background: var(--white);
  color: var(--navy);
  border-top: 1px solid var(--line);
  padding: 3rem 0 1.5rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem 1.2rem;
}
.footer-brand {
  grid-column: 1/-1;
}
.footer-brand .logo img {
  mix-blend-mode: multiply;
}
.site-footer .footer-brand p {
  font-size: 0.95rem;
  line-height: 1.5;
  margin: 1rem 0;
}
.footer-brand > a:last-child {
  font-size: 0.85rem;
}
.footer-grid h3 {
  font-size: 0.8rem;
  letter-spacing: 0;
  margin-bottom: 1rem;
}
.footer-grid > div > a:not(.logo) {
  display: block;
  font-size: 0.73rem;
  line-height: 1.5;
  padding: 0.35rem 0;
  min-height: 31px;
}
.footer-medications {
  list-style: none;
  margin: 0.65rem 0;
  padding: 0.3rem 0 0;
  border-top: 1px solid var(--line);
}
.footer-medications a {
  display: flex;
  align-items: center;
  width: fit-content;
  max-width: 100%;
  min-height: 44px;
  padding-block: 0.45rem;
  font-size: 0.875rem;
  line-height: 1.4;
}
.footer-grid a:hover {
  color: var(--blue);
}
.footer-bottom {
  border-top: 1px solid var(--line);
  margin-top: 2.5rem;
  padding-top: 1.5rem;
}
.site-footer .footer-bottom > p {
  font-size: 0.67rem;
  line-height: 1.8;
  max-width: 1000px;
  color: var(--muted);
}
.footer-bottom > div {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: space-between;
  font-size: 0.7rem;
  margin-top: 1.2rem;
}
.footer-bottom > div > div {
  display: flex;
  gap: 0.25rem 1.2rem;
  flex-wrap: wrap;
  align-items: center;
}
.footer-bottom > div > div > a,
.footer-bottom > div > div > button {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  line-height: 1.4;
}

@media (min-width: 640px) {
  .footer-cta-inner {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
  .footer-grid {
    grid-template-columns: 1.3fr 1fr 1fr 1fr;
    gap: 2rem;
  }
  .footer-brand {
    grid-column: auto;
  }
}

@media (min-width: 1024px) {
  .footer-cta {
    padding-block: 4rem;
  }
  .site-footer {
    padding-top: 4rem;
  }
  .footer-grid {
    gap: 3rem;
  }
  .footer-grid > div > a:not(.logo) {
    font-size: 0.8rem;
  }
  .footer-medications a {
    min-height: 32px;
  }
}
.footer-ownership {
  color: var(--blue);
  margin-top: 1.2rem !important;
}
.footer-ownership .canadian-ownership {
  justify-content: flex-start;
  text-align: left;
  font-size: 0.8rem;
}

.footer-grid .footer-brand > a.footer-social-link {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  min-height: 44px;
  margin-top: 0.35rem;
  padding: 0.35rem 0;
  font-size: 0.85rem;
}
.footer-social-link svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  stroke-width: 1.7;
}

.footer-verification,
.footer-grid .footer-brand > .footer-verification {
  display: block;
  width: fit-content;
  padding: 0;
}

.footer-grid .footer-brand > .footer-verification {
  margin-top: 0.75rem;
}

.footer-verification img {
  display: block;
  width: 74px;
  height: auto;
}

/* Pharmacy identity and fulfilment information in every site footer. */
.footer-pharmacy {
  max-width: 56ch;
  font-size: 0.8rem;
  line-height: 1.65;
  color: var(--muted);
}

.footer-pharmacy a {
  display: inline;
  text-decoration: underline;
  text-underline-offset: 0.2em;
}
@media (width < 640px) {
  .site-footer .footer-grid {
    row-gap: 32px;
  }
}

@media print {
  .site-footer,
  .footer-cta {
    display: none;
  }
}
