/* Mull2media, 20-10-2026: vervangt Sticky Menu (or Anything!), Popups en Popup Builder. Zie inc/m2m-vervanging.php. */

/* Vaste kop. Het parent-thema geeft #global_wrapper overflow-x: hidden; daardoor wordt het een eigen
   scrollcontainer en blijft een sticky kop niet staan. clip snijdt hetzelfde af zonder scrollcontainer,
   flow-root houdt het opmaakverband (BFC) dat hidden gaf. De themaregels laden na dit bestand en de child-CSS
   zet display: block !important, vandaar de hogere specificiteit en !important. */
html body #global_wrapper {
	overflow-x: clip !important;
	overflow-y: visible !important;
	display: flow-root !important;
}
#header-custom {
	position: -webkit-sticky;
	position: sticky;
	top: 0;
}
.admin-bar #header-custom { top: 32px; }
@media screen and (max-width: 782px) {
	.admin-bar #header-custom { top: 46px; }
}
@media screen and (max-width: 600px) {
	.admin-bar #header-custom { top: 0; }
}
/* Tot 480 px verborg de child-CSS de bovenbalk zodra de plugin de kop vastzette (#header-custom.element-is-sticky),
   en dat gebeurde direct bij het laden. Zonder plugin dus altijd verbergen. */
@media screen and (max-width: 480px) {
	#header-custom .gbtr_tools_wrapper { display: none !important; }
}

/* Popups (<dialog>), opmaak overgenomen van de oude popups. */
.m2m-popup {
	box-sizing: border-box;
	margin: auto; /* De reset in het parent-thema zet margin: 0 op dialog. */
	max-width: 100vw;
	max-height: calc(100vh - 20px);
	max-height: calc(100dvh - 20px);
	overflow: auto;
	padding: 25px;
	border: 0;
	color: #333;
	box-shadow: 0 0 10px 1px #666;
}
.m2m-popup[open] { animation: m2m-popup-in .3s ease; }
@keyframes m2m-popup-in {
	from { opacity: 0; }
	to { opacity: 1; }
}
.m2m-popup::backdrop { background: rgba(0, 0, 0, .5); }
.m2m-popup__sluit {
	position: absolute;
	top: 4px;
	right: 8px;
	padding: 0;
	border: 0;
	background: none;
	color: #666;
	font-size: 34px;
	line-height: 1;
	text-shadow: 0 0 1px #fff;
	cursor: pointer;
}
.m2m-popup__sluit:hover,
.m2m-popup__sluit:focus { color: #000; }

/* E-book: wit, 500 px, geen verduistering. */
.m2m-popup--ebook { width: 500px; background: #fff; }
.m2m-popup--ebook::backdrop { background: transparent; }

/* Offerte: grijs, 600 px, 50% verduistering. */
.m2m-popup--offerte { width: 600px; background: #eee; }

/* Bel mij terug: zoals de Popup Builder-versie (wit, zwarte rand, rond sluitknopje, 80% verduistering). */
.m2m-popup--belmij {
	width: 370px;
	max-width: calc(100vw - 50px);
	padding: 30px;
	border: 5px solid #000;
	background: #fff;
	box-shadow: none;
	overflow: visible;
}
.m2m-popup--belmij::backdrop { background: rgba(0, 0, 0, .8); }
.m2m-popup--belmij .m2m-popup__sluit {
	top: -5px;
	right: -5px;
	width: 26px;
	height: 26px;
	border-radius: 50%;
	background: #000;
	color: #fff;
	font-size: 22px;
	line-height: 26px;
	text-align: center;
	text-shadow: none;
}
.m2m-popup--belmij .m2m-popup__sluit:hover,
.m2m-popup--belmij .m2m-popup__sluit:focus { color: #ccc; }
