/* Moerverhuur Chatbot 2.0.4, huisstijl blauw #1E3F7C en groen #43A838 */

.mv-cb {
	--mv-blauw: #1e3f7c;
	--mv-groen: #43a838;
	--mv-groen-donker: #2b7d22; /* wit op deze kleur: contrast 5,2:1 */
	--mv-groen-hover: #37862e;
	--mv-rand: #d6ddeb;
	--mv-tekst: #22314f;
	--mv-font: 'Nunito Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
	/* positie van de launcher; op smalle schermen boven de belknop .mv-mobile-call */
	--mv-cb-right: 20px;
	--mv-cb-bottom: 20px;
	--mv-cb-launcher-h: 58px;
	font-family: var(--mv-font);
}

.mv-cb__bubbel {
	position: fixed;
	right: var(--mv-cb-right);
	bottom: var(--mv-cb-bottom);
	z-index: 99998;
	display: flex;
	align-items: center;
	gap: 10px;
	min-height: 56px;
	padding: 12px 20px 12px 16px;
	border: 0;
	border-radius: 999px;
	background: var(--mv-groen);
	color: #fff;
	font: 700 16px/1.2 var(--mv-font);
	letter-spacing: .01em;
	cursor: pointer;
	box-shadow: 0 8px 24px rgba(67, 168, 56, .4);
}
.mv-cb__bubbel:hover { background: var(--mv-groen-hover); }
.mv-cb__bubbel:focus-visible { outline: 3px solid #1e3f7c; outline-offset: 3px; }
.mv-cb__bubbel-icoon {
	display: flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 auto;
	width: 28px;
	height: 28px;
}
.mv-cb__bubbel-icoon svg { display: block; width: 22px; height: 22px; }
.mv-cb__bubbel-tekst--kort { display: none; }

/* uitnodigend ballonnetje boven de launcher, eenmaal per sessie, sluitbaar */
.mv-cb__teaser {
	position: fixed;
	right: var(--mv-cb-right);
	bottom: calc(var(--mv-cb-bottom) + var(--mv-cb-launcher-h) + 10px);
	z-index: 99998;
	max-width: 260px;
	padding: 12px 32px 12px 14px;
	background: #fff;
	color: var(--mv-tekst);
	font: 600 13.5px/1.45 var(--mv-font);
	border: 1px solid var(--mv-rand);
	border-radius: 14px 14px 4px 14px;
	box-shadow: 0 8px 26px rgba(30, 63, 124, .22);
	cursor: pointer;
	animation: mv-cb-teaser-in .35s ease-out;
}

.mv-cb__teaser-sluit {
	position: absolute;
	top: 0;
	right: 0;
	border: 0;
	background: none;
	color: #93a0b8;
	font-size: 18px;
	line-height: 1;
	cursor: pointer;
	padding: 8px 10px;
	min-width: 36px;
	min-height: 36px;
}
.mv-cb__teaser-sluit:hover { color: var(--mv-tekst); }

@keyframes mv-cb-teaser-in {
	from { opacity: 0; transform: translateY(8px); }
	to { opacity: 1; transform: translateY(0); }
}

.mv-cb__paneel {
	position: fixed;
	right: 20px;
	bottom: 20px;
	z-index: 99999;
	display: flex;
	flex-direction: column;
	width: 380px;
	max-width: calc(100vw - 32px);
	height: 560px;
	max-height: calc(100vh - 40px);
	max-height: calc(100dvh - 40px);
	overflow: hidden;
	background: #fff;
	border-radius: 16px;
	box-shadow: 0 14px 44px rgba(30, 63, 124, .26);
}

.mv-cb__kop {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 14px 16px;
	background: var(--mv-blauw);
	color: #fff;
}

.mv-cb__avatar {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 38px;
	height: 38px;
	flex: 0 0 38px;
	border-radius: 50%;
	background: var(--mv-groen);
	font-weight: 800;
}

.mv-cb__titel { font-weight: 800; font-size: 15px; line-height: 1.25; min-width: 0; }
.mv-cb__status { display: flex; align-items: center; gap: 6px; font-weight: 400; font-size: 12px; opacity: .95; }
.mv-cb__stip { flex: 0 0 8px; width: 8px; height: 8px; border-radius: 50%; background: #aab6cf; }
.mv-cb__stip--open { background: #5fd04f; }

.mv-cb__acties { margin-left: auto; display: flex; align-items: center; gap: 2px; }
.mv-cb__ikoon {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	border: 0;
	border-radius: 50%;
	background: none;
	color: #fff;
	font-size: 26px;
	line-height: 1;
	cursor: pointer;
	opacity: .9;
}
.mv-cb__ikoon:hover,
.mv-cb__ikoon[aria-expanded="true"] { opacity: 1; background: rgba(255, 255, 255, .16); }

.mv-cb__stroom {
	flex: 1;
	overflow-y: auto;
	padding: 16px;
	background: #f7f9fd;
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.mv-cb__bericht {
	max-width: 86%;
	padding: 10px 14px;
	font-size: 14px;
	line-height: 1.55;
	color: var(--mv-tekst);
	background: #fff;
	border-radius: 14px 14px 14px 4px;
	box-shadow: 0 1px 4px rgba(30, 63, 124, .08);
	align-self: flex-start;
	overflow-wrap: break-word;
}

.mv-cb__bericht--klant {
	align-self: flex-end;
	background: var(--mv-blauw);
	color: #fff;
	border-radius: 14px 14px 4px 14px;
	box-shadow: none;
}

.mv-cb__bericht a { color: var(--mv-groen-donker); font-weight: 700; text-decoration: underline; }
.mv-cb__bericht--klant a { color: #fff; }

.mv-cb__wacht { display: flex; gap: 5px; padding: 14px 16px; }
.mv-cb__wacht span {
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: var(--mv-groen);
	animation: mv-cb-pols 1.1s infinite ease-in-out;
}
.mv-cb__wacht span:nth-child(2) { animation-delay: .18s; }
.mv-cb__wacht span:nth-child(3) { animation-delay: .36s; }

@keyframes mv-cb-pols {
	0%, 100% { opacity: .3; transform: translateY(0); }
	50% { opacity: 1; transform: translateY(-3px); }
}

.mv-cb__suggesties { display: flex; flex-direction: column; gap: 8px; }
.mv-cb__chips { display: flex; flex-wrap: wrap; gap: 8px; }
.mv-cb__chip {
	padding: 9px 14px;
	min-height: 40px;
	background: #fff;
	border: 1.5px solid var(--mv-blauw);
	border-radius: 999px;
	font: 700 13.5px/1.2 var(--mv-font);
	color: var(--mv-blauw);
	cursor: pointer;
}
.mv-cb__chip:hover { background: var(--mv-blauw); color: #fff; }

.mv-cb__keuzes { display: flex; flex-wrap: wrap; gap: 8px; margin: 2px 0 4px; }
.mv-cb__keuze {
	padding: 9px 14px;
	min-height: 40px;
	background: #fff;
	border: 1.5px solid var(--mv-blauw);
	border-radius: 999px;
	font: 700 13.5px/1.2 var(--mv-font);
	color: var(--mv-blauw);
	cursor: pointer;
}
.mv-cb__keuze:hover,
.mv-cb__keuze:focus-visible { background: var(--mv-blauw); color: #fff; }
.mv-cb__voorbeeld {
	padding: 10px 13px;
	text-align: left;
	background: #fff;
	border: 1px solid var(--mv-rand);
	border-radius: 10px;
	font: 600 13px/1.4 var(--mv-font);
	color: var(--mv-blauw);
	cursor: pointer;
}
.mv-cb__voorbeeld:hover { border-color: var(--mv-groen-donker); }

.mv-cb__opnieuw {
	display: block;
	margin-top: 8px;
	padding: 8px 14px;
	border: 1.5px solid var(--mv-blauw);
	border-radius: 999px;
	background: #fff;
	color: var(--mv-blauw);
	font: 700 13px/1 var(--mv-font);
	cursor: pointer;
}

.mv-cb__sr {
	position: absolute !important;
	width: 1px; height: 1px;
	margin: -1px; padding: 0;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.mv-cb__escalatie {
	padding: 12px;
	background: #eef4ec;
	border-top: 1px solid #d8e6d4;
	max-height: 55%;
	overflow-y: auto;
}
.mv-cb__contact-kop { margin: 0 0 8px; font-size: 13.5px; color: var(--mv-tekst); display: flex; flex-wrap: wrap; column-gap: 8px; }
.mv-cb__contact-status { font-size: 12.5px; color: #5b6882; }
.mv-cb__contact-status.is-open { color: var(--mv-groen-donker); font-weight: 700; }
.mv-cb__contact-knoppen { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 6px; }
.mv-cb__cta {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	min-height: 44px;
	padding: 8px 6px;
	border-radius: 10px;
	background: var(--mv-groen-donker);
	color: #fff !important;
	font: 700 13px/1.15 var(--mv-font);
	text-align: center;
	text-decoration: none !important;
}
.mv-cb__cta svg { flex: 0 0 18px; }
.mv-cb__cta--tel { background: var(--mv-blauw); }
.mv-cb__cta--mail { background: #fff; color: var(--mv-blauw) !important; border: 1.5px solid var(--mv-blauw); }
.mv-cb__cta:hover { filter: brightness(1.1); }

.mv-cb__terug {
	margin-top: 8px;
	padding: 10px 12px;
	min-height: 40px;
	border: 1px solid var(--mv-groen-donker);
	border-radius: 8px;
	background: #fff;
	color: var(--mv-blauw);
	font: 600 13px/1 var(--mv-font);
	cursor: pointer;
}

.mv-cb__terugform { display: flex; flex-wrap: wrap; gap: 6px; width: 100%; }
.mv-cb__terugform input {
	flex: 1 1 120px;
	min-width: 0;
	padding: 9px 11px;
	border: 1px solid var(--mv-rand);
	border-radius: 8px;
	font: 400 13px/1.3 var(--mv-font);
}
.mv-cb__verstuur-terug {
	padding: 9px 14px;
	border: 0;
	border-radius: 8px;
	background: var(--mv-groen-donker);
	color: #fff;
	font: 700 13px/1 var(--mv-font);
	cursor: pointer;
}
.mv-cb__geenwa {
	margin: 8px 0 0;
	font-size: 12px;
	line-height: 1.4;
	color: var(--mv-tekst);
}
.mv-cb__geenwa a { color: var(--mv-blauw); font-weight: 700; }

.mv-cb__bedankt { margin: 0; font-size: 13px; color: var(--mv-tekst); }

.mv-cb__invoer {
	display: flex;
	gap: 8px;
	padding: 12px;
	border-top: 1px solid #e4e9f2;
	background: #fff;
}

.mv-cb__invoer input {
	flex: 1;
	min-width: 0;
	padding: 11px 14px;
	border: 1px solid var(--mv-rand);
	border-radius: 10px;
	font: 400 14px/1.3 var(--mv-font);
	color: var(--mv-tekst);
}
.mv-cb__invoer input:focus { outline: 2px solid var(--mv-blauw); outline-offset: -1px; }
.mv-cb__invoer input::placeholder { color: #5b6882; opacity: 1; }
.mv-cb__invoer button:disabled { opacity: .55; cursor: default; }

.mv-cb__invoer button {
	padding: 0 18px;
	border: 0;
	border-radius: 10px;
	background: var(--mv-groen-donker);
	color: #fff;
	font: 800 14px/1 var(--mv-font);
	cursor: pointer;
}

.mv-cb__voet {
	margin: 0;
	padding: 0 12px 10px;
	background: #fff;
	color: #5b6882;
	font-size: 11.5px;
	line-height: 1.35;
	text-align: center;
}

/* berichtopmaak: alinea's en lijsten uit het antwoord van de adviseur */
.mv-cb__bericht p { margin: 0 0 .6em; }
.mv-cb__bericht p:last-child { margin-bottom: 0; }
.mv-cb__bericht ul { margin: 0 0 .6em; padding-left: 1.2em; list-style: disc; }
.mv-cb__bericht li { margin: 0 0 .25em; }

.mv-cb button:focus-visible,
.mv-cb a:focus-visible { outline: 3px solid #1e3f7c; outline-offset: 2px; box-shadow: 0 0 0 5px #fff; }
.mv-cb__kop button:focus-visible { outline-color: #fff; box-shadow: none; }
.mv-cb__paneel:focus { outline: none; }
.mv-cb__paneel[hidden],
.mv-cb__bubbel[hidden],
.mv-cb__escalatie[hidden] { display: none; }

/*
 * Zwevende belknop .mv-mobile-call (antek-child/topbar.css):
 * zichtbaar tot 1024px, 52×52 px, right/bottom 16px, z-index 9999.
 * Geen zwevende WhatsApp-knop. Launcher komt daarboven, zelfde rechterhoek.
 */
@media (max-width: 1024px) {
	.mv-cb {
		--mv-cb-right: 16px;
		--mv-cb-bottom: calc(80px + env(safe-area-inset-bottom, 0px));
		--mv-cb-launcher-h: 48px;
	}
	.mv-cb__bubbel {
		min-height: 48px;
		padding: 10px 14px 10px 12px;
		font-size: 14px;
		gap: 8px;
	}
	.mv-cb__bubbel-icoon,
	.mv-cb__bubbel-icoon svg { width: 20px; height: 20px; }
	.mv-cb__bubbel-tekst--lang { display: none; }
	.mv-cb__bubbel-tekst--kort { display: inline; }
	.mv-cb__teaser { max-width: min(260px, calc(100vw - 32px)); }
}

/* Cookie-banner (Complianz 7.5.9): alleen verbergen als de banner écht open is.
   Zichtbaar = klasse .cmplz-show. Na een keuze krijgt de banner .cmplz-dismissed
   (display:none) en níet opnieuw .cmplz-hidden; :not(.cmplz-hidden) zou de
   launcher dan altijd verborgen houden. Alleen op mobiel (<=1024px), waar de
   banner de volle breedte onderaan inneemt. Op desktop altijd tonen. */
@media (max-width: 1024px) {
	body:has(.cmplz-cookiebanner.cmplz-show) .mv-cb__bubbel,
	body:has(.cmplz-cookiebanner.cmplz-show) .mv-cb__teaser {
		visibility: hidden;
		pointer-events: none;
	}
}

@media (max-width: 480px) {
	/* volledig scherm op mobiel */
	.mv-cb__paneel {
		top: 0;
		right: 0;
		bottom: 0;
		left: 0;
		width: 100%;
		max-width: none;
		height: 100vh;
		height: 100dvh;
		max-height: none;
		border-radius: 0;
	}
	.mv-cb__kop { padding: 12px 10px 12px 14px; }
	.mv-cb__ikoon { width: 44px; height: 44px; }
	.mv-cb__invoer { padding-bottom: 12px; }
	.mv-cb__invoer button { min-width: 84px; min-height: 46px; }
	.mv-cb__voet { padding-bottom: calc(10px + env(safe-area-inset-bottom, 0px)); }
	.mv-cb__contact-knoppen { grid-template-columns: 1fr 1fr; }
	.mv-cb__cta--tel { grid-column: 1 / -1; }
	/* 16px voorkomt dat iOS bij het typen inzoomt */
	.mv-cb__invoer input,
	.mv-cb__terugform input { font-size: 16px; min-height: 46px; }
	.mv-cb__keuze { min-height: 44px; font-size: 15px; }
	html.mv-cb-open { overflow: hidden; }
}

@media (prefers-reduced-motion: reduce) {
	.mv-cb__teaser,
	.mv-cb__wacht span { animation: none; }
}
