/* WEBSTIJL Essentials — cookiebanner, WhatsApp-knop en mobiele actiebalk.
   Alles zit onder #wse-root zodat thema- en Elementor-stijlen er niet op inwerken. */

#wse-root {
	--wse-fg: #18181b;
	--wse-muted: #6b6b73;
	--wse-border: #e4e4e7;
	--wse-surface: #f7f7f7;
	--wse-shadow: 0 20px 25px -5px rgba(0, 0, 0, .1), 0 8px 10px -6px rgba(0, 0, 0, .1);
}

#wse-root *,
#wse-root *::before,
#wse-root *::after { box-sizing: border-box; }

#wse-root [hidden] { display: none !important; }

#wse-root .wse-ico { display: block; width: 20px; height: 20px; flex-shrink: 0; }

#wse-root button,
#wse-root a {
	font-family: inherit;
	-webkit-tap-highlight-color: transparent;
	text-decoration: none;
	margin: 0;
	min-height: 0;
	line-height: normal;
	text-shadow: none;
}

/* ---------- Cookiebanner (open) ---------- */

#wse-root .wse-cookie-panel {
	position: fixed;
	left: 20px;
	bottom: 20px;
	z-index: 9995;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	opacity: 0;
	transform: translateY(16px);
	transition: all .7s cubic-bezier(.4, 0, .2, 1);
}
#wse-root .wse-cookie-panel.wse-in { opacity: 1; transform: translateY(0); }

#wse-root .wse-cookie-card {
	width: 18rem;
	max-width: calc(100vw - 2.5rem);
	overflow: hidden;
	border: 1px solid var(--wse-border);
	border-radius: 16px;
	background: #fff;
	padding: 20px;
	box-shadow: var(--wse-shadow);
	text-align: left;
}

#wse-root .wse-cookie-head { display: flex; align-items: flex-start; gap: 12px; }

#wse-root .wse-cookie-badge {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	flex-shrink: 0;
	border-radius: 999px;
	background: var(--wse-brand-10);
	color: var(--wse-brand);
}

#wse-root .wse-cookie-title {
	margin: 0;
	padding: 0;
	font-size: 14px;
	line-height: 20px;
	font-weight: 600;
	color: var(--wse-fg);
	letter-spacing: normal;
	text-transform: none;
}

#wse-root .wse-cookie-text {
	margin: 4px 0 0;
	padding: 0;
	font-size: 12px;
	line-height: 1.625;
	font-weight: 400;
	color: var(--wse-muted);
	letter-spacing: normal;
	text-transform: none;
}

#wse-root .wse-cookie-accept,
#wse-root .wse-cookie-accept:hover,
#wse-root .wse-cookie-accept:focus {
	display: block;
	width: 100%;
	margin-top: 16px;
	padding: 10px 20px;
	border: 0;
	border-radius: 999px;
	background: var(--wse-brand);
	color: var(--wse-on-brand);
	font-size: 12px;
	line-height: 16px;
	font-weight: 600;
	letter-spacing: .14em;
	text-transform: uppercase;
	cursor: pointer;
	box-shadow: none;
	transition: opacity .15s ease;
}
#wse-root .wse-cookie-accept:hover { opacity: .9; }
#wse-root .wse-cookie-accept:focus-visible { outline: 2px solid var(--wse-brand); outline-offset: 2px; }

#wse-root .wse-cookie-decline,
#wse-root .wse-cookie-decline:hover,
#wse-root .wse-cookie-decline:focus {
	display: block;
	width: 100%;
	margin-top: 8px;
	padding: 4px;
	border: 0;
	border-radius: 999px;
	background: transparent;
	color: var(--wse-muted);
	font-size: 11px;
	line-height: 16px;
	font-weight: 500;
	letter-spacing: normal;
	text-transform: none;
	text-decoration: underline;
	text-underline-offset: 2px;
	cursor: pointer;
	box-shadow: none;
}
#wse-root .wse-cookie-decline:hover { color: var(--wse-fg); }

/* ---------- Cookiebanner (ingeklapt icoon) ---------- */

#wse-root .wse-cookie-toggle,
#wse-root .wse-cookie-toggle:hover,
#wse-root .wse-cookie-toggle:focus {
	position: fixed;
	left: 20px;
	bottom: 20px;
	z-index: 9995;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	padding: 0;
	border: 0;
	border-radius: 999px;
	background: var(--wse-brand);
	color: var(--wse-on-brand);
	box-shadow: var(--wse-shadow);
	cursor: pointer;
	transition: all .3s cubic-bezier(.4, 0, .2, 1);
}
#wse-root .wse-cookie-toggle:hover { opacity: .9; } /* geen verschuiving bij hover */
#wse-root .wse-cookie-toggle .wse-ico { width: 20px; height: 20px; }

/* ---------- WhatsApp-knop ---------- */

#wse-root .wse-wa {
	position: fixed;
	right: 20px;
	bottom: 20px;
	z-index: 9995;
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	gap: 12px;
	opacity: 0;
	transform: translateY(16px);
	transition: all .3s cubic-bezier(.4, 0, .2, 1);
}
#wse-root .wse-wa.wse-in { opacity: 1; transform: translateY(0); }

#wse-root .wse-wa-btn,
#wse-root .wse-wa-btn:hover,
#wse-root .wse-wa-btn:focus {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 48px;
	height: 48px;
	border-radius: 999px;
	background: #25d366;
	color: #fff;
	box-shadow: var(--wse-shadow);
	transition: transform .15s ease;
}
#wse-root .wse-wa-btn:hover { transform: translateY(-2px); }
#wse-root .wse-wa-btn .wse-ico { width: 24px; height: 24px; }

/* ---------- Mobiele actiebalk ---------- */

#wse-root .wse-bar { display: none; }

@media (max-width: 767.98px) {
	#wse-root .wse-bar {
		position: fixed;
		left: 0;
		right: 0;
		bottom: 0;
		z-index: 9990;
		display: grid;
		height: 56px;
		margin: 0;
		padding: 0 0 env(safe-area-inset-bottom);
		border-top: 1px solid rgba(0, 0, 0, .05);
		background: #fff;
		box-shadow: 0 -6px 20px rgba(0, 0, 0, .08);
		transform: translateY(100%);
		transition: transform .3s ease-out;
	}
	#wse-root.wse-bar-on .wse-bar { transform: translateY(0); }

	#wse-root .wse-bar-item,
	#wse-root .wse-bar-item:hover,
	#wse-root .wse-bar-item:focus,
	#wse-root .wse-bar-item:visited {
		display: flex;
		flex-direction: column;
		align-items: center;
		justify-content: center;
		gap: 2px;
		background: #fff;
		color: var(--wse-fg);
		transition: background-color .15s ease, opacity .15s ease;
	}
	#wse-root .wse-bar-item:active { background: var(--wse-surface); }
	#wse-root .wse-bar-item .wse-ico { color: var(--wse-brand); }

	#wse-root .wse-bar-item span {
		font-size: 10px;
		line-height: 15px;
		font-weight: 600;
		letter-spacing: .025em;
		text-transform: uppercase;
		color: inherit;
	}

	#wse-root .wse-bar-item--primary,
	#wse-root .wse-bar-item--primary:hover,
	#wse-root .wse-bar-item--primary:focus,
	#wse-root .wse-bar-item--primary:visited {
		background: var(--wse-brand);
		color: var(--wse-on-brand);
	}
	#wse-root .wse-bar-item--primary .wse-ico { color: var(--wse-on-brand); }
	#wse-root .wse-bar-item--primary:active { background: var(--wse-brand); opacity: .9; }

	/* Zwevende knoppen schuiven mee omhoog zodra de balk zichtbaar is */
	#wse-root.wse-bar-on .wse-cookie-panel,
	#wse-root.wse-bar-on .wse-cookie-toggle,
	#wse-root.wse-bar-on .wse-wa { bottom: 72px; }
}

/* ---------- Desktop ---------- */

@media (min-width: 768px) {
	#wse-root .wse-cookie-panel,
	#wse-root .wse-cookie-toggle { left: 28px; bottom: 28px; }
	#wse-root .wse-wa { right: 28px; bottom: 28px; }

	#wse-root .wse-cookie-toggle,
	#wse-root .wse-cookie-toggle:hover,
	#wse-root .wse-cookie-toggle:focus { width: 56px; height: 56px; }
	#wse-root .wse-cookie-toggle .wse-ico { width: 24px; height: 24px; }

	#wse-root .wse-wa-btn,
	#wse-root .wse-wa-btn:hover,
	#wse-root .wse-wa-btn:focus { width: 56px; height: 56px; }
	#wse-root .wse-wa-btn .wse-ico { width: 28px; height: 28px; }
}

@media (prefers-reduced-motion: reduce) {
	#wse-root .wse-cookie-panel,
	#wse-root .wse-cookie-toggle,
	#wse-root .wse-wa,
	#wse-root .wse-bar { transition: none; }
}

/* ---------- Tekst en iconen op de brandkleur altijd wit ----------
   Vast wit met !important, zodat thema-, Elementor- of cachestijlen dit niet kunnen overschrijven. */
#wse-root .wse-cookie-accept,
#wse-root .wse-cookie-accept:hover,
#wse-root .wse-cookie-accept:focus,
#wse-root .wse-cookie-toggle,
#wse-root .wse-cookie-toggle:hover,
#wse-root .wse-cookie-toggle:focus,
#wse-root .wse-cookie-toggle .wse-ico,
#wse-root .wse-bar-item--primary,
#wse-root .wse-bar-item--primary:hover,
#wse-root .wse-bar-item--primary:focus,
#wse-root .wse-bar-item--primary:active,
#wse-root .wse-bar-item--primary:visited,
#wse-root .wse-bar-item--primary span,
#wse-root .wse-bar-item--primary .wse-ico {
	color: #fff !important;
}
