/* BM Cookiebanner. Alles hangt onder #bmcb-banner / #bmcb-settings zodat thema- en Elementor-stijlen er niet doorheen komen.
   --bmcb-bg en --bmcb-text worden ingesteld via de plugin (inline :root-blok). */
#bmcb-banner,
#bmcb-settings {
	--bmcb-muted: #5b5b5b;
	--bmcb-border: #d9d9de;
	font-family: inherit;
	font-size: 13px; /* vaste basis: sommige thema's (Bootstrap 3) zetten html op 10px */
	line-height: 1.5;
	color: var(--bmcb-text, #1a1a1a);
	box-sizing: border-box;
}
#bmcb-banner *,
#bmcb-settings * { box-sizing: border-box; }

/* ── Banner ── */
#bmcb-banner {
	position: fixed; bottom: 0; left: 0; right: 0; z-index: 99999;
	background: var(--bmcb-bg, #ffffff); border-top: 1px solid var(--bmcb-border);
	box-shadow: 0 -4px 24px rgba(0,0,0,.08);
	padding: 1.75em 2em;
	transition: transform .3s ease, opacity .3s ease, visibility 0s linear 0s;
}
#bmcb-banner[aria-hidden="true"] {
	transform: translateY(110%); opacity: 0; visibility: hidden; pointer-events: none;
	transition: transform .3s ease, opacity .3s ease, visibility 0s linear .3s;
}
#bmcb-banner[aria-hidden="false"] { transform: translateY(0); opacity: 1; visibility: visible; }

#bmcb-banner .bmcb-inner {
	max-width: 1200px; margin: 0 auto;
	display: flex; align-items: center; gap: 2em; flex-wrap: wrap;
}
#bmcb-banner .bmcb-text { flex: 1; min-width: 240px; }
#bmcb-banner .bmcb-title { display: block; font-weight: 700; font-size: 1.15em; margin: 0 0 .4em; color: var(--bmcb-text, #1a1a1a); }
#bmcb-banner .bmcb-text p { font-size: 1em !important; color: var(--bmcb-muted); margin: 0; line-height: 1.6; }
#bmcb-banner .bmcb-text a { color: var(--bmcb-primary); text-decoration: underline; }
#bmcb-banner .bmcb-actions { display: flex; gap: .625em; flex-wrap: wrap; align-items: center; }

/* ── Knoppen ── */
#bmcb-banner .bmcb-btn,
#bmcb-settings .bmcb-btn {
	display: inline-flex; align-items: center; justify-content: center;
	margin: 0; min-height: 0; width: auto;
	padding: .75em 1.5em;
	font-family: inherit; font-size: 1.05em; font-weight: 700; line-height: 1.2;
	letter-spacing: normal; text-transform: none; text-decoration: none;
	white-space: nowrap; cursor: pointer;
	border-radius: var(--bmcb-radius-btn);
	box-shadow: none;
	transition: background-color .15s, border-color .15s, color .15s, opacity .15s;
}
#bmcb-banner .bmcb-btn-primary,
#bmcb-settings .bmcb-btn-primary {
	background: var(--bmcb-primary); color: var(--bmcb-on-primary);
	border: 2px solid var(--bmcb-primary);
}
#bmcb-banner .bmcb-btn-primary:hover,
#bmcb-settings .bmcb-btn-primary:hover { opacity: .88; background: var(--bmcb-primary); color: var(--bmcb-on-primary); }
#bmcb-banner .bmcb-btn-ghost,
#bmcb-settings .bmcb-btn-ghost {
	background: transparent; color: var(--bmcb-text);
	border: 2px solid var(--bmcb-border);
}
#bmcb-banner .bmcb-btn-ghost:hover,
#bmcb-settings .bmcb-btn-ghost:hover { background: transparent; color: var(--bmcb-text); border-color: var(--bmcb-text); }
#bmcb-banner .bmcb-btn:focus-visible,
#bmcb-settings .bmcb-btn:focus-visible,
#bmcb-settings .bmcb-close:focus-visible { outline: 2px solid var(--bmcb-primary); outline-offset: 2px; }

/* ── Instellingenpaneel ── */
#bmcb-settings {
	position: fixed; inset: 0; z-index: 100000;
	/* Overlay aan te passen via --bmcb-overlay-bg en --bmcb-overlay-blur in het thema */
	background: var(--bmcb-overlay-bg, rgba(0,0,0,.5));
	-webkit-backdrop-filter: blur(var(--bmcb-overlay-blur, 1px));
	backdrop-filter: blur(var(--bmcb-overlay-blur, 1px));
	display: flex; align-items: center; justify-content: center;
	padding: 1em;
	transition: opacity .25s ease, visibility 0s linear 0s;
}
#bmcb-settings[aria-hidden="true"] {
	opacity: 0; visibility: hidden; pointer-events: none;
	transition: opacity .25s ease, visibility 0s linear .25s;
}
#bmcb-settings[aria-hidden="false"] { opacity: 1; visibility: visible; }

#bmcb-settings .bmcb-box {
	background: var(--bmcb-bg, #ffffff);
	width: 100%; max-width: 580px;
	padding: 2em; box-shadow: 0 8px 40px rgba(0,0,0,.16);
	max-height: 90vh; overflow-y: auto;
	border-radius: var(--bmcb-radius-box);
}
#bmcb-settings .bmcb-head {
	display: flex; align-items: center; justify-content: space-between; gap: 1em;
	margin-bottom: .75em;
}
#bmcb-settings .bmcb-head h2 { font-family: inherit; font-size: 1.5em; line-height: 1.3; font-weight: 800; margin: 0; color: var(--bmcb-text); }
#bmcb-settings .bmcb-close {
	background: none; border: none; cursor: pointer; padding: .25em; margin: 0;
	color: var(--bmcb-muted); line-height: 1; box-shadow: none; min-height: 0;
}
#bmcb-settings .bmcb-close:hover { color: var(--bmcb-text); background: none; }
#bmcb-settings .bmcb-close svg { width: 24px; height: 24px; display: block; }
#bmcb-settings .bmcb-intro { font-size: 1.05em; color: var(--bmcb-muted); margin: 0 0 1.5em; line-height: 1.6; }
#bmcb-settings .bmcb-intro a { color: var(--bmcb-primary); text-decoration: underline; }

#bmcb-settings .bmcb-cats { list-style: none; margin: 0; padding: 0; }
#bmcb-settings .bmcb-cat {
	display: flex; align-items: center; justify-content: space-between; gap: 1em;
	padding: 1em 0; margin: 0; border-bottom: 1px solid var(--bmcb-border);
}
#bmcb-settings .bmcb-cat::before { content: none; }
#bmcb-settings .bmcb-cat:last-child { border-bottom: none; }
#bmcb-settings .bmcb-cat-info { flex: 1; }
#bmcb-settings .bmcb-cat-info strong { display: block; font-size: 1.1em; font-weight: 700; margin-bottom: .2em; color: var(--bmcb-text); }
#bmcb-settings .bmcb-cat-info span { font-size: 1em; color: var(--bmcb-muted); line-height: 1.5; }

/* ── Schuifjes ── */
#bmcb-settings .bmcb-toggle { position: relative; display: flex; align-items: center; cursor: pointer; flex-shrink: 0; margin: 0; }
#bmcb-settings .bmcb-toggle input { position: absolute; opacity: 0; width: 0; height: 0; margin: 0; }
#bmcb-settings .bmcb-track {
	width: 44px; height: 24px; border-radius: 999px;
	background: var(--bmcb-border); transition: background .2s;
	position: relative; display: block;
}
#bmcb-settings .bmcb-thumb {
	position: absolute; top: 4px; left: 4px;
	width: 16px; height: 16px; border-radius: 50%;
	background: #fff; transition: transform .2s;
	box-shadow: 0 1px 3px rgba(0,0,0,.2);
}
#bmcb-settings .bmcb-toggle input:checked ~ .bmcb-track { background: var(--bmcb-primary); }
#bmcb-settings .bmcb-toggle input:checked ~ .bmcb-track .bmcb-thumb { transform: translateX(20px); }
#bmcb-settings .bmcb-toggle input:disabled ~ .bmcb-track { opacity: .6; }
#bmcb-settings .bmcb-toggle input:focus-visible ~ .bmcb-track { outline: 2px solid var(--bmcb-primary); outline-offset: 2px; }
#bmcb-settings .bmcb-toggle:has(input:disabled) { cursor: not-allowed; }

#bmcb-settings .bmcb-footer {
	display: flex; gap: .625em; justify-content: flex-end; flex-wrap: wrap;
	margin-top: 1.5em; padding-top: 1.25em;
	border-top: 1px solid var(--bmcb-border);
}

@media (max-width: 600px) {
	#bmcb-banner.bmcb-layout-bar { padding: 1em; }
	#bmcb-banner.bmcb-layout-bar .bmcb-inner { gap: 1em; }
	#bmcb-banner.bmcb-layout-bar .bmcb-actions { width: 100%; }
	#bmcb-banner.bmcb-layout-bar .bmcb-actions .bmcb-btn { flex: 1 1 auto; }
	#bmcb-banner.bmcb-layout-bar .bmcb-actions .bmcb-btn-primary { flex-basis: 100%; order: -1; }
	#bmcb-banner.bmcb-layout-card { right: .75em; bottom: 5em; left: .75em; width: auto; }
	#bmcb-settings .bmcb-box { padding: 1.5em; }
}

/* ── Kaartje rechtsonder ── */
#bmcb-banner.bmcb-layout-card {
	bottom: 5.5em; right: 1.5em; left: auto; /* hoger zodat chat/WhatsApp-widget ruimte krijgt */
	width: 32.5em; max-width: calc(100vw - 2em);
	padding: 1.5em;
	border: 1px solid var(--bmcb-border);
	border-top: 4px solid var(--bmcb-primary);
	border-radius: 8px;
	box-shadow: 0 8px 40px rgba(0,0,0,.18);
}
#bmcb-banner.bmcb-layout-card .bmcb-inner { flex-direction: column; align-items: flex-start; gap: 1.1em; }
#bmcb-banner.bmcb-layout-card .bmcb-title { font-size: 1.35em; font-weight: 800; }
#bmcb-banner.bmcb-layout-card .bmcb-text p { font-size: 1.1em !important; line-height: 1.65; }
/* Knoppen naast elkaar op desktop */
#bmcb-banner.bmcb-layout-card .bmcb-actions { flex-direction: row; flex-wrap: wrap; gap: .5em; }
#bmcb-banner.bmcb-layout-card .bmcb-btn-primary { width: auto; flex: 1 1 auto; }
#bmcb-banner.bmcb-layout-card .bmcb-actions-secondary { display: contents; } /* knoppen direct in de flex-rij */
#bmcb-banner.bmcb-layout-card .bmcb-actions-secondary .bmcb-btn { flex: 1 1 auto; }
#bmcb-banner.bmcb-layout-card .bmcb-btn { padding: .75em 1em; }

/* ── Testmodus badge ── */
#bmcb-banner .bmcb-test-badge {
	background: #f59e0b; color: #000; font-size: .75em; font-weight: 700;
	text-align: center; padding: .35em .75em; letter-spacing: .04em;
	margin: -.25em -1.5em .75em; /* negatieve marge: strek uit over de padding van de banner */
}
#bmcb-banner.bmcb-layout-card .bmcb-test-badge {
	margin: -.25em -1.5em .75em; border-radius: 3px 3px 0 0;
}

@media (prefers-reduced-motion: reduce) {
	#bmcb-banner, #bmcb-settings, #bmcb-settings .bmcb-thumb, #bmcb-settings .bmcb-track { transition: none; }
}

/* ── Cookielijst [cookie_lijst] ──
   Extra specifiek (en met !important) zodat tabelstijlen van thema's of paginabouwers er niet doorheen komen. */
.bmcb-cookie-list .bmcb-cookie-list-title { margin: 2rem 0 .75rem; }
.bmcb-cookie-list .bmcb-cookie-list-title:first-child { margin-top: 1rem; }
.bmcb-cookie-list .bmcb-table-wrap > * { margin-top: 0 !important; } /* scroll-wrappers van thema's */
.bmcb-cookie-list .bmcb-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; margin-bottom: 1rem; }
.bmcb-cookie-list .bmcb-table-wrap table.bmcb-cookie-table { width: 100% !important; min-width: 560px; table-layout: fixed; border-collapse: collapse !important; border: 1px solid #e2e2e6 !important; font-size: .9rem; line-height: 1.5; margin: 0 !important; }
.bmcb-cookie-list .bmcb-table-wrap table.bmcb-cookie-table thead th:nth-child(n),
.bmcb-cookie-list .bmcb-table-wrap table.bmcb-cookie-table tbody tr:nth-child(n) td:nth-child(n) {
	text-align: left !important; vertical-align: top !important;
	padding: .6rem .75rem !important;
	border: 1px solid #e2e2e6 !important; border-radius: 0 !important;
	color: inherit !important; background: transparent !important;
	font-size: .875rem !important; letter-spacing: normal !important; text-transform: none !important;
}
.bmcb-cookie-list .bmcb-table-wrap table.bmcb-cookie-table thead th:nth-child(n) { font-weight: 700 !important; background: rgba(0,0,0,.04) !important; }
.bmcb-cookie-list .bmcb-table-wrap table.bmcb-cookie-table tbody tr:nth-child(even) td:nth-child(n) { background: rgba(0,0,0,.015) !important; }
.bmcb-cookie-list .bmcb-table-wrap table.bmcb-cookie-table th:nth-child(1) { width: 26%; }
.bmcb-cookie-list .bmcb-table-wrap table.bmcb-cookie-table th:nth-child(2) { width: 18%; }
.bmcb-cookie-list .bmcb-table-wrap table.bmcb-cookie-table th:nth-child(4) { width: 18%; }
.bmcb-cookie-list .bmcb-table-wrap table.bmcb-cookie-table td:first-child { word-break: break-all; }
.bmcb-cookie-list code { font-size: .85em; background: none !important; padding: 0 !important; color: inherit; }
.bmcb-cookie-list .bmcb-cookie-list-date { font-size: .85rem; opacity: .75; margin-top: 1rem; }

/* ── Ronde knop linksonder (optie) ── */
#bmcb-float {
	position: fixed; left: 1.25rem; bottom: 1.25rem; z-index: 99998;
	display: flex; align-items: center; justify-content: center;
	width: 52px; height: 52px; padding: 0; margin: 0; min-height: 0;
	border: 0; border-radius: 50%;
	background: var(--bmcb-primary); color: var(--bmcb-on-primary);
	box-shadow: 0 4px 16px rgba(0,0,0,.18);
	cursor: pointer; transition: transform .15s ease, opacity .15s ease;
}
#bmcb-float[hidden] { display: none; }
#bmcb-float:hover { transform: scale(1.06); background: var(--bmcb-primary); color: var(--bmcb-on-primary); }
#bmcb-float:focus-visible { outline: 2px solid var(--bmcb-primary); outline-offset: 3px; }
#bmcb-float svg { width: 26px; height: 26px; display: block; }
@media (max-width: 600px) {
	#bmcb-float { left: .75rem; bottom: .75rem; width: 46px; height: 46px; }
	#bmcb-float svg { width: 23px; height: 23px; }
}
@media (prefers-reduced-motion: reduce) { #bmcb-float { transition: none; } }

/* ── Videovlak (Elementor-videowidget met YouTube) ── */
.bmcb-video-placeholder { display: block; width: 100%; height: 100%; min-height: 220px; border: 0; background: #f2f2f2; }

/* ── Automatische footerlink (alleen als er geen passende link in de footer staat) ── */
.bmcb-footer-link { text-align: center; padding: .75rem 1rem; font-size: .85rem; }
.bmcb-footer-link a { color: inherit; text-decoration: underline; }
