/**
 * Floating WhatsApp widget (afdelingskeuze).
 */

.mgh-wa-widget-float {
	--mgh-wa-brand: #1f2128;
	--mgh-wa-brand-hover: #2d3039;
	position: fixed;
	bottom: 20px;
	right: 20px;
	z-index: 2147483645;
	font-family: "Geist", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
	font-size: 15px;
	line-height: 1.45;
}

.mgh-wa-widget-float .screen-reader-text {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	clip-path: inset(50%);
	border: 0;
	word-wrap: normal !important;
}

.mgh-wa-widget-toggle {
	position: relative;
	z-index: 2;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 56px;
	height: 56px;
	padding: 0;
	border: none;
	border-radius: 50% !important;
	background: var(--mgh-wa-brand);
	color: #fff;
	cursor: pointer;
	box-shadow: 0 4px 16px rgba(31, 33, 40, 0.35);
	transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
}
.mgh-wa-widget-toggle:hover {
	background: var(--mgh-wa-brand-hover);
	transform: translateY(-2px);
	box-shadow: 0 6px 22px rgba(31, 33, 40, 0.4);
}

.mgh-wa-widget-toggle svg {
	display: block;
	width: 30px;
	height: 30px;
	fill: currentColor;
}

.mgh-wa-widget-backdrop {
	position: fixed;
	inset: 0;
	z-index: 0;
	background: rgba(0, 0, 0, 0.35);
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
	transition: opacity 0.2s, visibility 0.2s;
}
.mgh-wa-widget-backdrop--open {
	opacity: 1;
	visibility: visible;
	pointer-events: auto;
}

.mgh-wa-widget-panel {
	position: fixed;
	bottom: 92px;
	right: 20px;
	z-index: 3;
	width: calc(100vw - 40px);
	max-width: 340px;
	opacity: 0;
	visibility: hidden;
	transform: translateY(12px) scale(0.96);
	transition: opacity 0.2s, visibility 0.2s, transform 0.2s;
	pointer-events: none;
}
.mgh-wa-widget-panel--open {
	opacity: 1;
	visibility: visible;
	transform: translateY(0) scale(1);
	pointer-events: auto;
}

.mgh-wa-widget-bubble {
	position: relative;
	background: #fff;
	border-radius: 14px;
	box-shadow: 0 10px 36px rgba(0, 0, 0, 0.18);
	padding: 18px 18px 14px;
	border: 1px solid rgba(0, 0, 0, 0.06);
}

.mgh-wa-widget-bubble::after {
	content: "";
	position: absolute;
	bottom: -10px;
	right: 22px;
	width: 0;
	height: 0;
	border-left: 12px solid transparent;
	border-right: 12px solid transparent;
	border-top: 12px solid #fff;
	filter: drop-shadow(0 2px 2px rgba(0, 0, 0, 0.06));
}

.mgh-wa-widget-close {
	position: absolute;
	top: 10px;
	right: 10px;
	width: 32px;
	height: 32px;
	padding: 0;
	border: none;
	background: transparent;
	font-size: 1.35rem;
	line-height: 1;
	color: #64748b;
	cursor: pointer;
	border-radius: 50%;
	transition: background 0.15s, color 0.15s;
}
.mgh-wa-widget-close:hover {
	background: #f1f5f9;
	color: #0f172a;
}

.mgh-wa-widget-intro {
	margin: 0 36px 12px 0;
	color: #334155;
	font-size: 0.95rem;
}

.mgh-wa-widget-intro p {
	margin: 0 0 0.5em;
}
.mgh-wa-widget-intro p:last-child {
	margin-bottom: 0;
}

.mgh-wa-widget-prompt {
	margin: 0 36px 14px 0;
	font-weight: 600;
	color: #0f172a;
	font-size: 0.98rem;
}

.mgh-wa-widget-departments {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.mgh-wa-widget-dept {
	display: flex;
	align-items: center;
	gap: 10px;
	width: 100%;
	padding: 12px 14px;
	border-radius: 10px;
	border: 1px solid #e2e8f0;
	background: #f8fafc;
	color: #0f172a;
	text-align: left;
	font-size: 0.98rem;
	font-weight: 600;
	cursor: pointer;
	text-decoration: none;
	transition: background 0.15s, border-color 0.15s, color 0.15s;
	box-sizing: border-box;
}

.mgh-wa-widget-dept-icon {
	display: block;
	width: 20px;
	height: 20px;
	flex-shrink: 0;
	fill: currentColor;
}

.mgh-wa-widget-dept--other .mgh-wa-widget-dept-icon {
	fill: none;
}

.mgh-wa-widget-dept:hover {
	background: #f1f2f4;
	border-color: var(--mgh-wa-brand);
	color: var(--mgh-wa-brand);
}

.mgh-wa-widget-dept--other {
	margin-top: 4px;
	background: #fff;
	font-weight: 500;
	color: #475569;
}

.mgh-wa-widget-dept--other:hover {
	background: #f8fafc;
}

@media (max-width: 480px) {
	.mgh-wa-widget-panel {
		right: 16px;
		bottom: 88px;
		width: calc(100vw - 32px);
	}
	.mgh-wa-widget-float {
		right: 16px;
		bottom: 16px;
	}
}
