/* Menu in de mobiele/tablet-popup, zie [hpb_popup_menu] in frontend.php. */
.hpb-pm__list,
.hpb-pm__list .sub-menu {
	list-style: none;
	margin: 0;
	padding: 0;
}

.hpb-pm__list li {
	position: relative;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
}

.hpb-pm__list a {
	flex: 1;
	text-decoration: none;
	color: var(--e-global-color-ec24f60);
	transition: color .2s ease;
}

.hpb-pm__list a:hover,
.hpb-pm__list a:focus-visible,
.hpb-pm__list .current-menu-item > a {
	color: var(--e-global-color-secondary);
}

/* Hoofdniveau */
.hpb-pm__list > li {
	border-bottom: 1px solid var(--e-global-color-5e9320b);
}

.hpb-pm__list > li > a {
	padding: 13px 0;
	font-family: "Kanit", sans-serif;
	font-size: 1.45rem;
	font-weight: 600;
	line-height: 1.2;
}

/* Submenu's */
.hpb-pm__list .sub-menu {
	display: none;
	flex-basis: 100%;
	margin: 0 0 14px 2px;
	padding-left: 16px;
	border-left: 2px solid var(--e-global-color-accent);
}

.hpb-pm__toggle[aria-expanded="true"] + .sub-menu {
	display: block;
	animation: hpb-pm-in .25s ease;
}

.hpb-pm__list .sub-menu a {
	padding: 7px 0;
	font-family: "Open Sans", sans-serif;
	font-size: 1.05rem;
	font-weight: 600;
}

.hpb-pm__list .sub-menu .sub-menu {
	margin: 2px 0 8px;
	border-left: 0;
}

.hpb-pm__list .sub-menu .sub-menu a {
	padding: 5px 0;
	font-size: .98rem;
	font-weight: 500;
}

/* Uitklapknop */
.hpb-pm__toggle,
.hpb-pm__toggle:hover,
.hpb-pm__toggle:focus {
	flex: 0 0 auto;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 38px;
	height: 38px;
	margin-left: 10px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: none;
	color: var(--e-global-color-primary);
	cursor: pointer;
	transition: color .2s ease;
}

.hpb-pm__toggle:hover {
	color: var(--e-global-color-secondary);
}

.hpb-pm__toggle:focus-visible {
	outline: 2px solid var(--e-global-color-primary);
	outline-offset: 2px;
}

.hpb-pm__toggle span {
	width: 9px;
	height: 9px;
	margin-top: -4px;
	border-right: 2px solid currentColor;
	border-bottom: 2px solid currentColor;
	transform: rotate(45deg);
	transition: transform .25s ease, margin .25s ease;
}

.hpb-pm__toggle[aria-expanded="true"] span {
	margin-top: 4px;
	transform: rotate(-135deg);
}

/* Even breed als op het hoofdniveau, zodat alle pijltjes recht onder elkaar staan. */
.sub-menu .hpb-pm__toggle {
	height: 30px;
}

@keyframes hpb-pm-in {
	from { opacity: 0; transform: translateY(-4px); }
	to   { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
	.hpb-pm__toggle[aria-expanded="true"] + .sub-menu { animation: none; }
}

/* Contactblok onderin de popup: de witte vulling in de iconen (FAQ, Werken bij)
 * krijgt de lichtgroene achtergrondkleur. Niet leeg maken: in het FAQ-icoon dekt
 * de vulling de overlappende lijnen van de achterste ballon af. */
.hpb-menu-popup .elementor-icon-list-icon svg [style*="fill:#fff"] {
	fill: var(--e-global-color-260c04e) !important;
}

/* Geen focuslijn op de sluitknop als de popup met tik/klik is geopend (zie js/popup-menu.js). */
.hpb-menu-popup .dialog-close-button.hpb-no-ring {
	outline: none !important;
	box-shadow: none !important;
}

/* Hoogte = het echt zichtbare deel van het scherm. Elementor zet 100vh, wat op telefoons
 * ook het stuk achter de adresbalk meetelt, waardoor de onderkant wegvalt. */
.hpb-menu-popup .dialog-message {
	height: 100dvh !important;
}

.hpb-menu-popup .elementor-element-a1b2c01 {
	--min-height: 100dvh !important;
}
