.ed-consent {
	box-sizing: border-box;
	font-family: var(--s-body, var(--color-body, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif));
}

.ed-consent[hidden],
.ed-consent [hidden] {
	display: none !important;
}

.ed-consent {
	position: fixed;
	right: 24px;
	bottom: 24px;
	z-index: 999999;
	width: min(680px, calc(100% - 48px));
	padding: 24px;
	color: var(--edcc-text, #fff);
	background: var(--edcc-panel, var(--s-accent, #172033));
	border: 1px solid var(--edcc-border, rgba(255,255,255,.16));
	border-radius: 16px;
	box-shadow: 0 16px 48px rgba(15,23,42,.28);
	animation: ed-consent-enter .28s ease-out both;
}

@keyframes ed-consent-enter {
	from { opacity: 0; transform: translateY(16px); }
	to { opacity: 1; transform: translateY(0); }
}

.ed-consent__inner {
	display: grid;
	gap: 20px;
}

.ed-consent__text h2 {
	margin: 0 0 8px;
	color: var(--edcc-text, #fff);
	font-size: 20px;
	line-height: 1.3;
}

.ed-consent__text p {
	margin: 0;
	color: var(--edcc-muted, rgba(255,255,255,.84));
	font-size: 16px;
	line-height: 1.6;
}

.ed-consent__text a {
	color: var(--edcc-text, #fff);
	text-decoration: underline;
	text-underline-offset: 3px;
}

.ed-consent__preferences {
	overflow: hidden;
	border: 1px solid var(--edcc-border, rgba(255,255,255,.16));
	border-radius: 12px;
}

.ed-consent__choice {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
	padding: 14px 16px;
	border-bottom: 1px solid var(--edcc-border, rgba(255,255,255,.12));
	cursor: pointer;
}

.ed-consent__choice:last-child {
	border-bottom: 0;
}

.ed-consent__choice span {
	display: grid;
	gap: 2px;
}

.ed-consent__choice strong {
	font-size: 16px;
}

.ed-consent__choice small {
	color: var(--edcc-muted, rgba(255,255,255,.72));
	font-size: 14px;
	line-height: 1.4;
}

.ed-consent__choice input {
	width: 20px;
	height: 20px;
	margin: 0;
	accent-color: var(--edcc-primary, var(--s-accent-hover, #2563eb));
}

.ed-consent__choice--fixed {
	cursor: default;
}

.ed-consent__actions {
	display: flex;
	flex-wrap: wrap;
	justify-content: flex-end;
	gap: 10px;
}

.ed-consent__btn {
	min-height: 42px;
	padding: 10px 18px;
	border: 1px solid transparent;
	border-radius: 10px;
	font-size: 15px;
	font-weight: 650;
	line-height: 1.2;
	cursor: pointer;
	transition: background .18s, border-color .18s, color .18s, transform .18s;
}

.ed-consent__btn:focus-visible,
.ed-cookie-settings-link:focus-visible {
	outline: 3px solid #93c5fd;
	outline-offset: 3px;
}

.ed-consent__btn:hover {
	transform: translateY(-1px);
}

.ed-consent__btn--accept {
	color: var(--edcc-primary-text, #fff);
	background: var(--edcc-primary, var(--s-accent-hover, #2563eb));
}

.ed-consent__btn--reject,
.ed-consent__btn--settings {
	color: var(--edcc-secondary-text, #fff);
	background: var(--edcc-secondary, rgba(255,255,255,.08));
	border-color: var(--edcc-border, rgba(255,255,255,.24));
}

.ed-cookie-settings-link {
	padding: 0;
	color: inherit;
	font: inherit;
	text-decoration: underline;
	text-underline-offset: 3px;
	background: none;
	border: 0;
	cursor: pointer;
}

@media (max-width: 600px) {
	.ed-consent {
		right: 0;
		bottom: 0;
		width: 100%;
		padding: 20px;
		border-right: 0;
		border-bottom: 0;
		border-left: 0;
		border-radius: 16px 16px 0 0;
	}

	.ed-consent__actions {
		display: grid;
		grid-template-columns: 1fr 1fr;
	}

	.ed-consent__btn {
		width: 100%;
	}
}

@media (prefers-reduced-motion: reduce) {
	.ed-consent {
		animation: none;
	}

	.ed-consent__btn {
		transition: none;
	}
}
