/*
 * AirPumpMart Header dropdown typography.
 * v1.4.4 uses one semantic class for every submenu item instead of styling
 * Products / Brands / Solutions through different HTML tags. This prevents
 * Elementor/theme selectors from making one dropdown look larger than another.
 */
#apm-v5-navigation .apm-v5-mega,
#apm-v5-navigation .apm-v5-mega :where(a,span,strong,small,.apm-v5-mega-title){
 font-family:var(--apm-type-family,inherit)!important;
 font-style:normal!important;
 letter-spacing:0!important;
}

/* Group headings only. */
#apm-v5-navigation.apm-v5-nav-shell .apm-v5-mega .apm-v5-mega-title,
#apm-v5-navigation.apm-v5-nav-shell .apm-v5-brand-mega .apm-v5-brand-group>strong{
 font-size:14px!important;
 font-weight:600!important;
 line-height:1.55!important;
}

/*
 * ONE shared type token for every submenu label:
 * - Product categories
 * - Brand names
 * - Solution / application names
 */
#apm-v5-navigation.apm-v5-nav-shell .apm-v5-mega a.apm-v5-submenu-item,
#apm-v5-navigation.apm-v5-nav-shell .apm-v5-mega a.apm-v5-submenu-item .apm-v5-submenu-label{
 font-size:13px!important;
 font-weight:400!important;
 line-height:1.55!important;
}

/* Neutralize semantic-tag defaults (e.g. <strong>) inside item labels. */
#apm-v5-navigation.apm-v5-nav-shell .apm-v5-solution-mega a.apm-v5-submenu-item strong.apm-v5-submenu-label{
 font-size:13px!important;
 font-weight:400!important;
 line-height:1.55!important;
}

/* Solution indexes align with the same visual scale, but remain accent text. */
#apm-v5-navigation.apm-v5-nav-shell .apm-v5-solution-mega a.apm-v5-submenu-item .apm-v5-solution-index{
 font-size:13px!important;
 font-weight:500!important;
 line-height:1.55!important;
}

/* Product counts are secondary metadata and intentionally smaller. */
#apm-v5-navigation.apm-v5-nav-shell .apm-v5-product-mega a.apm-v5-submenu-item small{
 font-size:12px!important;
 font-weight:400!important;
 line-height:1.55!important;
 flex-shrink:0;
}

#apm-v5-navigation .apm-v5-mega a{
 height:auto!important;
 min-height:40px;
 white-space:normal;
 word-break:normal;
 overflow-wrap:break-word;
}
#apm-v5-navigation .apm-v5-mega a>span,
#apm-v5-navigation .apm-v5-solution-mega>a>strong{min-width:0}
#apm-v5-navigation .apm-v5-brand-group{min-width:0}
#apm-v5-navigation .apm-v5-brand-group>a{padding-top:8px!important;padding-bottom:8px!important;box-sizing:border-box}
#apm-v5-navigation .apm-v5-brand-group>strong{display:block;min-height:24px}

@media(min-width:801px){
 #apm-v5-navigation .apm-v5-mega{
  max-height:calc(100vh - 170px);
  max-height:calc(100dvh - 170px);
  overflow-y:auto;
  overscroll-behavior:contain;
 }
}
@media(max-width:800px){
 #apm-v5-navigation .apm-v5-mega a{min-height:44px}
}
