/* =========================================
   BOIRON MEGA NAV
========================================= */

.boiron-mega-nav {
  width: 100%;
}

.boiron-mega-nav__menu {
  display: flex;
  justify-content: center;
  width: 100%;
  margin: 0;
  padding-left: 0;
  list-style: none;
}

.boiron-mega-nav__menu > li {
  list-style: none;
}

.boiron-mega-nav__menu > li::before,
.boiron-top__trigger::before {
  content: none !important;
  display: none !important;
}

.boiron-top {
  position: relative;
}

.boiron-top__trigger {
  display: inline-block;
  padding: 10px;
  cursor: pointer;
  user-select: none;
  text-transform: uppercase;
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
}

.boiron-top__trigger:hover {color: white !important; }

/* =========================================
   CARET
========================================= */

.boiron-top--mega > .boiron-top__trigger::after,
.boiron-top--dd > .boiron-top__trigger::after {
  content: "▾";
  display: inline-block;
  margin-left: 6px;
  font-size: 12px;
  line-height: 1;
  transform: translateY(-1px);
  transition: transform 0.15s ease;
}

.boiron-top--mega:hover > .boiron-top__trigger::after,
.boiron-top--mega:focus-within > .boiron-top__trigger::after,
.boiron-top--dd:hover > .boiron-top__trigger::after,
.boiron-top--dd:focus-within > .boiron-top__trigger::after {
  transform: translateY(-1px) rotate(180deg);
}

/* =========================================
   SHARED PANEL / DROPDOWN BEHAVIOR
========================================= */

.boiron-mega-panel,
.boiron-dd {
  position: absolute;
  top: 100%;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.12);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  z-index: 999999;
  transition: opacity 0.15s ease, transform 0.15s ease, visibility 0.15s ease;
}

/* =========================================
   MEGA PANEL
========================================= */

.boiron-mega-panel {
  left: 50%;
  min-width: 760px;
  transform: translateX(-50%) translateY(8px);
}

.boiron-top--mega:hover .boiron-mega-panel,
.boiron-top--mega:focus-within .boiron-mega-panel {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

.boiron-mega-grid {
  display: grid;
  gap: 0;
}

.boiron-mega-grid.boiron-cols-4 {
  grid-template-columns: repeat(4, minmax(200px, 1fr));
}

.boiron-mega-grid.boiron-cols-3 {
  grid-template-columns: repeat(3, minmax(220px, 1fr));
}

.boiron-mega-grid.boiron-cols-2 {
  grid-template-columns: repeat(2, minmax(240px, 1fr));
}

/* Important: remove horizontal padding from column itself
   so hover can stretch full width */
.boiron-mega-col {
  padding: 16px 0;
  border-right: 1px solid rgba(0, 0, 0, 0.08);
}

.boiron-mega-col:last-child {
  border-right: none;
}

.boiron-mega-heading,
.boiron-mega-heading--link {
  display: block;
  width: 100%;
  box-sizing: border-box;
  margin: 0;
  padding: 10px 18px;
  font-weight: 500;
  color: #000;
  text-decoration: none;
}

/* heading row hover */
.boiron-mega-heading--link:hover,
.boiron-mega-heading--link:focus {
  background: rgba(0, 0, 0, 0.05);
  text-decoration: none;
}

/* hide the "Column 1 / Column 2" headings only where needed */
.boiron-top.boiron-hide-col-headings .boiron-mega-heading {
  display: none;
}

.boiron-top.boiron-hide-col-headings .boiron-mega-col {
  padding-top: 10px;
}

/* =========================================
   MEGA LIST RESET
========================================= */

.boiron-mega-links {
  margin: 0;
  padding: 0;
  list-style: none;
}

.boiron-mega-links ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.boiron-mega-link,
.boiron-mega-subitem {
  margin: 0;
  padding: 0;
  list-style: none;
}

/* hover lives on the LI, so it can fill the whole row */
.boiron-mega-link:hover,
.boiron-mega-subitem:hover {
  background: rgba(0, 0, 0, 0.05);
}

/* =========================================
   MEGA LEVEL 2
========================================= */

.boiron-mega-link > .boiron-mega-link__label {
  display: block;
  width: 100%;
  box-sizing: border-box;
  margin: 0;
  padding: 10px 18px;
  color: #0073c6;
  font-weight: 500;
  font-size: 16px;
  text-decoration: none;
  text-indent: 0;
}

.boiron-mega-link > .boiron-mega-link__label:hover {
  text-decoration: none;
}

/* Child list under depth 2:
   remove left padding here so hover width stays full,
   then indent children using their own link padding */
.boiron-mega-panel .boiron-mega-link > ul {
  display: block;
  margin: 6px 0 0 !important;
  padding: 0 !important;
  list-style: none !important;
}

/* =========================================
   MEGA LEVEL 3+
========================================= */

.boiron-mega-subitem__link {
  display: block;
  width: 100%;
  box-sizing: border-box;
  margin: 0;
  padding: 8px 18px 8px 36px !important;
  color: #666;
  font-weight: 500;
  text-decoration: none;
  text-indent: 0;
}

.boiron-mega-subitem__link:hover {
  text-decoration: none;
}

/* =========================================
   NORMAL DROPDOWN
========================================= */

.boiron-dd {
  left: 0;
  min-width: 220px;
  margin: 0;
  padding: 8px 0;
  list-style: none;
  transform: translateY(8px);
}

.boiron-top--dd:hover > .boiron-dd,
.boiron-top--dd:focus-within > .boiron-dd {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}

.boiron-dd__item {
  margin: 0;
  padding: 0;
  list-style: none;
}

.boiron-dd__link {
  display: block;
  padding: 10px 14px;
  text-decoration: none;
  white-space: nowrap;
}

.boiron-dd__link:hover {
  background: rgba(0, 0, 0, 0.05);
}

.boiron-dd--nested {
  top: 0;
  left: 100%;
}

/* =========================================
   EXPLORE ONLY: SWAP COLORS
========================================= */

.boiron-top.boiron-hide-col-headings .boiron-mega-link > .boiron-mega-link__label,
.boiron-top.boiron-hide-col-headings .boiron-mega-link > .boiron-mega-link__label:visited {
  color: #000 !important;
}

.boiron-top.boiron-hide-col-headings .boiron-mega-subitem > .boiron-mega-subitem__link,
.boiron-top.boiron-hide-col-headings .boiron-mega-subitem > .boiron-mega-subitem__link:visited {
  color: #0073c6 !important;
}

.boiron-mega-panel .boiron-mega-links,
.boiron-mega-panel .boiron-mega-links > li,
.boiron-mega-panel .boiron-mega-link > ul,
.boiron-mega-panel .boiron-mega-link > ul > li {
  width: 100%;
}