/**
 * Bulk-aanvraag marketing-popup.
 *
 * Zelfde schil-techniek als de "toegevoegd aan winkelwagen"-popup
 * (overlay + gecentreerde kaart), maar met eigen IDs zodat de twee
 * elkaar niet in de weg zitten. De knop hergebruikt de thema-.btn.
 */

#pwh-bulk-overlay {
	position: fixed;
	inset: 0;
	/* Boven header (99991), TP-switcher (99999) en Chatra (9999). */
	z-index: 100000;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 20px;
	background: rgba(0, 0, 0, .5);
	overflow-y: auto;
}

#pwh-bulk-overlay[hidden] {
	display: none;
}

#pwh-bulk-popup {
	position: relative;
	width: 100%;
	max-width: 480px;
	max-height: calc(100vh - 40px);
	overflow-y: auto;
	padding: 34px 28px 28px;
	border-radius: 16px;
	background: #fff;
	box-shadow: 0 12px 40px rgba(0, 0, 0, .25);
	text-align: left;
}

#pwh-bulk-popup .pwh-bulk-popup-sluit {
	position: absolute;
	top: 10px;
	right: 12px;
	width: 40px;
	height: 40px;
	padding: 0;
	border: 0;
	background: none;
	font-size: 26px;
	line-height: 1;
	color: #6b6b6b;
	cursor: pointer;
}

#pwh-bulk-popup .pwh-bulk-popup-titel {
	margin: 0 0 12px;
	font-size: 24px;
	line-height: 1.2;
	color: #000;
}

#pwh-bulk-popup .pwh-bulk-popup-tekst {
	margin: 0 0 18px;
	color: #333;
	line-height: 1.5;
}

#pwh-bulk-popup .pwh-bulk-popup-tekst p {
	margin: 0 0 10px;
}

#pwh-bulk-popup .pwh-bulk-popup-tekst p:last-child {
	margin-bottom: 0;
}

#pwh-bulk-popup .pwh-bulk-popup-tekst a {
	color: #61da06;
	text-decoration: underline;
}

#pwh-bulk-popup .pwh-bulk-popup-tekst ul,
#pwh-bulk-popup .pwh-bulk-popup-tekst ol {
	margin: 0 0 10px;
	padding-left: 20px;
}

#pwh-bulk-popup .pwh-bulk-popup-afbeelding {
	margin: 0 0 18px;
}

#pwh-bulk-popup .pwh-bulk-afbeelding-img {
	display: block;
	width: 100%;
	height: auto;
	border-radius: 12px;
}

/* Twee kolommen zodra er een afbeelding is: tekst links, beeld rechts. */
#pwh-bulk-popup.pwh-heeft-afbeelding {
	max-width: 680px;
}

#pwh-bulk-popup.pwh-heeft-afbeelding .pwh-bulk-popup-body {
	display: flex;
	gap: 26px;
	align-items: flex-start;
}

#pwh-bulk-popup.pwh-heeft-afbeelding .pwh-bulk-popup-tekstkolom {
	flex: 1 1 auto;
	min-width: 0;
}

#pwh-bulk-popup.pwh-heeft-afbeelding .pwh-bulk-popup-afbeelding {
	flex: 0 0 42%;
	max-width: 42%;
	margin: 0;
}

#pwh-bulk-popup .pwh-bulk-popup-usps {
	list-style: none;
	margin: 0 0 24px;
	padding: 0;
}

#pwh-bulk-popup .pwh-bulk-popup-usps li {
	position: relative;
	padding-left: 28px;
	margin-bottom: 10px;
	color: #000;
	line-height: 1.4;
}

#pwh-bulk-popup .pwh-bulk-popup-usps li::before {
	content: "\2714"; /* ✔ */
	position: absolute;
	left: 0;
	top: 0;
	color: #61da06;
	font-weight: 700;
}

#pwh-bulk-popup .pwh-bulk-popup-knop.btn {
	display: block;
	width: 100%;
	text-align: center;
	white-space: nowrap;
}

/* Achtergrond niet mee laten scrollen zolang de popup open staat. */
body.pwh-bulkpopup-open {
	overflow: hidden;
}

/*
 * Alles wat vast onderaan het scherm hangt verbergen zolang de popup open staat
 * (zelfde reden als bij de winkelwagen-popup): TP-switcher (99999) en Chatra
 * (9999) zouden anders door de overlay heen prikken.
 */
body.pwh-bulkpopup-open #pwh-sticky-atc,
body.pwh-bulkpopup-open #chatra,
body.pwh-bulkpopup-open .trp-floating-switcher {
	display: none !important;
}

@media (max-width: 768px) {

	#pwh-bulk-overlay {
		padding: 14px;
		padding-bottom: calc(14px + env(safe-area-inset-bottom, 0px));
	}

	#pwh-bulk-popup {
		max-width: none;
		max-height: calc(100vh - 28px - env(safe-area-inset-bottom, 0px));
		padding: 28px 18px 18px;
	}

	#pwh-bulk-popup .pwh-bulk-popup-titel {
		font-size: 21px;
	}

	#pwh-bulk-popup.pwh-heeft-afbeelding {
		max-width: none;
	}

	#pwh-bulk-popup.pwh-heeft-afbeelding .pwh-bulk-popup-body {
		flex-direction: column;
	}

	#pwh-bulk-popup.pwh-heeft-afbeelding .pwh-bulk-popup-afbeelding {
		flex: none;
		max-width: none;
		order: -1;
		margin: 0 0 18px;
	}
}
