/* Chatknop rechtsonder. Kleurtokens uit het theme (assets/css/tokens.css), met terugvalwaarden. */
.whp-chatknop {
	position: fixed;
	right: max(1rem, env(safe-area-inset-right));
	bottom: max(1rem, env(safe-area-inset-bottom));
	z-index: 45;
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	min-height: var(--whp-klikdoel, 2.75rem);
	padding: 0.625rem 1.125rem;
	border-radius: var(--whp-r-pil, 999px);
	background: var(--whp-navy, #002e47);
	color: #fff;
	font-family: var(--whp-font, system-ui, sans-serif);
	font-size: 1rem;
	font-weight: 600;
	line-height: 1.2;
	text-decoration: none;
	box-shadow: var(--whp-schaduw-hoog, 0 8px 24px rgba(0, 26, 43, 0.28));
	border: 2px solid var(--whp-cyaan, #36c6f4);
}
.whp-chatknop:hover {
	background: var(--whp-navy-700, #0a3d5c);
	color: #fff;
}
.whp-chatknop:focus-visible {
	outline: 3px solid var(--whp-focus-donker, #8fdcf8);
	outline-offset: 3px;
}
.whp-chatknop svg {
	flex: none;
	color: var(--whp-cyaan, #36c6f4);
}
.whp-chatknop[aria-busy="true"] {
	cursor: progress;
}
.whp-chatknop.is-verborgen {
	display: none;
}
/* Mobiel menu open (het theme zet html.menu-open): geen chatknop over het menu (uiux-1, MB1). */
html.menu-open .whp-chatknop {
	display: none;
}
/*
 * Op elke breedte: chat-knop.js schuift de knop weg (.is-opzij) zolang er een invoerveld, knop, kop, kaart,
 * prijs of tabel onder ligt, of als een veld de focus heeft. Zo dekt hij geen inhoud af.
 */
.whp-chatknop {
	transition: opacity 0.15s ease, visibility 0s linear 0s;
}
.whp-chatknop.is-opzij {
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
	transition: opacity 0.15s ease, visibility 0s linear 0.15s;
}

/*
 * Mobiel (onder 600 px): alleen een rond icoon van 56 px rechtsonder. De tekst blijft voor schermlezers
 * (aria-label op de link en de visueel verborgen span).
 * - De houder is onderaan de pagina een strook in de kleur van de voet, zo hoog als de knop plus marge:
 *   aan het eind van de pagina staat de knop op die strook en niet over de voet of het laatste formulier.
 * - Het wegschuiven (.is-opzij, hierboven) geldt hier ook.
 */
@media (max-width: 599.98px) {
	.whp-chatknop {
		right: max(1rem, env(safe-area-inset-right));
		bottom: max(1rem, env(safe-area-inset-bottom));
		justify-content: center;
		width: 3.5rem;
		height: 3.5rem;
		min-height: 3.5rem;
		padding: 0;
		gap: 0;
		border-radius: 50%;
	}
	.whp-chatknop svg {
		width: 1.625rem;
		height: 1.625rem;
	}
	.whp-chatknop span {
		position: absolute;
		width: 1px;
		height: 1px;
		margin: -1px;
		padding: 0;
		overflow: hidden;
		clip: rect(0 0 0 0);
		clip-path: inset(50%);
		white-space: nowrap;
		border: 0;
	}
	.whp-chatknop-houder {
		display: block;
		height: calc(3.5rem + 2rem + env(safe-area-inset-bottom));
		background: var(--whp-navy, #002e47);
	}
}
@media (prefers-reduced-motion: reduce) {
	.whp-chatknop,
	.whp-chatknop.is-opzij {
		transition: none;
	}
}
@media print {
	.whp-chatknop { display: none; }
}
