/* custom overrides (loaded last) */
@media (max-width: 767px) {
  .headerAndNavContainer {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    z-index: 1000 !important;
  }
  /* eyebrow (secondary nav) collapses on scroll to reclaim space */
  .secondaryNav {
    overflow: hidden;
    max-height: 300px;
    transition: max-height 0.25s ease, opacity 0.2s ease;
  }
  .secondaryNav.eyebrow-collapsed {
    max-height: 0 !important;
    opacity: 0 !important;
  }
}

/* Pharmacy team block: this block uses layoutD but has no image, so the
   template's `.layoutD .blockText{width:48%}` rule squishes it into the left
   half. Force the text/grid to span the full content width. */
.block_team.layoutD .blockText {
  width: 100% !important;
  float: none !important;
  margin: 0 !important;
  padding: 0 !important;
}
.block_team .blockInnerContent,
.block_team .teamGrid {
  max-width: none !important;
  width: 100% !important;
}

/* Pharmacy team grid: 4 columns on desktop, scaling down responsively. */
@media (max-width: 991px) {
  .teamGrid {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }
}
@media (max-width: 767px) {
  .teamGrid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}
@media (max-width: 479px) {
  .teamGrid {
    grid-template-columns: 1fr !important;
  }
}

/* Homepage app-store badges: force side-by-side row. Custom class names so
   the template's block/caption JS does not restructure the container. */
.block_c3bdbce5445a4a2f88c04472a1d8a229 .blockText,
.block_c3bdbce5445a4a2f88c04472a1d8a229 .blockInnerContent,
.block_c3bdbce5445a4a2f88c04472a1d8a229 .maxWidth--content {
  width: 100% !important;
  max-width: none !important;
  float: none !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
}
.appBadgeRow {
  display: -ms-flexbox !important;
  display: flex !important;
  -ms-flex-wrap: nowrap !important;
  flex-wrap: nowrap !important;
  -ms-flex-direction: row !important;
  flex-direction: row !important;
  -ms-flex-pack: center;
  justify-content: center !important;
  -ms-flex-align: center;
  align-items: center !important;
  gap: 12px;
  margin-top: 8px;
}
.appBadgeRow .appBadgeLink {
  display: inline-block !important;
  -ms-flex: 0 1 160px;
  flex: 0 1 160px;
  min-width: 0;
  line-height: 0;
}
.appBadgeRow .appBadgeLink img {
  display: block !important;
  width: 100% !important;
  max-width: 160px !important;
  height: auto !important;
  margin: 0 !important;
}
