/* Beveiligingsmelding: neemt lettertype en kleuren van het thema over (via overerving en melding.js). */

#bvm-melding {
	position: fixed;
	left: 16px;
	right: 16px;
	bottom: 16px;
	z-index: 99998;
	display: flex;
	justify-content: center;
	pointer-events: none;
	opacity: 0;
	transform: translateY(12px);
	transition: opacity .25s ease, transform .25s ease;
}

#bvm-melding[hidden] {
	display: none !important;
}

#bvm-melding.bvm-pos-boven {
	bottom: auto;
	top: calc(16px + var(--wp-admin--admin-bar--height, 0px));
	transform: translateY(-12px);
}

#bvm-melding.bvm-zichtbaar {
	opacity: 1;
	transform: none;
}

#bvm-melding .bvm-kaart {
	pointer-events: auto;
	position: relative;
	box-sizing: border-box;
	display: flex;
	gap: 16px;
	align-items: flex-start;
	width: 100%;
	max-width: 640px;
	max-height: calc(100vh - 32px);
	overflow: auto;
	margin: 0;
	padding: 20px 52px 20px 20px;
	background: var(--bvm-bg, #fff);
	color: var(--bvm-tekst, #1d2330);
	border: 1px solid var(--bvm-rand, rgba(0, 0, 0, .12));
	border-radius: 12px;
	box-shadow: 0 12px 32px rgba(0, 0, 0, .18), 0 2px 6px rgba(0, 0, 0, .08);
	font-size: 15px;
	line-height: 1.55;
	text-align: left;
}

@supports (max-height: 100dvh) {
	#bvm-melding .bvm-kaart {
		max-height: calc(100dvh - 32px);
	}
}

#bvm-melding .bvm-icoon {
	flex: 0 0 40px;
	width: 40px;
	height: 40px;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 50%;
	color: var(--bvm-accent, currentColor);
	background: rgba(127, 127, 127, .14);
	background: color-mix(in srgb, var(--bvm-accent, currentColor) 14%, transparent);
}

#bvm-melding .bvm-inhoud {
	flex: 1 1 auto;
	min-width: 0;
}

/* De titel is een echte h2, zodat lettertype, gewicht en kleur van het thema meekomen. */
#bvm-melding .bvm-titel {
	margin: 0 0 8px;
	padding: 0;
	font-size: 19px;
	line-height: 1.3;
	border: 0;
	background: none;
}

#bvm-melding .bvm-tekst p,
#bvm-melding .bvm-tekst ul,
#bvm-melding .bvm-tekst ol {
	margin: 0 0 10px;
	padding: 0;
	font-size: inherit;
	line-height: inherit;
	color: inherit;
}

#bvm-melding .bvm-tekst ul,
#bvm-melding .bvm-tekst ol {
	padding-left: 1.3em;
}

#bvm-melding .bvm-tekst ul {
	list-style: disc outside;
}

#bvm-melding .bvm-tekst li {
	margin: 0 0 4px;
	padding: 0;
	list-style: inherit;
}

#bvm-melding .bvm-tekst a {
	text-decoration: underline;
}

#bvm-melding .bvm-knop {
	appearance: none;
	-webkit-appearance: none;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 40px;
	margin: 6px 0 0;
	padding: 9px 20px;
	font-family: inherit;
	font-size: 15px;
	font-weight: 600;
	line-height: 1.2;
	text-decoration: none;
	text-shadow: none;
	box-shadow: none;
	cursor: pointer;
	background: var(--bvm-accent, #2271b1);
	color: var(--bvm-op-accent, #fff);
	border: 0 solid transparent;
	border-radius: 6px;
	transition: filter .15s ease;
}

#bvm-melding .bvm-knop:hover {
	filter: brightness(.92);
}

#bvm-melding .bvm-knop::before,
#bvm-melding .bvm-knop::after {
	content: none !important;
}

#bvm-melding .bvm-sluit {
	appearance: none;
	-webkit-appearance: none;
	position: absolute;
	top: 10px;
	right: 10px;
	width: 36px;
	height: 36px;
	min-height: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	margin: 0;
	padding: 0;
	background: transparent;
	color: inherit;
	border: 0;
	border-radius: 50%;
	box-shadow: none;
	opacity: .7;
	cursor: pointer;
}

#bvm-melding .bvm-sluit:hover {
	opacity: 1;
	background: rgba(127, 127, 127, .16);
}

#bvm-melding .bvm-knop:focus-visible,
#bvm-melding .bvm-sluit:focus-visible {
	outline: 2px solid var(--bvm-focus, currentColor);
	outline-offset: 2px;
}

@media (max-width: 540px) {
	#bvm-melding {
		left: 8px;
		right: 8px;
		bottom: 8px;
	}

	#bvm-melding.bvm-pos-boven {
		top: calc(8px + var(--wp-admin--admin-bar--height, 0px));
	}

	#bvm-melding .bvm-kaart {
		padding: 16px 48px 16px 16px;
		font-size: 14px;
		max-height: calc(100vh - 16px);
	}

	#bvm-melding .bvm-icoon {
		display: none;
	}

	#bvm-melding .bvm-titel {
		font-size: 17px;
	}

	#bvm-melding .bvm-knop {
		width: 100%;
	}
}

@media (prefers-reduced-motion: reduce) {
	#bvm-melding,
	#bvm-melding.bvm-pos-boven {
		transition: none;
		transform: none;
	}
}

@media print {
	#bvm-melding {
		display: none !important;
	}
}
