:root {
	--dx-consent-ink: #102116;
	--dx-consent-muted: #526057;
	--dx-consent-accent: #15940f;
	--dx-consent-accent-dark: #0f710b;
	--dx-consent-border: #d9e2da;
	--dx-consent-surface: #ffffff;
}

.dx-consent[hidden],
.dx-consent-reopen[hidden],
.dx-consent-modal[hidden] {
	display: none !important;
}

.dx-consent {
	position: fixed;
	inset: auto 0 0;
	z-index: 999998;
	padding: 16px;
	background: rgba(8, 22, 12, 0.38);
	backdrop-filter: blur(6px);
}

.dx-consent__banner {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	gap: 24px;
	align-items: center;
	max-width: 1180px;
	margin: 0 auto;
	padding: 20px 22px;
	border: 1px solid rgba(255, 255, 255, 0.5);
	border-radius: 16px;
	background: var(--dx-consent-surface);
	box-shadow: 0 18px 48px rgba(6, 24, 10, 0.2);
	color: var(--dx-consent-ink);
}

.dx-consent__copy strong {
	display: block;
	margin-bottom: 4px;
	font-size: 1rem;
}

.dx-consent__copy p {
	margin: 0;
	color: var(--dx-consent-muted);
	font-size: 0.9rem;
	line-height: 1.55;
}

.dx-consent__actions,
.dx-consent-modal__actions {
	display: flex;
	gap: 8px;
	align-items: center;
	flex-wrap: wrap;
}

.dx-consent__button,
.dx-consent-reopen {
	min-height: 42px;
	padding: 9px 14px;
	border: 1px solid var(--dx-consent-border);
	border-radius: 10px;
	background: #fff;
	color: var(--dx-consent-ink);
	font: inherit;
	font-size: 0.875rem;
	font-weight: 700;
	cursor: pointer;
}

.dx-consent__button--primary {
	border-color: var(--dx-consent-accent);
	background: var(--dx-consent-accent);
	color: #fff;
}

.dx-consent__button--primary:hover,
.dx-consent__button--primary:focus-visible {
	background: var(--dx-consent-accent-dark);
}

.dx-consent__button--text {
	border-color: transparent;
	background: transparent;
	text-decoration: underline;
	text-underline-offset: 3px;
}

.dx-consent__button:focus-visible,
.dx-consent-reopen:focus-visible,
.dx-consent-modal__close:focus-visible,
.dx-consent-option input:focus-visible {
	outline: 3px solid #ffc928;
	outline-offset: 2px;
}

.dx-consent-reopen {
	display: block;
	position: static;
	z-index: auto;
	margin: 18px auto;
	box-shadow: none;
}

.deuton-x-site-footer > .dx-consent-reopen {
	margin: 0 auto clamp(20px, 3vw, 34px);
	border-color: rgba(255, 255, 255, 0.34);
	background: rgba(255, 255, 255, 0.08);
	color: #fff;
}

.deuton-x-site-footer > .dx-consent-reopen:hover,
.deuton-x-site-footer > .dx-consent-reopen:focus-visible {
	border-color: rgba(255, 255, 255, 0.72);
	background: rgba(255, 255, 255, 0.15);
}

.dx-consent-modal {
	position: fixed;
	inset: 0;
	z-index: 999999;
	display: grid;
	place-items: center;
	padding: 20px;
}

.dx-consent-modal__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(8, 22, 12, 0.58);
}

.dx-consent-modal__panel {
	position: relative;
	z-index: 1;
	width: min(100%, 560px);
	max-height: min(720px, calc(100vh - 40px));
	overflow: auto;
	padding: 28px;
	border-radius: 18px;
	background: var(--dx-consent-surface);
	box-shadow: 0 24px 70px rgba(0, 0, 0, 0.28);
	color: var(--dx-consent-ink);
}

.dx-consent-modal__panel h2 {
	margin: 0 44px 18px 0;
	font-size: 1.55rem;
}

.dx-consent-modal__close {
	position: absolute;
	top: 16px;
	right: 16px;
	width: 40px;
	height: 40px;
	border: 1px solid var(--dx-consent-border);
	border-radius: 50%;
	background: #fff;
	color: var(--dx-consent-ink);
	font-size: 1.5rem;
	cursor: pointer;
}

.dx-consent-option {
	display: flex;
	justify-content: space-between;
	gap: 20px;
	align-items: center;
	padding: 16px 0;
	border-top: 1px solid var(--dx-consent-border);
}

.dx-consent-option span,
.dx-consent-option small {
	display: block;
}

.dx-consent-option small {
	margin-top: 3px;
	color: var(--dx-consent-muted);
	line-height: 1.45;
}

.dx-consent-option input {
	width: 22px;
	height: 22px;
	accent-color: var(--dx-consent-accent);
}

.dx-consent-modal__actions {
	justify-content: flex-end;
	margin-top: 22px;
}

html.dx-consent-open {
	overflow: hidden;
}

@media (max-width: 760px) {
	.dx-consent {
		padding: 10px;
	}

	.dx-consent__banner {
		grid-template-columns: 1fr;
		gap: 14px;
		padding: 18px;
		border-radius: 14px;
	}

	.dx-consent__actions,
	.dx-consent-modal__actions {
		display: grid;
		grid-template-columns: 1fr;
		width: 100%;
	}

	.dx-consent__button {
		width: 100%;
	}

	.dx-consent-modal__panel {
		padding: 24px 18px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.dx-consent *,
	.dx-consent-modal * {
		scroll-behavior: auto !important;
		transition: none !important;
	}
}
