/**
 * enVisual Melding - meldingspopup.
 * Accentkleur via --emld-accent (inline gezet door de plugin).
 */

.emld-overlay {
	position: fixed;
	inset: 0;
	z-index: 100000;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 20px;
	background: rgba( 10, 14, 30, 0.6 );
	opacity: 0;
	transition: opacity 0.25s ease;
}
.emld-overlay.is-open {
	opacity: 1;
}
/* Verborgen = echt weg: anders overschrijft display:flex het hidden-attribuut
   en vangt deze laag onzichtbaar alle kliks op (bijv. op de doelgroep-splash). */
.emld-overlay[hidden] {
	display: none;
}

.emld-pop {
	position: relative;
	width: 100%;
	max-width: 440px;
	max-height: calc( 100vh - 40px );
	overflow: auto;
	background: #fff;
	color: #171a33;
	border-radius: 14px;
	box-shadow: 0 24px 60px rgba( 0, 0, 0, 0.35 );
	transform: translateY( 14px ) scale( 0.98 );
	transition: transform 0.25s ease;
	font-family: inherit;
}
.emld-overlay.is-open .emld-pop {
	transform: none;
}

.emld-close {
	position: absolute;
	top: 12px;
	right: 12px;
	width: 34px;
	height: 34px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border: 0;
	border-radius: 999px;
	background: rgba( 23, 26, 51, 0.08 );
	color: #171a33;
	cursor: pointer;
	transition: background 0.15s ease;
}
.emld-close:hover {
	background: rgba( 23, 26, 51, 0.18 );
}

.emld-kop {
	padding: 24px 26px 0;
}
.emld-logo {
	display: block;
	max-width: 160px;
	max-height: 64px;
	width: auto;
	height: auto;
	margin: 0 0 14px;
}
.emld-body {
	padding: 0 26px 28px;
}

/* Gekleurde kopbalk met logo en titel naast elkaar. */
.emld-pop--kop .emld-kop {
	display: flex;
	align-items: center;
	gap: 16px;
	padding: 22px 56px 22px 26px;
	background: var( --emld-kop-bg );
	border-radius: inherit;
	border-bottom-left-radius: 0;
	border-bottom-right-radius: 0;
}
.emld-pop--kop .emld-logo {
	flex: 0 0 auto;
	max-width: 72px;
	max-height: 72px;
	margin: 0;
}
.emld-pop--kop .emld-title {
	margin: 0;
	padding: 0;
	color: var( --emld-kop-tekst, #fff );
}
.emld-pop--kop .emld-body {
	padding-top: 22px;
}
.emld-pop--kop .emld-close {
	background: rgba( 255, 255, 255, 0.16 );
	color: var( --emld-kop-tekst, #fff );
}
.emld-pop--kop .emld-close:hover {
	background: rgba( 255, 255, 255, 0.3 );
}

/* Knop 2 in een eigen kleur. */
.emld-pop--knop2-kleur .emld-btn.emld-btn--tweede,
.emld-pop--knop2-kleur .emld-btn.emld-btn--tweede:hover {
	background: var( --emld-knop2-bg );
	border-color: var( --emld-knop2-bg );
	color: var( --emld-knop2-tekst ) !important;
}
.emld-pop--knop2-kleur .emld-btn.emld-btn--tweede:hover {
	filter: brightness( 0.94 );
}

.emld-title {
	margin: 0 0 14px;
	font-size: 22px;
	line-height: 1.2;
	font-weight: 700;
	color: #171a33;
	padding-right: 30px;
}

.emld-text {
	font-size: 15px;
	line-height: 1.55;
	color: #2a2e45;
}
.emld-text p {
	margin: 0 0 12px;
}
.emld-text a {
	color: var( --emld-accent, #cf161d );
	font-weight: 600;
	text-decoration: none;
}
.emld-text a:hover {
	text-decoration: underline;
}

/* Nette tijden-rij: label links, tijd rechts. */
.emld-text ul.emld-hours {
	list-style: none;
	margin: 0 0 14px;
	padding: 0;
}
.emld-text ul.emld-hours li {
	display: flex;
	justify-content: space-between;
	gap: 16px;
	padding: 5px 0;
	border-bottom: 1px solid rgba( 23, 26, 51, 0.08 );
}
.emld-text ul.emld-hours li:last-child {
	border-bottom: 0;
}
.emld-text ul.emld-hours li span:first-child {
	font-weight: 600;
}
.emld-text ul.emld-hours li span:last-child {
	font-variant-numeric: tabular-nums;
	white-space: nowrap;
}

.emld-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin: 18px 0 0;
}
.emld-btn {
	display: inline-block;
	padding: 11px 22px;
	border: 2px solid var( --emld-accent, #cf161d );
	border-radius: 999px;
	font-family: inherit;
	line-height: 1.3;
	cursor: pointer;
	background: var( --emld-accent, #cf161d );
	color: #fff !important;
	font-weight: 600;
	font-size: 15px;
	text-decoration: none;
	transition: filter 0.15s ease;
}
.emld-btn:hover {
	filter: brightness( 0.92 );
}
/* Tweede knop: omlijnd in de accentkleur. */
.emld-btn.emld-btn--tweede {
	background: transparent;
	color: var( --emld-accent, #cf161d ) !important;
}
.emld-btn.emld-btn--tweede:hover {
	filter: none;
	background: var( --emld-accent, #cf161d );
	color: #fff !important;
}

@media ( max-width: 480px ) {
	.emld-kop { padding: 20px 18px 0; }
	.emld-pop--kop .emld-kop { padding: 18px 52px 18px 18px; }
	.emld-body { padding: 0 18px 24px; }
	.emld-title { font-size: 19px; }
}
