/**
 * Astra mobile drawer + Max Mega Menu compatibility.
 */

/* One hamburger only — hide the nested Max Mega Menu toggle. */
.ast-mobile-header-content #mega-menu-wrap-mobile_menu .mega-menu-toggle,
.ast-mobile-popup-content #mega-menu-wrap-mobile_menu .mega-menu-toggle {
	display: none !important;
}

/* Show the mobile menu when Astra opens the drawer/dropdown. */
.ast-main-header-nav-open #mega-menu-wrap-mobile_menu #mega-menu-mobile_menu,
.ast-popup-nav-open #mega-menu-wrap-mobile_menu #mega-menu-mobile_menu {
	display: flex !important;
	flex-direction: column;
	visibility: visible !important;
	position: relative !important;
	left: auto !important;
	right: auto !important;
	width: 100% !important;
	height: auto !important;
	max-height: none !important;
	overflow: visible !important;
}

/* Off-canvas drawer background */
.ast-mobile-popup-drawer.active .ast-mobile-popup-inner {
	background-color: #000000 !important;
}

/* Keep the drawer panel usable inside Astra off-canvas. */
.ast-mobile-popup-drawer.active #mega-menu-wrap-mobile_menu,
.ast-mobile-popup-drawer.active #mega-menu-wrap-mobile_menu #mega-menu-mobile_menu {
	overflow: visible;
}

.ast-mobile-popup-content #mega-menu-wrap-mobile_menu #mega-menu-mobile_menu {
	background-color: transparent;
}
