/* Cookie consent banners */
.cookie-consent-overlay {
	display: none !important;
}

.cookie-consent-popup {
	display: none;
	flex-direction: column;
	align-items: center;
	padding: 25px;
	gap: 20px;
	position: fixed;
	width: 650px;
	max-width: calc(100vw - 40px);
	right: 50px;
	bottom: 50px;
	background: #FFFFFF;
	box-shadow: 0px 4px 30.8px rgba(2, 33, 105, 0.35);
	border-radius: 24px;
	z-index: 9999;
	font-family: 'Montserrat', sans-serif;
	box-sizing: border-box;
}

.cookie-consent-popup.is-visible {
	display: flex;
}

.cookie-consent-popup--banner {
	gap: 20px;
	justify-content: space-between;
}

.cookie-consent-popup--settings,
.cookie-consent-popup--revoke {
	gap: 25px;
}

.cookie-consent-inner {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	padding: 0;
	gap: 25px;
	width: 100%;
	max-width: 600px;
}

.cookie-consent-text {
	width: 100%;
	font-family: 'Montserrat', sans-serif;
	font-weight: 600;
	font-size: 14px;
	line-height: 17px;
	color: #062F4B;
}

.cookie-consent-text strong {
	font-weight: 600;
}

.cookie-consent-links {
	display: flex;
	flex-direction: row;
	justify-content: space-between;
	align-items: flex-start;
	gap: 10px;
	width: 100%;
	flex-wrap: wrap;
}

.cookie-consent-link {
	box-sizing: border-box;
	display: inline-flex;
	flex-direction: row;
	justify-content: center;
	align-items: center;
	padding: 0 0 3px;
	border-bottom: 1px solid #319AB9;
	font-family: 'Montserrat', sans-serif;
	font-weight: 600;
	font-size: 14px;
	line-height: 17px;
	color: #319AB9;
	text-decoration: none;
	background: none;
	border-top: none;
	border-left: none;
	border-right: none;
	cursor: pointer;
}

.cookie-consent-link:hover {
	opacity: 0.85;
}

.cookie-consent-actions {
	display: flex;
	flex-direction: row;
	justify-content: space-between;
	align-items: center;
	gap: 19px;
	width: 100%;
}

.cookie-consent-actions--end {
	justify-content: flex-end;
}

.cookie-consent-actions-right {
	display: flex;
	flex-direction: row;
	align-items: center;
	gap: 8px;
}

.cookie-consent-btn {
	display: inline-flex;
	flex-direction: row;
	justify-content: center;
	align-items: center;
	padding: 10px 24px;
	gap: 10px;
	border: none;
	border-radius: 53px;
	font-family: 'Montserrat', sans-serif;
	font-weight: 500;
	font-size: 14px;
	line-height: 17px;
	cursor: pointer;
	white-space: nowrap;
	transition: opacity 0.2s;
}

.cookie-consent-btn:hover {
	opacity: 0.9;
}

.cookie-consent-btn--outline {
	background: rgba(130, 160, 180, 0.15);
	color: #319AB9;
}

.cookie-consent-btn--secondary {
	background: #82A0B4;
	color: #FFFFFF;
}

.cookie-consent-btn--primary {
	background: #319AB9;
	color: #FFFFFF;
}

.cookie-consent-header {
	display: flex;
	flex-direction: row;
	justify-content: space-between;
	align-items: center;
	gap: 15px;
	width: 100%;
}

.cookie-consent-title {
	font-family: 'Montserrat', sans-serif;
	font-weight: 600;
	font-size: 18px;
	line-height: 22px;
	color: #062F4B;
	margin: 0;
}

.cookie-consent-subtitle {
	font-family: 'Montserrat', sans-serif;
	font-weight: 400;
	font-size: 12px;
	line-height: 15px;
	color: rgba(6, 47, 75, 0.55);
	margin: 0;
}

.cookie-consent-close {
	width: 24px;
	height: 24px;
	padding: 0;
	border: none;
	background: transparent;
	cursor: pointer;
	position: relative;
	flex-shrink: 0;
}

.cookie-consent-close::before,
.cookie-consent-close::after {
	content: '';
	position: absolute;
	left: 20.83%;
	right: 20.83%;
	top: 50%;
	height: 2px;
	background: #062F4B;
}

.cookie-consent-close::before {
	transform: rotate(45deg);
}

.cookie-consent-close::after {
	transform: rotate(-45deg);
}

.cookie-consent-divider {
	width: 100%;
	height: 0;
	border: none;
	border-top: 1px solid rgba(6, 47, 75, 0.1);
	margin: 0;
}

.cookie-consent-categories {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 25px;
	width: 100%;
}

.cookie-consent-category {
	display: flex;
	flex-direction: row;
	align-items: flex-start;
	gap: 40px;
	width: 100%;
}

.cookie-consent-category-info {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 4px;
	flex: 1;
	min-width: 0;
}

.cookie-consent-category-title {
	font-family: 'Montserrat', sans-serif;
	font-weight: 600;
	font-size: 14px;
	line-height: 17px;
	color: #062F4B;
}

.cookie-consent-category-desc {
	font-family: 'Montserrat', sans-serif;
	font-weight: 400;
	font-size: 12px;
	line-height: 15px;
	color: rgba(6, 47, 75, 0.55);
}

.cookie-consent-toggle {
	position: relative;
	width: 40px;
	height: 40px;
	flex: none;
	flex-shrink: 0;
}

.cookie-consent-toggle input {
	opacity: 0;
	width: 0;
	height: 0;
	position: absolute;
}

.cookie-consent-toggle-slider {
	position: absolute;
	height: 22.5px;
	left: 0;
	right: 0;
	top: calc(50% - 22.5px / 2 + 0.25px);
	background: rgba(6, 47, 75, 0.2);
	border-radius: 22.5px;
	cursor: pointer;
	transition: background 0.2s ease;
}

.cookie-consent-toggle-slider::before {
	content: '';
	position: absolute;
	height: 17.5px;
	width: 17.5px;
	left: 6.25%;
	top: calc(50% - 17.5px / 2 + 0.25px);
	background: #FFFFFF;
	border-radius: 50%;
	transition: left 0.2s ease, background 0.2s ease;
}

/* 3. Неактивный */
.cookie-consent-toggle input:not(:checked) + .cookie-consent-toggle-slider {
	background: rgba(6, 47, 75, 0.2);
}

.cookie-consent-toggle input:not(:checked) + .cookie-consent-toggle-slider::before {
	left: 6.25%;
}

/* 1. Активный */
.cookie-consent-toggle input:checked + .cookie-consent-toggle-slider {
	background: #062F4B;
}

.cookie-consent-toggle input:checked + .cookie-consent-toggle-slider::before {
	left: calc(100% - 17.5px - 6.25%);
}

/* 2. Заблокированный обязательный */
.cookie-consent-toggle--locked input:checked + .cookie-consent-toggle-slider,
.cookie-consent-toggle--locked .cookie-consent-toggle-slider {
	background: rgba(6, 47, 75, 0.55);
	cursor: not-allowed;
}

.cookie-consent-toggle--locked input:checked + .cookie-consent-toggle-slider::before,
.cookie-consent-toggle--locked .cookie-consent-toggle-slider::before {
	left: calc(100% - 17.5px - 6.25%);
	background: #FFFFFF;
}

.foot-txt .cookie-revoke-link {
	display: block;
	width: fit-content;
	padding: 0 0 3px;
	border: none;
	border-bottom: 1px solid #319AB9;
	background: none;
	font-family: 'Montserrat', sans-serif;
	font-weight: 600;
	font-size: 14px;
	line-height: 17px;
	color: #319AB9;
	cursor: pointer;
	text-decoration: none;
	letter-spacing: 0.1em;
	margin-top: 12px;
	margin-bottom: 30px;
	position: relative;
	z-index: 6;
}

.cookie-revoke-link:hover {
	opacity: 0.85;
}

.footer,
.footer-page.footer {
	height: auto;
	min-height: 400px;
	overflow: visible;
}

@media (max-width: 1300px) {
	.footer .foot-txt,
	.footer-page .foot-txt {
		position: static;
		padding-top: 20px;
	}

	.footer .copyright,
	.footer-page .copyright {
		position: relative;
		bottom: auto;
		margin-top: 28px;
	}

	.footer,
	.footer-page.footer {
		min-height: 0;
	}
}

@media (max-width: 768px) {
	.foot-txt .cookie-revoke-link {
		margin-bottom: 24px;
	}
}

@media (max-width: 768px) {
	.cookie-consent-popup {
		right: 20px;
		bottom: 20px;
		padding: 20px;
	}

	.cookie-consent-actions {
		flex-direction: column;
		align-items: stretch;
	}

	.cookie-consent-actions-right {
		width: 100%;
		justify-content: space-between;
	}

	.cookie-consent-btn {
		flex: 1;
	}

	.cookie-consent-category {
		gap: 16px;
	}

	.cookie-consent-links {
		flex-direction: column;
	}
}
