/* 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;
  }
}
/* top contact strip (eyebrow) above the logo */
.secondaryNav {
  background: #fff;
  border-bottom: 1px solid #e9eef4;
  padding: 0 !important;
  margin: 0 !important;
  display: block;
}
.secondaryNavInner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 12px 24px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 2.75rem;
  flex-wrap: nowrap;
}
.secondaryNav .snItem {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  white-space: nowrap;
  color: #27251f;
  text-decoration: none;
  font-size: 16px;
  line-height: 1;
}
.secondaryNav .snItem svg {
  width: 17px;
  height: 17px;
  flex: 0 0 auto;
  display: block;
  color: #003e7e;
}
a.snItem:hover span { text-decoration: underline; }

/* skip link: hidden off-screen until keyboard-focused */
.skipLink {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 10000;
  background: #003e7e;
  color: #fff;
  padding: 10px 18px;
  border-radius: 0 0 6px 0;
  text-decoration: none;
}
.skipLink:focus { left: 0; }

/* nav CTA buttons: with the Book an Appointment button added, the template's
   position-based secondary style (nth-last-child(2)) lands on Refill Now;
   move the outlined look back to Transfer Prescription and tighten spacing
   so all three buttons fit on one row on typical laptop widths */
.navContent li:nth-last-child(2) .button {
  background-color: #003e7e;
  border: 0;
  color: #fff;
}
.navContent li:nth-last-child(2) .button:hover,
.navContent li:nth-last-child(2) .button:focus,
.navContent li:nth-last-child(2) .button:active {
  background-color: #6caddf;
  border: 0;
  color: #fff;
}
.navContent li:nth-last-child(3) .button {
  background-color: #fff;
  border: 1px solid #003e7e;
  color: #003e7e;
}
.navContent li:nth-last-child(3) .button:hover,
.navContent li:nth-last-child(3) .button:focus,
.navContent li:nth-last-child(3) .button:active {
  background-color: #6caddf;
  border: 1px solid #6caddf;
  color: #fff;
}
@media (min-width: 981px) and (max-width: 1700px) {
  .navContent ul li { margin-left: .8em; }
  .navContent li a, .navContent li .navLabel { font-size: 15px; }
  .navContent li .button {
    min-width: 0;
    padding: .55em .85em;
    font-size: 15px;
  }
}
@media (max-width: 900px) {
  .secondaryNavInner {
    flex-wrap: wrap;
    gap: 8px 1.75rem;
    padding: 8px 16px;
  }
  .secondaryNav .snItem { font-size: 13px; }
  .secondaryNav .snItem svg { width: 15px; height: 15px; }
}
