/**
 * Баннер согласия на cookies.
 */

.ea-cookie-consent {
	position: fixed;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 10050;
	padding: 12px 12px 24px;
	box-sizing: border-box;
	pointer-events: none;
	opacity: 0;
	transform: translateY(100%);
	transition:
		opacity 0.28s ease,
		transform 0.28s ease;
}

.ea-cookie-consent--visible {
	pointer-events: auto;
	opacity: 1;
	transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
	.ea-cookie-consent {
		transition: none;
	}
}

.ea-cookie-consent__inner {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	padding: 16px 18px;
	border-radius: 14px;
	border: 1px solid #e2e8f0;
	background: rgba(255, 255, 255, 0.96);
	box-shadow: 0 12px 40px rgba(15, 23, 42, 0.12);
	backdrop-filter: blur(10px);
}

.ea-cookie-consent__content {
	flex: 1 1 280px;
	min-width: 0;
}

.ea-cookie-consent__title {
	margin: 0 0 6px;
	font-size: 15px;
	font-weight: 600;
	line-height: 1.35;
	color: #0f172a;
}

.ea-cookie-consent__desc {
	margin: 0;
	font-size: 13px;
	line-height: 1.5;
	color: #475569;
}

.ea-cookie-consent__link {
	color: #2563eb;
	text-decoration: underline;
	text-underline-offset: 2px;
}

.ea-cookie-consent__link:hover {
	text-decoration: none;
}

.ea-cookie-consent__actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: flex-end;
	gap: 8px;
	flex: 0 0 auto;
}

.ea-cookie-consent__btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 40px;
	padding: 0 16px;
	border-radius: 10px;
	border: 1px solid transparent;
	font: inherit;
	font-size: 14px;
	font-weight: 500;
	line-height: 1.2;
	cursor: pointer;
	white-space: nowrap;
	transition:
		background-color 0.15s ease,
		border-color 0.15s ease,
		color 0.15s ease;
}

.ea-cookie-consent__btn:focus-visible {
	outline: 2px solid #16a34a;
	outline-offset: 2px;
}

.ea-cookie-consent__btn--primary {
	background: #16a34a;
	border-color: #16a34a;
	color: #fff;
}

.ea-cookie-consent__btn--primary:hover {
	background: #15803d;
	border-color: #15803d;
}

@media (max-width: 640px) {
	.ea-cookie-consent {
		padding: 8px 8px 20px;
	}

	.ea-cookie-consent__inner {
		padding: 14px;
	}

	.ea-cookie-consent__actions {
		width: 100%;
		align-items: stretch;
	}

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