/* Chatvenster in de huisstijl. #bpcb is nodig om boven de stijl van het thema te komen. */
#bpcb {
	--bpcb-blauw: #0063a3;
	--bpcb-groen: #bcbf00;
	--bpcb-groen-tekst: #23240a;
	--bpcb-licht: #f4f4ec;
	--bpcb-rand: #e4e5c2;
	--bpcb-rood: #8a1c1c;
	font-family: 'Open Sans', sans-serif;
	color: #1d1d1b;
}
#bpcb *,
#bpcb *::before,
#bpcb *::after {
	box-sizing: border-box;
}
#bpcb button {
	font-family: inherit;
	cursor: pointer;
}
#bpcb .bpcb-open {
	position: fixed;
	right: 20px;
	bottom: 20px;
	transition: bottom 0.3s ease;
	z-index: 9998;
	display: flex;
	align-items: center;
	gap: 8px;
	min-height: 48px;
	padding: 0 18px;
	background: var(--bpcb-blauw);
	border: 0;
	border-radius: 999px;
	box-shadow: 0 6px 18px rgba( 0, 0, 0, 0.25 );
	color: #fff;
	font-size: 15px;
	font-weight: 700;
}
#bpcb .bpcb-open:hover {
	background: #004a7a;
}
#bpcb .bpcb-open[aria-expanded="true"] {
	display: none;
}
#bpcb .bpcb-venster {
	position: fixed;
	right: 20px;
	bottom: 20px;
	z-index: 9999;
	display: flex;
	flex-direction: column;
	width: 380px;
	height: min( 600px, calc( 100vh - 40px ) );
	background: #fff;
	border-radius: 16px;
	box-shadow: 0 12px 36px rgba( 0, 0, 0, 0.28 );
	overflow: hidden;
}
#bpcb .bpcb-venster[hidden] {
	display: none;
}
#bpcb .bpcb-kop {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 12px;
	padding: 12px 16px;
	background: var(--bpcb-blauw);
	color: #fff;
}
#bpcb .bpcb-kop strong,
#bpcb .bpcb-kop span {
	display: block;
	color: #fff;
}
#bpcb .bpcb-kop strong {
	font-size: 16px;
}
#bpcb .bpcb-kop span {
	font-size: 12px;
}
#bpcb .bpcb-sluit {
	display: flex;
	padding: 6px;
	background: transparent;
	border: 0;
	border-radius: 8px;
	color: #fff;
}
#bpcb .bpcb-sluit:hover {
	background: rgba( 255, 255, 255, 0.15 );
}
#bpcb .bpcb-spoed {
	margin: 0;
	padding: 7px 16px;
	background: var(--bpcb-rood);
	color: #fff;
	font-size: 13px;
	line-height: 1.4;
}
#bpcb .bpcb-spoed a {
	color: #fff !important;
	font-weight: 700;
	text-decoration: underline;
}
#bpcb .bpcb-gesprek {
	flex: 1 1 auto;
	display: flex;
	flex-direction: column;
	gap: 10px;
	padding: 14px;
	overflow-y: auto;
	font-size: 15px;
	line-height: 1.5;
}
#bpcb .bpcb-bericht {
	max-width: 90%;
	padding: 10px 12px;
	white-space: pre-line;
	overflow-wrap: anywhere;
}
#bpcb .bpcb-bezoeker {
	align-self: flex-end;
	background: var(--bpcb-blauw);
	border-radius: 12px 12px 2px 12px;
	color: #fff;
}
#bpcb .bpcb-bot {
	align-self: flex-start;
	background: var(--bpcb-licht);
	border-radius: 12px 12px 12px 2px;
}
#bpcb .bpcb-bot a {
	color: var(--bpcb-blauw);
	font-weight: 700;
}
#bpcb .bpcb-alarm {
	align-self: stretch;
	max-width: none;
	background: #fbeaea;
	border-left: 6px solid var(--bpcb-rood);
	color: #4a1b1b;
	font-weight: 700;
}
#bpcb .bpcb-alarm a {
	color: var(--bpcb-rood);
}
#bpcb .bpcb-spoedregel {
	display: block;
	margin-top: 8px;
	font-size: 13px;
	color: #44443f;
}
#bpcb .bpcb-bronnen {
	display: block;
	margin-top: 8px;
	padding-top: 8px;
	border-top: 1px solid var(--bpcb-rand);
	white-space: normal;
}
#bpcb .bpcb-bronnen-kop {
	display: block;
	margin-bottom: 2px;
	font-size: 12px;
	color: #44443f;
}
#bpcb .bpcb-bron {
	display: block;
	margin-top: 4px;
	font-size: 14px;
	line-height: 1.35;
}
#bpcb .bpcb-bezig {
	color: #44443f;
}
#bpcb .bpcb-formulier {
	display: flex;
	gap: 8px;
	padding: 10px 12px 6px;
	border-top: 1px solid var(--bpcb-rand);
	margin: 0;
}
#bpcb .bpcb-formulier input {
	flex: 1 1 auto;
	min-width: 0;
	height: 44px;
	padding: 0 12px;
	background: #fff;
	border: 1px solid #b9ba9a;
	border-radius: 8px;
	font-family: inherit;
	font-size: 16px; /* 16px voorkomt inzoomen op iPhone */
	color: #1d1d1b;
}
#bpcb .bpcb-formulier button {
	flex: 0 0 auto;
	height: 44px;
	padding: 0 16px;
	background: var(--bpcb-groen);
	border: 0;
	border-radius: 8px;
	color: var(--bpcb-groen-tekst);
	font-size: 15px;
	font-weight: 700;
}
#bpcb .bpcb-formulier button:disabled {
	opacity: 0.6;
	cursor: default;
}
#bpcb .bpcb-melding {
	margin: 0;
	padding: 0 12px 10px;
	font-size: 11px;
	line-height: 1.4;
	color: #44443f;
}
#bpcb a:focus-visible,
#bpcb button:focus-visible,
#bpcb input:focus-visible {
	outline: 3px solid var(--bpcb-groen);
	outline-offset: 2px;
}

/* Zodra het pijltje naar boven van het thema zichtbaar is, schuift de chat daarboven. */
#bpcb.bpcb-hoog .bpcb-open {
	bottom: 100px;
}
@media ( min-width: 601px ) {
	#bpcb.bpcb-hoog .bpcb-venster {
		bottom: 100px;
		height: min( 600px, calc( 100vh - 120px ) );
	}
}

/* Telefoon: het venster vult het hele scherm. */
@media ( max-width: 600px ) {
	#bpcb .bpcb-open {
		right: 15px;
		bottom: 15px;
	}
	#bpcb .bpcb-venster {
		top: 0;
		right: 0;
		bottom: 0;
		left: 0;
		width: 100%;
		height: 100%;
		height: 100dvh;
		border-radius: 0;
	}
}

@media print {
	#bpcb {
		display: none;
	}
}
