.ebgdpr-root {
	--ebgdpr-background: #ffffff;
	--ebgdpr-text: #1f2937;
	--ebgdpr-accent: #0f4c81;
	--ebgdpr-button-text: #ffffff;
	--ebgdpr-secondary-bg: #f3f4f6;
	--ebgdpr-secondary-text: #111827;
	box-sizing: border-box;
	color: var(--ebgdpr-text);
	font-family: inherit;
	font-size: 15px;
	line-height: 1.5;
	position: fixed;
	z-index: 999999;
}

.ebgdpr-root *,
.ebgdpr-root *::before,
.ebgdpr-root *::after {
	box-sizing: border-box;
}

.ebgdpr-root[hidden] {
	display: none !important;
}

.ebgdpr-panel {
	background: var(--ebgdpr-background);
	border: 1px solid rgba(17, 24, 39, 0.12);
	border-radius: 18px;
	box-shadow: 0 24px 80px rgba(15, 23, 42, 0.22);
	max-height: calc(100vh - 32px);
	overflow: auto;
	padding: 22px;
	width: min(940px, calc(100vw - 32px));
}

.ebgdpr-position-bottom,
.ebgdpr-position-top {
	left: 50%;
	transform: translateX(-50%);
	width: min(980px, calc(100vw - 32px));
}

.ebgdpr-position-bottom {
	bottom: 16px;
}

.ebgdpr-position-top {
	top: 16px;
}

.ebgdpr-position-bottom_left {
	bottom: 16px;
	left: 16px;
}

.ebgdpr-position-bottom_right {
	bottom: 16px;
	right: 16px;
}

.ebgdpr-position-bottom_left .ebgdpr-panel,
.ebgdpr-position-bottom_right .ebgdpr-panel {
	width: min(520px, calc(100vw - 32px));
}

.ebgdpr-position-center {
	align-items: center;
	display: flex;
	inset: 0;
	justify-content: center;
	padding: 16px;
}

.ebgdpr-position-center .ebgdpr-backdrop {
	background: rgba(15, 23, 42, 0.42);
	inset: 0;
	position: fixed;
}

.ebgdpr-position-center .ebgdpr-panel {
	position: relative;
	width: min(680px, calc(100vw - 32px));
}

.ebgdpr-copy h2 {
	color: var(--ebgdpr-text);
	font-size: 18px;
	line-height: 1.3;
	margin: 0 0 8px;
}

.ebgdpr-message {
	margin: 0;
}

.ebgdpr-message a,
.ebgdpr-policy-link {
	color: var(--ebgdpr-accent);
	font-weight: 700;
	text-decoration: underline;
	text-underline-offset: 3px;
}

.ebgdpr-policy-link {
	display: inline-block;
	margin-left: 4px;
}

.ebgdpr-actions {
	align-items: center;
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	justify-content: flex-end;
	margin-top: 18px;
}

.ebgdpr-button {
	align-items: center;
	border: 0;
	border-radius: 999px;
	cursor: pointer;
	display: inline-flex;
	font: inherit;
	font-weight: 700;
	justify-content: center;
	min-height: 42px;
	padding: 10px 18px;
	text-decoration: none;
	transition: transform 120ms ease, opacity 120ms ease;
}

.ebgdpr-button:hover,
.ebgdpr-button:focus {
	opacity: 0.92;
	transform: translateY(-1px);
}

.ebgdpr-button:focus-visible {
	outline: 3px solid color-mix(in srgb, var(--ebgdpr-accent) 55%, transparent);
	outline-offset: 2px;
}

.ebgdpr-button-primary {
	background: var(--ebgdpr-accent);
	color: var(--ebgdpr-button-text);
}

.ebgdpr-button-secondary {
	background: var(--ebgdpr-secondary-bg);
	color: var(--ebgdpr-secondary-text);
}

.ebgdpr-button-link {
	background: transparent;
	color: var(--ebgdpr-accent);
	padding-left: 8px;
	padding-right: 8px;
}

.ebgdpr-preferences {
	border-top: 1px solid rgba(17, 24, 39, 0.1);
	display: grid;
	gap: 12px;
	margin-top: 18px;
	padding-top: 18px;
}

.ebgdpr-preferences[hidden],
.ebgdpr-save[hidden],
.ebgdpr-button[hidden] {
	display: none !important;
}

.ebgdpr-category {
	align-items: center;
	background: rgba(15, 23, 42, 0.035);
	border: 1px solid rgba(17, 24, 39, 0.08);
	border-radius: 14px;
	display: flex;
	gap: 16px;
	justify-content: space-between;
	padding: 14px;
}

.ebgdpr-category-text {
	display: grid;
	gap: 4px;
}

.ebgdpr-category-text strong {
	color: var(--ebgdpr-text);
}

.ebgdpr-category-text span {
	opacity: 0.85;
}

.ebgdpr-switch {
	display: inline-flex;
	flex: 0 0 auto;
}

.ebgdpr-switch input {
	clip: rect(0 0 0 0);
	clip-path: inset(50%);
	height: 1px;
	overflow: hidden;
	position: absolute;
	white-space: nowrap;
	width: 1px;
}

.ebgdpr-switch span {
	background: #9ca3af;
	border-radius: 999px;
	display: block;
	height: 28px;
	position: relative;
	transition: background 140ms ease;
	width: 52px;
}

.ebgdpr-switch span::after {
	background: #ffffff;
	border-radius: 999px;
	box-shadow: 0 1px 4px rgba(0, 0, 0, 0.25);
	content: '';
	height: 22px;
	left: 3px;
	position: absolute;
	top: 3px;
	transition: transform 140ms ease;
	width: 22px;
}

.ebgdpr-switch input:checked + span {
	background: var(--ebgdpr-accent);
}

.ebgdpr-switch input:checked + span::after {
	transform: translateX(24px);
}

.ebgdpr-switch input:focus-visible + span {
	outline: 3px solid color-mix(in srgb, var(--ebgdpr-accent) 55%, transparent);
	outline-offset: 2px;
}

@media (max-width: 640px) {
	.ebgdpr-root,
	.ebgdpr-position-bottom,
	.ebgdpr-position-top,
	.ebgdpr-position-bottom_left,
	.ebgdpr-position-bottom_right {
		bottom: 0;
		left: 0;
		right: 0;
		top: auto;
		transform: none;
		width: 100%;
	}

	.ebgdpr-panel,
	.ebgdpr-position-bottom_left .ebgdpr-panel,
	.ebgdpr-position-bottom_right .ebgdpr-panel {
		border-bottom-left-radius: 0;
		border-bottom-right-radius: 0;
		max-height: 88vh;
		width: 100%;
	}

	.ebgdpr-actions {
		align-items: stretch;
		flex-direction: column;
	}

	.ebgdpr-button {
		width: 100%;
	}
}
