/* 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;
  }
}

/* About: pharmacy team grid */
.teamBlock .teamGrid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 24px;
}
.teamBlock .teamCard {
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 8px;
  padding: 24px 20px;
  text-align: center;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}
.teamBlock .teamName {
  margin: 0 0 6px;
  font-size: 1.15em;
}
.teamBlock .teamRole {
  margin: 0;
  opacity: 0.75;
}
@media (max-width: 991px) {
  .teamBlock .teamGrid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 575px) {
  .teamBlock .teamGrid { grid-template-columns: 1fr; }
}

/* Reviews page */
.reviewsBlock .reviewGrid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 8px;
}
.reviewsBlock .reviewCard {
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 8px;
  padding: 24px 22px;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}
.reviewsBlock .reviewCard blockquote {
  margin: 0;
  border: 0;
  padding: 0;
  font-style: italic;
  line-height: 1.5;
}
.reviewCtas { margin-top: 16px; }
.reviewCtas .button { margin: 0 8px 8px 0; }
@media (max-width: 991px) {
  .reviewsBlock .reviewGrid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 575px) {
  .reviewsBlock .reviewGrid { grid-template-columns: 1fr; }
}

/* Mobile app page: store badges */
.mobileInfo .appBadges {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 8px;
}
.mobileInfo .appBadges a { display: inline-block; }
.mobileInfo .appBadges img,
.mobileInfo .appBadges img[width][height] {
  height: 48px;
  width: auto;
  display: block;
}

/* footer app badges: vendor caps height at 42px; auto dims keep the
   intrinsic aspect ratio instead of the presentational width attribute */
.appDownload li img[width][height] {
  width: auto;
  height: auto;
  max-height: 42px;
}

/* newsletter block: the Lumistry widget injects its own h3 title and p
   subtitle, duplicating the block's H2 — hide only the widget heading */
.blockForm .lk-head {
  display: none;
}

/* click-to-call and map links added at build time: inherit the surrounding
   text styling so the rendered design is unchanged */
a.telLink,
a.addressMapLink {
  color: inherit;
  text-decoration: none;
}
a.telLink:hover,
a.addressMapLink:hover {
  text-decoration: underline;
}

/* accessibility: visually-hidden skip link, visible on keyboard focus */
a.skipLink {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 10000;
  background: #003e7e;
  color: #fff;
  padding: 10px 18px;
  text-decoration: none;
}
a.skipLink:focus {
  left: 8px;
  top: 8px;
}

/* images carry intrinsic width/height attrs for CLS; let CSS-driven widths
   keep the aspect ratio instead of pinning the attribute height */
img[width][height] {
  height: auto;
}

/* the template's .scMap uses padding-top aspect placeholders for its own
   absolutely-positioned map plugin; our embedded iframe flows normally, so
   the placeholder just adds empty space above the map */
.scMap,
.layoutA .scMap,
.layoutB .scMap {
  padding-top: 0;
}
