.ent-cookie-banner {
	position: fixed;
	left: 50%;
	bottom: 24px;
	transform: translateX(-50%);
	z-index: 10050;
	width: min(920px, calc(100vw - 32px));
	padding: 32px 36px 28px;
	border-radius: 24px;
	background: var(--ent-surface-bg, #ebf2f1);
	color: #2d0a1c;
	box-shadow: 0 18px 48px rgba(6, 23, 21, 0.18);
	box-sizing: border-box;
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
	transition: opacity 0.35s ease, visibility 0.35s ease, transform 0.35s ease;
}

.ent-cookie-banner.is-visible {
	opacity: 1;
	visibility: visible;
	pointer-events: auto;
	transform: translateX(-50%) translateY(0);
}

.ent-cookie-banner__title {
	margin: 0 0 14px;
	font-size: clamp(22px, 2.4vw, 30px);
	font-weight: 400;
	line-height: 1.2;
	color: #2d0a1c;
}

.ent-cookie-banner__text {
	margin: 0 0 24px;
	font-size: 15px;
	line-height: 1.65;
	color: #4a3f44;
}

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

.ent-cookie-banner__buttons {
	display: flex;
	align-items: center;
	gap: 12px;
	flex-wrap: wrap;
}

.ent-cookie-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 48px;
	padding: 0 24px;
	border: none;
	border-radius: 999px;
	background: #061715;
	color: #fff;
	font-family: inherit;
	font-size: 14px;
	font-weight: 500;
	line-height: 1.2;
	cursor: pointer;
	transition: background-color 0.2s ease, transform 0.2s ease;
}

.ent-cookie-btn:hover {
	background: #0d2a26;
	transform: translateY(-1px);
}

.ent-cookie-btn--ghost {
	background: transparent;
	color: #2d0a1c;
	text-decoration: underline;
	text-underline-offset: 3px;
	padding: 0;
	min-height: auto;
}

.ent-cookie-btn--ghost:hover {
	background: transparent;
	transform: none;
	color: #061715;
}

.ent-cookie-link {
	color: inherit;
	text-decoration: underline;
	text-underline-offset: 3px;
}

.ent-cookie-link strong {
	font-weight: 600;
}

.ent-cookie-modal {
	position: fixed;
	inset: 0;
	z-index: 10060;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 24px;
	box-sizing: border-box;
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
	transition: opacity 0.3s ease, visibility 0.3s ease;
}

.ent-cookie-modal.is-open {
	opacity: 1;
	visibility: visible;
	pointer-events: auto;
}

.ent-cookie-modal__overlay {
	position: absolute;
	inset: 0;
	background: rgba(6, 23, 21, 0.55);
}

.ent-cookie-modal__dialog {
	position: relative;
	width: min(640px, 100%);
	max-height: calc(100vh - 48px);
	overflow: auto;
	padding: 32px 32px 28px;
	border-radius: 24px;
	background: var(--ent-surface-bg, #ebf2f1);
	color: #2d0a1c;
	box-shadow: 0 24px 64px rgba(6, 23, 21, 0.24);
	box-sizing: border-box;
}

.ent-cookie-modal__close {
	position: absolute;
	top: 18px;
	right: 18px;
	width: 40px;
	height: 40px;
	border: none;
	border-radius: 50%;
	background: #061715;
	color: #fff;
	font-size: 22px;
	line-height: 1;
	cursor: pointer;
}

.ent-cookie-modal__title {
	margin: 0 0 14px;
	padding-right: 48px;
	font-size: clamp(24px, 2.6vw, 32px);
	font-weight: 400;
	line-height: 1.2;
}

.ent-cookie-modal__text {
	margin: 0 0 20px;
	font-size: 15px;
	line-height: 1.65;
	color: #4a3f44;
}

.ent-cookie-modal__accept-all {
	width: 100%;
	margin-bottom: 24px;
}

.ent-cookie-category {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 20px;
	padding: 20px 0;
	border-top: 1px solid rgba(6, 23, 21, 0.1);
}

.ent-cookie-category__title {
	margin: 0 0 8px;
	font-size: 16px;
	font-weight: 600;
	color: #2d0a1c;
}

.ent-cookie-category__desc {
	margin: 0;
	font-size: 14px;
	line-height: 1.55;
	color: #5c534d;
}

.ent-cookie-category__status {
	flex: 0 0 auto;
	font-size: 13px;
	line-height: 1.4;
	color: #5c534d;
	white-space: nowrap;
	padding-top: 2px;
}

.ent-cookie-switch {
	position: relative;
	flex: 0 0 52px;
	width: 52px;
	height: 30px;
}

.ent-cookie-switch input {
	position: absolute;
	opacity: 0;
	width: 0;
	height: 0;
}

.ent-cookie-switch__slider {
	position: absolute;
	inset: 0;
	border-radius: 999px;
	background: #c8d0cf;
	cursor: pointer;
	transition: background-color 0.2s ease;
}

.ent-cookie-switch__slider::before {
	content: "";
	position: absolute;
	top: 3px;
	left: 3px;
	width: 24px;
	height: 24px;
	border-radius: 50%;
	background: #fff;
	transition: transform 0.2s ease;
}

.ent-cookie-switch input:checked + .ent-cookie-switch__slider {
	background: #061715;
}

.ent-cookie-switch input:checked + .ent-cookie-switch__slider::before {
	transform: translateX(22px);
}

.ent-cookie-modal__footer {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 12px;
	margin-top: 24px;
}

.ent-cookie-modal__footer .ent-cookie-btn {
	width: 100%;
}

body.ent-cookie-modal-open {
	overflow: hidden;
}

@media (max-width: 767px) {
	.ent-cookie-banner {
		bottom: 16px;
		padding: 24px 20px 20px;
		border-radius: 20px;
	}

	.ent-cookie-banner__actions {
		flex-direction: column;
		align-items: stretch;
	}

	.ent-cookie-banner__buttons {
		width: 100%;
		flex-direction: column;
	}

	.ent-cookie-banner__buttons .ent-cookie-btn {
		width: 100%;
	}

	.ent-cookie-modal__dialog {
		padding: 24px 20px 20px;
	}

	.ent-cookie-category {
		flex-direction: column;
		gap: 12px;
	}

	.ent-cookie-modal__footer {
		grid-template-columns: 1fr;
	}
}
