/*
 * Mobile menu (open state): the panel is fixed to the screen, so a long submenu (Products)
 * could not be scrolled to its end. Let the panel scroll, and let long item names wrap
 * instead of running off the right edge.
 */
@media (max-width: 991px) {
	/* Doubled class: beats the theme's own "padding" shorthand, which loads after this file */
	.top-bar.m-open .navbar-collapse.navbar-collapse {
		overflow-y: auto;
		overscroll-behavior: contain;
		-webkit-overflow-scrolling: touch;
		/* The panel is positioned inside .top-bar, which sits under the announcement bar,
		   so its bottom 45px are off screen: keep the last item clear of that. */
		padding-bottom: 110px;
	}

	.top-bar.m-open .navbar-collapse .dropdown-item {
		white-space: normal;
		overflow-wrap: anywhere;
	}
}
