/*
 * Header menu toggle and off-canvas menu panel of boppelsen.ch.
 *
 * The toggle is a link to popup 1451 (see the href in wp_removal/027_boppelsen_menu.py). The
 * popup contains an Elementor nav-menu widget with the CSS class mxm-menu-panel, and the popup
 * is the panel: it slides in from the right and covers the page.
 */

/* Toggle: three bars with the label MENU, the same in the desktop, tablet and mobile header */
.mxm-menu-toggle {
	display: inline-flex;
	align-items: center;
	padding: 5.5px;
	background-color: #ffffff;
	color: #202422;
	font: 600 22px/1.5 Montserrat, roboto, sans-serif;
	text-decoration: none;
}

.mxm-hamburger {
	position: relative;
	display: block;
	width: 39px;
	height: 24px;
}

.mxm-hamburger::before,
.mxm-hamburger::after,
.mxm-hamburger span {
	content: "";
	position: absolute;
	left: 0;
	width: 39px;
	height: 3px;
	border-radius: 4px;
}

.mxm-hamburger::before {
	top: 0;
	background-color: #202422;
}

.mxm-hamburger span {
	top: 8px;
	background-color: #339933;
}

.mxm-hamburger::after {
	top: 16px;
	background-color: #FFCD21;
}

/* Search results header: first bar in the lighter green */
.elementor-location-archive .mxm-hamburger span {
	background-color: #47A24F;
}

.mxm-menu-label {
	margin-left: 10px;
}

/* Panel: popup 1451. Width per breakpoint: 25% desktop, 45% tablet, 70% mobile */
#elementor-popup-modal-1451 .dialog-message {
	overflow: visible;
	width: 100% !important;
}

#elementor-popup-modal-1451 .dialog-message > .elementor {
	width: 100%;
}

#elementor-popup-modal-1451 .dialog-widget-content {
	width: 25% !important;
	border-left: 10px solid #339933;
}

@media (min-width: 768px) and (max-width: 1024px) {
	#elementor-popup-modal-1451 .dialog-widget-content {
		width: 45% !important;
	}
}

@media (max-width: 767px) {
	#elementor-popup-modal-1451 .dialog-widget-content {
		width: 70% !important;
		border-left: 5px solid #339933;
	}
}

/* Menu items */
.mxm-menu-panel .elementor-nav-menu a {
	padding: 13px 45px;
	color: #202422;
	font-size: 22px;
	line-height: 1.5;
}

.mxm-menu-panel .elementor-nav-menu a:hover,
.mxm-menu-panel .elementor-nav-menu a.highlighted,
.mxm-menu-panel .elementor-nav-menu a[aria-expanded="true"] {
	color: #339933 !important;
}

/* Elementor's own submenu indicator is replaced by the +/- buttons of menu.js */
.mxm-menu-panel .sub-arrow {
	display: none;
}

.mxm-menu-panel .elementor-nav-menu li.menu-item-has-children > a {
	cursor: pointer;
}

/* Submenus open and close in place, using the buttons added by menu.js */
.mxm-menu-panel .elementor-nav-menu li.menu-item-has-children {
	display: flex !important;
	flex-wrap: wrap;
	align-items: stretch;
}

.mxm-menu-panel .elementor-nav-menu li.menu-item-has-children > a {
	flex: 1 1 0;
	min-width: 0;
	padding-right: 0;
}

.mxm-menu-panel .elementor-nav-menu li.menu-item-has-children > .sub-menu {
	flex: 0 0 100%;
}

.mxm-menu-panel .elementor-nav-menu .sub-menu {
	position: static;
	display: none;
	float: none;
	width: 100% !important;
	min-width: 0 !important;
	max-width: none !important;
	margin: 0 !important;
	box-shadow: none;
	border: 0;
	padding: 0 0 0 20px;
	background: #ffffff;
}

.mxm-menu-panel .elementor-nav-menu .sub-menu li {
	width: 100%;
}

.mxm-menu-panel .elementor-nav-menu li.mxm-open > .sub-menu {
	display: block !important;
}

.mxm-menu-panel .elementor-nav-menu .sub-menu a {
	font-size: 20px;
}

.mxm-sub-toggle,
.mxm-sub-toggle:hover,
.mxm-sub-toggle:focus {
	flex: 0 0 45px;
	padding: 0;
	border: 0;
	background: none;
	color: #202422;
	cursor: pointer;
}

.mxm-sub-toggle::before {
	content: "+";
	font-size: 22px;
}

.mxm-open > .mxm-sub-toggle::before {
	content: "\2212";
}
