/* PM - Popups
   Modal popup met optionele afbeelding, tekst en CTA-knop. */

.pm-popup[hidden] { display: none; }

.pm-popup {
	position: fixed;
	inset: 0;
	z-index: 999999;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 20px;
	padding-top: max(20px, env(safe-area-inset-top));
	padding-bottom: max(20px, env(safe-area-inset-bottom));
	box-sizing: border-box;
	font-family: inherit;
	opacity: 0;
	pointer-events: none;
	transition: opacity 0.25s ease;
}

.pm-popup--visible {
	opacity: 1;
	pointer-events: auto;
}

.pm-popup__overlay {
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0.55);
}

.pm-popup__card {
	position: relative;
	background: #fff;
	border-radius: 12px;
	max-width: 560px;
	width: 100%;
	max-height: calc(100vh - 40px);
	max-height: calc(100dvh - 40px);
	overflow: auto;
	-webkit-overflow-scrolling: touch;
	overscroll-behavior: contain;
	box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
	transform: translateY(8px);
	transition: transform 0.25s ease;
}

.pm-popup--visible .pm-popup__card {
	transform: translateY(0);
}

.pm-popup .pm-popup__close,
.pm-popup button.pm-popup__close {
	position: absolute !important;
	top: 12px !important;
	right: 12px !important;
	z-index: 2 !important;
	width: 40px !important;
	height: 40px !important;
	min-width: 40px !important;
	border: none !important;
	background: #fff !important;
	background-color: #fff !important;
	background-image: none !important;
	border-radius: 50% !important;
	font-size: 28px !important;
	line-height: 1 !important;
	color: #341813 !important;
	cursor: pointer !important;
	display: flex !important;
	align-items: center !important;
	justify-content: center !important;
	padding: 0 !important;
	margin: 0 !important;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15) !important;
	-webkit-appearance: none !important;
	appearance: none !important;
	transition: background 0.15s ease, transform 0.15s ease !important;
}

.pm-popup .pm-popup__close:hover,
.pm-popup button.pm-popup__close:hover {
	background: #f4ede1 !important;
	background-color: #f4ede1 !important;
	color: #341813 !important;
	transform: scale(1.05) !important;
}

.pm-popup .pm-popup__close:focus-visible,
.pm-popup button.pm-popup__close:focus-visible {
	outline: 2px solid #341813 !important;
	outline-offset: 2px !important;
}

.pm-popup__image {
	width: 100%;
	aspect-ratio: 16 / 10;
	background-size: cover;
	background-position: center;
	background-color: #f4ede1;
}

.pm-popup__body {
	padding: 28px 32px 32px;
}

.pm-popup--text .pm-popup__body {
	padding: 32px 36px 32px 32px;
}

.pm-popup__title {
	margin: 0 0 16px;
	font-size: 22px;
	line-height: 1.25;
	font-weight: 700;
	color: #95111d;
}

.pm-popup--text .pm-popup__title {
	color: #341813;
}

.pm-popup__content {
	color: #341813;
	font-size: 15px;
	line-height: 1.55;
}

.pm-popup__content p {
	margin: 0 0 12px;
}

.pm-popup__content p:last-child {
	margin-bottom: 0;
}

.pm-popup__content ul,
.pm-popup__content ol {
	margin: 0 0 12px;
	padding-left: 20px;
}

.pm-popup__content li {
	margin-bottom: 6px;
}

.pm-popup__content strong {
	font-weight: 700;
}

.pm-popup__content a {
	color: #95111d;
	text-decoration: underline;
}

.pm-popup__cta {
	display: inline-block;
	margin-top: 20px;
	padding: 12px 22px;
	background: #95111d;
	color: #fff !important;
	text-decoration: none !important;
	border-radius: 6px;
	font-weight: 600;
	font-size: 15px;
	transition: background 0.15s ease;
}

.pm-popup__cta:hover {
	background: #7d0e18;
}

@media (max-width: 600px) {
	.pm-popup {
		padding: 12px;
		padding-top: max(12px, env(safe-area-inset-top));
		padding-bottom: max(12px, env(safe-area-inset-bottom));
	}
	.pm-popup__card {
		max-height: calc(100vh - 24px);
		max-height: calc(100dvh - 24px);
		border-radius: 10px;
	}
	.pm-popup__body {
		padding: 22px 20px 24px;
	}
	.pm-popup--text .pm-popup__body {
		padding: 24px 24px 24px 20px;
	}
	.pm-popup__title {
		font-size: 19px;
	}
	.pm-popup__image {
		aspect-ratio: 4 / 3;
		max-height: 38vh;
	}
	.pm-popup .pm-popup__close,
	.pm-popup button.pm-popup__close {
		width: 44px !important;
		height: 44px !important;
		min-width: 44px !important;
		font-size: 30px !important;
		top: 10px !important;
		right: 10px !important;
	}
	.pm-popup__cta {
		display: block;
		text-align: center;
		padding: 14px 22px;
	}
}
