/* OMA Consent */
#oma-consent-root {
	--oma-primary: #111827;
	--oma-text: #111827;
	--oma-bg: #ffffff;
	--oma-radius: 12px;
	font-family: inherit;
	font-size: 15px;
	line-height: 1.5;
	color: var(--oma-text);
}
#oma-consent-root *,
#oma-consent-root *::before,
#oma-consent-root *::after { box-sizing: border-box; }

#oma-consent-root .oma-banner,
#oma-consent-root .oma-overlay { display: none; }
#oma-consent-root.oma-open .oma-banner { display: block; }
#oma-consent-root.oma-open .oma-overlay { display: block; }

.oma-banner {
	position: fixed;
	z-index: 2147483646;
	background: var(--oma-bg);
	color: var(--oma-text);
	box-shadow: 0 10px 40px rgba(0, 0, 0, .18);
	padding: 22px 24px;
	max-height: 90vh;
	overflow-y: auto;
	animation: oma-in .25s ease-out;
}
@keyframes oma-in { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .oma-banner { animation: none; } }

/* layouts */
.oma-layout-bar .oma-banner { left: 0; right: 0; bottom: 0; border-radius: var(--oma-radius) var(--oma-radius) 0 0; }
@media (min-width: 900px) {
	.oma-layout-bar .oma-banner { display: none; }
	.oma-layout-bar.oma-open .oma-banner { display: grid; grid-template-columns: 1fr auto; gap: 8px 32px; align-items: end; padding: 22px max(24px, calc((100vw - 1200px) / 2)); }
	.oma-layout-bar .oma-title,
	.oma-layout-bar .oma-desc,
	.oma-layout-bar .oma-prefs { grid-column: 1; }
	.oma-layout-bar .oma-actions { grid-column: 2; grid-row: 1 / span 3; }
}
.oma-layout-box .oma-banner { left: 16px; bottom: 16px; width: calc(100% - 32px); max-width: 420px; border-radius: var(--oma-radius); }
.oma-layout-modal .oma-overlay { position: fixed; inset: 0; background: rgba(0, 0, 0, .45); z-index: 2147483645; }
.oma-layout-modal .oma-banner { left: 50%; top: 50%; transform: translate(-50%, -50%); width: calc(100% - 32px); max-width: 560px; border-radius: var(--oma-radius); animation: none; }

.oma-title { margin: 0 0 6px; font-size: 1.15em; font-weight: 700; line-height: 1.3; color: inherit; }
.oma-desc { margin: 0 0 14px; font-size: .95em; }
.oma-desc a { color: inherit; text-decoration: underline; }

/* knoppen */
.oma-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.oma-btn {
	flex: 1 1 auto;
	min-height: 44px;
	padding: 10px 18px;
	border-radius: 8px;
	font: inherit;
	font-weight: 600;
	cursor: pointer;
	border: 2px solid var(--oma-primary);
	white-space: nowrap;
	transition: opacity .15s;
}
.oma-btn:hover { opacity: .88; }
.oma-btn:focus-visible { outline: 3px solid var(--oma-primary); outline-offset: 2px; }
.oma-btn-primary { background: var(--oma-primary); color: #fff; }
.oma-btn-link { background: transparent; color: var(--oma-text); border-color: currentColor; }

/* categorieën */
.oma-prefs { margin: 0 0 14px; border-top: 1px solid rgba(0, 0, 0, .1); }
.oma-prefs[hidden] { display: none !important; }
.oma-cat { padding: 10px 0; border-bottom: 1px solid rgba(0, 0, 0, .1); }
.oma-cat label { display: flex; gap: 12px; align-items: flex-start; cursor: pointer; font-size: .92em; margin: 0; }
.oma-cat input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.oma-switch { flex: 0 0 40px; height: 22px; border-radius: 22px; background: #cbd5e1; position: relative; transition: background .15s; margin-top: 1px; }
.oma-switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; transition: transform .15s; }
.oma-cat input:checked + .oma-switch { background: var(--oma-primary); }
.oma-cat input:checked + .oma-switch::after { transform: translateX(18px); }
.oma-cat input:disabled + .oma-switch { opacity: .55; }
.oma-cat input:focus-visible + .oma-switch { outline: 3px solid var(--oma-primary); outline-offset: 2px; }

/* opnieuw-openen knop */
.oma-reopen {
	position: fixed;
	left: 16px;
	bottom: 16px;
	z-index: 2147483640;
	width: 44px;
	height: 44px;
	border-radius: 50%;
	border: 0;
	background: var(--oma-bg);
	color: var(--oma-primary);
	box-shadow: 0 4px 16px rgba(0, 0, 0, .2);
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 0;
}
.oma-reopen[hidden] { display: none; }
.oma-reopen:focus-visible { outline: 3px solid var(--oma-primary); outline-offset: 2px; }

@media print { #oma-consent-root { display: none !important; } }
