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

/* Home newsletter: the Lumistry embed renders its own title + form, so the
   template's plain <h2> title column was removed. The embed defaults to a wide
   two-column (title | form) banner that spans the section edge-to-edge; here we
   constrain it to a contained width, stack the title above the form, and center
   the whole group within its section to match the template's composition. */
.blockWrap_d66f6a80367049f7b70e5a4e6d422571 .blockContent {
  display: block;
}
.blockWrap_d66f6a80367049f7b70e5a4e6d422571 .blockImg.blockForm {
  float: none;
  width: 100%;
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}
.blockWrap_d66f6a80367049f7b70e5a4e6d422571 .lk-form {
  flex-direction: column !important;
  align-items: center !important;
  gap: 14px !important;
  max-width: 520px !important;
  margin-left: auto !important;
  margin-right: auto !important;
  text-align: center;
}
.blockWrap_d66f6a80367049f7b70e5a4e6d422571 .lk-form .lk-head,
.blockWrap_d66f6a80367049f7b70e5a4e6d422571 .lk-form .lk-body {
  flex: none !important;
  width: 100% !important;
  min-width: 0 !important;
}
.blockWrap_d66f6a80367049f7b70e5a4e6d422571 .lk-row {
  justify-content: center !important;
}

/* Top contact bar (secondaryNav eyebrow). Each group (address, phone, hours)
   carries inline width:100% + text-align:right from the template, so inside the
   flex row each fills a third of the bar and right-aligns its text while the
   absolutely-positioned icons stay pinned at each block's left edge -> large,
   uneven gaps (worst on the phone). Reset each group to shrink-to-content and
   flow its icon inline, tight against the text, so icon-to-text spacing is even
   and the three groups sit evenly spaced. Desktop only; mobile stacks/centers. */
@media (min-width: 1025px) {
  .secondaryNavContent {
    gap: 2em !important;
    padding-left: 2% !important;
    padding-right: 2% !important;
    flex-wrap: nowrap !important;
  }
  .secondaryNavContent .blockContainer {
    width: auto !important;
    padding-left: 0 !important;
  }
  .secondaryNavContent .blockText,
  .secondaryNavContent .blockInnerContent {
    text-align: left !important;
  }
  .secondaryNavContent .blockInnerContent {
    display: flex;
    align-items: center;
  }
  .secondaryNavContent .blockInnerContent > p {
    margin: 0;
    white-space: nowrap;
  }
  .secondaryNavContent .blockWrap_d1c3085901d84645b31bd09c4bae76b6 .blockInnerContent:before,
  .secondaryNavContent .blockWrap_ec68df6a64454b0d992c5244bb2cac55 .blockInnerContent:before,
  .secondaryNavContent .blockWrap_f00a8333e723460baad25b5365b52e36 .blockInnerContent:before {
    position: static !important;
    left: auto !important;
    margin-top: 0 !important;
    margin-right: 8px !important;
    flex: none;
  }
}

/* Accessibility: skip-to-content link, visually hidden until keyboard focus. */
.skipLink {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 10000;
  padding: 10px 18px;
  background: #1b3f7a;
  color: #fff;
  font-size: 16px;
  text-decoration: none;
}
.skipLink:focus {
  left: 8px;
  top: 8px;
}

/* About page: left-justify the Pharmacy Team section. The intro paragraph is
   wrapped in maxWidth--content, which centers itself at some breakpoints. */
.blockWrap_teamhistory .maxWidth--content {
  margin-left: 0 !important;
  margin-right: auto !important;
}

/* About page: the team member photos rendered at ~48% of the row (very large).
   Scale them down to a modest portrait size while keeping the circle crop. */
.blockWrap_teamowners .blockImg,
.blockWrap_teamtyler .blockImg {
  width: 260px !important;
  max-width: 55% !important;
}

/* Team cards: photo on the left, name/title right beside it, the whole card
   hugging the left edge (theme default was a full-width reversed row that
   left a huge gap between text and photo). */
.blockWrap_teamowners .blockContent.layoutD--vAlign1,
.blockWrap_teamtyler .blockContent.layoutD--vAlign1 {
  flex-direction: row !important;
  justify-content: flex-start !important;
  align-items: center !important;
}
.blockWrap_teamowners .blockContent.layoutD--vAlign1 .blockText,
.blockWrap_teamtyler .blockContent.layoutD--vAlign1 .blockText {
  width: auto !important;
  flex: none !important;
  margin-left: 32px !important;
  margin-right: 0 !important;
  text-align: left !important;
}

/* Contact page: the "Get Directions" link sits in a list below the address
   paragraph, leaving a large gap. The theme gives the paragraph a 1.5em
   padding-bottom; tighten it so the link reads as part of the same block. */
.item[itemprop="address"] .itemContent p {
  padding-bottom: 0 !important;
  margin-bottom: 0 !important;
}
.item[itemprop="address"] .itemInnerContent .unstyledList {
  margin-top: 0 !important;
  padding-top: 0 !important;
}
.item[itemprop="address"] .itemInnerContent .unstyledList li {
  margin-top: 0 !important;
  padding-top: 0 !important;
}
