/**
 * Bartels contactknop
 * Huisstijl: donkerblauw #171a33, signaalrood #cf161d, pill-vormen.
 */

.bck {
	--bck-main: #cf161d;
	--bck-sub: #171a33;
	--bck-icon: #ffffff;
	--bck-label: #171a33;
	--bck-side: 24px;
	--bck-bottom: 24px;
	--bck-size: 60px;
	--bck-sub-size: 50px;

	position: fixed;
	bottom: var(--bck-bottom);
	z-index: 99990;
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	font-family: "Poppins", Helvetica, Arial, sans-serif;
	line-height: 1;
}

.bck--right {
	right: var(--bck-side);
}

.bck--left {
	left: var(--bck-side);
	align-items: flex-start;
}

/* Lijst met kanalen */

.bck__list {
	list-style: none;
	margin: 0 0 14px;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 12px;
	align-items: flex-end;
}

.bck--left .bck__list {
	align-items: flex-start;
}

.bck__list[hidden] {
	display: none;
}

.bck__item {
	margin: 0;
	padding: 0;
	opacity: 0;
	transform: translateY(14px) scale(0.85);
	transition: opacity 0.22s ease, transform 0.22s cubic-bezier(0.34, 1.4, 0.64, 1);
	transition-delay: 0ms;
}

.bck.is-open .bck__item {
	opacity: 1;
	transform: translateY(0) scale(1);
	transition-delay: var(--bck-delay, 0ms);
}

.bck__item::before,
.bck__item::marker {
	content: none;
}

/* Kanaalknop met label */

.bck__action {
	display: flex;
	align-items: center;
	gap: 10px;
	text-decoration: none;
	box-shadow: none;
}

.bck--left .bck__action {
	flex-direction: row-reverse;
}

.bck__label {
	background: var(--bck-label);
	color: #ffffff;
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	padding: 9px 16px;
	border-radius: 999px;
	white-space: nowrap;
	box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.92), 0 6px 18px rgba(0, 19, 40, 0.18);
	transition: background 0.2s ease, color 0.2s ease;
}

.bck__sr,
.bck--no-labels .bck__label {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	clip-path: inset(50%);
	white-space: nowrap;
}

.bck__bubble {
	width: var(--bck-sub-size);
	height: var(--bck-sub-size);
	border-radius: 50%;
	background: var(--bck-sub);
	display: flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 auto;
	box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.92), 0 8px 20px rgba(0, 19, 40, 0.25);
	transition: background 0.2s ease, transform 0.2s ease;
}

.bck__action:hover .bck__bubble,
.bck__action:focus-visible .bck__bubble {
	background: var(--bck-main);
	transform: translateY(-2px);
}

.bck__action:hover .bck__label,
.bck__action:focus-visible .bck__label {
	background: var(--bck-main);
}

.bck__bubble .bck-icon {
	width: 22px;
	height: 22px;
	fill: var(--bck-icon);
}

/* Hoofdknop */

.bck__toggle {
	width: var(--bck-size);
	height: var(--bck-size);
	border-radius: 50%;
	border: 0;
	padding: 0;
	margin: 0;
	background: var(--bck-main);
	color: var(--bck-icon);
	cursor: pointer;
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.55), 0 10px 26px rgba(0, 19, 40, 0.35);
	transition: transform 0.25s cubic-bezier(0.34, 1.4, 0.64, 1), background 0.2s ease;
	-webkit-appearance: none;
	appearance: none;
}

.bck__toggle:hover,
.bck__toggle:focus-visible {
	background: var(--bck-sub);
	transform: scale(1.06);
	box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.92), 0 12px 28px rgba(0, 19, 40, 0.35);
}

.bck__toggle:focus-visible {
	outline: 3px solid #ffffff;
	outline-offset: 3px;
}

.bck__toggle .bck-icon {
	width: 28px;
	height: 28px;
	fill: currentColor;
}

.bck__toggle-icon {
	position: absolute;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: opacity 0.2s ease, transform 0.25s ease;
}

.bck__toggle-icon--close {
	opacity: 0;
	transform: rotate(-90deg) scale(0.6);
}

.bck.is-open .bck__toggle-icon--open {
	opacity: 0;
	transform: rotate(90deg) scale(0.6);
}

.bck.is-open .bck__toggle-icon--close {
	opacity: 1;
	transform: rotate(0) scale(1);
}

.bck.is-open .bck__toggle {
	box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.92), 0 12px 28px rgba(0, 19, 40, 0.35);
}

/* Attentiepuls op de gesloten knop */

.bck__toggle::after {
	content: "";
	position: absolute;
	inset: 0;
	border-radius: 50%;
	border: 2px solid var(--bck-main);
	opacity: 0;
	animation: bck-pulse 2.8s ease-out infinite;
	pointer-events: none;
}

.bck.is-open .bck__toggle::after,
.bck__toggle:hover::after {
	animation: none;
	opacity: 0;
}

@keyframes bck-pulse {
	0% {
		transform: scale(1);
		opacity: 0.6;
	}
	70% {
		transform: scale(1.5);
		opacity: 0;
	}
	100% {
		transform: scale(1.5);
		opacity: 0;
	}
}

/* Zichtbaarheid per apparaat */

@media (max-width: 980px) {
	.bck {
		--bck-size: 56px;
		--bck-sub-size: 46px;
	}

	.bck--hide-mobile {
		display: none;
	}

	.bck__label {
		font-size: 11px;
		padding: 8px 14px;
	}
}

@media (min-width: 981px) {
	.bck--hide-desktop {
		display: none;
	}
}

@media (prefers-reduced-motion: reduce) {
	.bck__item,
	.bck__toggle,
	.bck__toggle-icon,
	.bck__bubble,
	.bck__label {
		transition-duration: 0.01ms;
	}

	.bck__toggle::after {
		animation: none;
	}
}

/* Divi en themastijlen overschrijven */

.bck a,
.bck a:hover,
.bck a:focus {
	text-decoration: none;
	border: 0;
}

.bck ul,
.bck li {
	list-style: none !important;
}
