/* EastDigi Cookie Consent — Nova-style centered modal, brand purple palette */

.ed-cookie-consent {
	position: fixed;
	inset: 0;
	z-index: 100000;
	display: none;
	align-items: center;
	justify-content: center;
	padding: 24px;
	box-sizing: border-box;
}

.ed-cookie-consent.is-open {
	display: flex;
}

.ed-cookie-consent__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(14, 0, 24, 0.72);
	backdrop-filter: blur(4px);
}

.ed-cookie-consent__dialog {
	position: relative;
	width: min(720px, 100%);
	background: #220041;
	color: #fff;
	padding: clamp(28px, 4vw, 40px);
	box-shadow: 0 24px 64px rgba(0, 0, 0, 0.45);
	border: 1px solid rgba(130, 0, 250, 0.35);
}

.ed-cookie-consent__text {
	margin: 0 0 28px;
	font-size: clamp(15px, 2vw, 17px);
	line-height: 1.65;
	font-weight: 400;
	color: rgba(255, 255, 255, 0.95);
}

.ed-cookie-consent__link {
	color: #fff;
	font-weight: 700;
	text-decoration: underline;
	text-underline-offset: 3px;
}

.ed-cookie-consent__link:hover,
.ed-cookie-consent__link:focus-visible {
	color: #5eb8ff;
}

.ed-cookie-consent__actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
}

.ed-cookie-consent__actions-right {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	margin-left: auto;
}

.ed-cookie-consent__btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 44px;
	padding: 0 22px;
	font-size: 14px;
	font-weight: 600;
	letter-spacing: 0.02em;
	cursor: pointer;
	border: 1px solid rgba(255, 255, 255, 0.85);
	background: transparent;
	color: #fff;
	transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.ed-cookie-consent__btn:hover,
.ed-cookie-consent__btn:focus-visible {
	background: rgba(255, 255, 255, 0.08);
	border-color: #fff;
	outline: none;
}

.ed-cookie-consent__btn--primary {
	border-color: transparent;
	background: linear-gradient(90deg, #8200fa 0%, #f024f6 100%);
}

.ed-cookie-consent__btn--primary:hover,
.ed-cookie-consent__btn--primary:focus-visible {
	background: linear-gradient(90deg, #9a33ff 0%, #ff4df9 100%);
}

.ed-cookie-consent__manage {
	margin-top: 8px;
}

.ed-cookie-consent__manage[hidden] {
	display: none !important;
}

.ed-cookie-consent__manage-title {
	margin: 0 0 20px;
	font-size: 20px;
	font-weight: 700;
}

.ed-cookie-consent__manage-intro {
	margin: 0 0 20px;
	font-size: 14px;
	line-height: 1.6;
	color: rgba(255, 255, 255, 0.82);
}

.ed-cookie-consent__option {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 16px;
	padding: 16px 0;
	border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.ed-cookie-consent__option:last-of-type {
	border-bottom: 1px solid rgba(255, 255, 255, 0.15);
	margin-bottom: 24px;
}

.ed-cookie-consent__option-title {
	margin: 0 0 6px;
	font-size: 15px;
	font-weight: 700;
}

.ed-cookie-consent__option-desc {
	margin: 0;
	font-size: 13px;
	line-height: 1.55;
	color: rgba(255, 255, 255, 0.75);
}

.ed-cookie-consent__toggle {
	position: relative;
	flex-shrink: 0;
	width: 48px;
	height: 26px;
	margin-top: 4px;
}

.ed-cookie-consent__toggle input {
	position: absolute;
	opacity: 0;
	width: 0;
	height: 0;
}

.ed-cookie-consent__toggle-track {
	display: block;
	width: 48px;
	height: 26px;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.2);
	cursor: pointer;
	transition: background 0.2s ease;
}

.ed-cookie-consent__toggle-track::after {
	content: "";
	position: absolute;
	top: 3px;
	left: 3px;
	width: 20px;
	height: 20px;
	border-radius: 50%;
	background: #fff;
	transition: transform 0.2s ease;
}

.ed-cookie-consent__toggle input:checked + .ed-cookie-consent__toggle-track {
	background: linear-gradient(90deg, #8200fa 0%, #0099ff 100%);
}

.ed-cookie-consent__toggle input:checked + .ed-cookie-consent__toggle-track::after {
	transform: translateX(22px);
}

.ed-cookie-consent__toggle input:disabled + .ed-cookie-consent__toggle-track {
	opacity: 0.55;
	cursor: not-allowed;
}

.ed-cookie-consent__manage-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	justify-content: flex-end;
}

@media (max-width: 640px) {
	.ed-cookie-consent__actions {
		flex-direction: column;
		align-items: stretch;
	}

	.ed-cookie-consent__actions-right {
		margin-left: 0;
		width: 100%;
		flex-direction: column;
	}

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