.cookie-panel {
	/* Цветовые переменные */
	--cookie-bg: #ffffff;
	--cookie-text-color: #393939;
	--cookie-shadow-color: rgba(57, 57, 57, 0.59);
	--cookie-close-icon-color: #393939;
	--cookie-checkbox-border: #888888;
	--cookie-checkbox-checked-border: #ff8400;
	--cookie-checkbox-checked-fill: #ff8400;
	--cookie-checkbox-hover-fill: #964d00;
	--cookie-button-bg: #ff8400;
	--cookie-button-text: #ffffff;

	position: fixed;
	right: 0;
	bottom: 10px;
	left: 0;
	z-index: 14;
	box-sizing: content-box;
	width: calc(100% - 40px);
	max-height: 90%;
	max-width: 525px;
	margin-right: auto;
	margin-left: auto;
	padding: 0;
	font-size: 12px;
	line-height: 16px;
	color: var(--cookie-text-color);
	border-radius: 3px;
	background-color: var(--cookie-bg);
	box-shadow: 0 0 20px 0 var(--cookie-shadow-color);
	overflow: auto;
	/*transition: 0.5s ease;*/
	transform: translateY(0);
	user-select: none;
}

.cookie-panel,
.cookie-panel.cookie-panel--center {
	margin: 0 auto;
}

.cookie-panel.cookie-panel--left {
	margin: 0 auto 0 10px;
}

.cookie-panel.cookie-panel--right {
	margin: 0 15px 0 auto;
}

.cookie-panel--hidden {
	transform: translateY(150%);
}

.cookie-panel__filter.filter input[type="checkbox"] + label {
    position: relative;
    display: flex;
    cursor: pointer;
    transition: 0.3s ease;
	padding-left: 33px;
}

.cookie-panel__filter.filter input[type="checkbox"] + label::after,
.cookie-panel__filter.filter input[type="checkbox"] + label::before {
	top: -2px;
}

p.cookie-panel__text:first-of-type {
	margin-bottom: 0;
}

@media (max-width: 360px) {
	.cookie-panel {
		max-width: 300px;
	}
}

.cookie-panel__close {
	position: absolute;
	top: 16px;
	right: 16px;
	max-width: unset;
	min-width: unset;
	width: 11px;
	height: 11px;
	display: block;
	padding: 0;
	opacity: 0.25;
	transition: 0.3s ease;
	cursor: pointer;
}

.cookie-panel__close:before,
.cookie-panel__close:after {
	content: '';
	position: absolute;
	top: 50%;
	width: 13px;
	height: 2px;
	display: block;
	background: var(--cookie-close-icon-color);
}

.cookie-panel__close:before {
	transform: translate(0, -50%) rotate(45deg);
}

.cookie-panel__close:after {
	transform: translate(0, -50%) rotate(-45deg);
}

.cookie-panel__close:hover {
	opacity: 1;
}

.cookie-panel__info {
	display: flex;
	flex-direction: row;
	gap: 32px;
}

@media (max-width: 767px) {
	.cookie-panel__info {
		flex-direction: column;
		gap: 16px;
	}
}

.cookie-panel__settings {
	display: flex;
	flex-direction: column;
	flex-shrink: 0;
	gap: 8px;
	padding-right: 25px;
}

.cookie-panel__title {
	font-family: inherit;
	font-weight: 600;
	font-size: 16px;
	line-height: 24px;
}

.cookie-panel__text--link,
.cookie-panel__text--link:focus {
	color: inherit;
	text-decoration: underline;
	cursor: pointer;
	transition: 0.3s ease;
}

@media (hover: hover) {
	.cookie-panel__text--link:hover {
		opacity: 0.75;
		text-decoration: none;
	}
}

@media (hover: none) {
	.cookie-panel__text--link:hover,
	.cookie-panel__text--link:focus {
		color: inherit;
		text-decoration: underline;
	}
	.cookie-panel__text--link:active {
		opacity: 0.75;
		text-decoration: none;
	}
}


.cookie-panel__manage-form {
	display: flex;
	flex-direction: column;
	gap: 8px;
	padding: 16px;
}

/* Стили для чекбоксов */
.cookie-panel__settings-group {
	width: fit-content;
	display: flex;
	align-items: center;
	gap: 0 10px;
	line-height: 18px;
}

.cookie-panel__settings-group .cookie-panel__setting-input {
	width: initial;
	height: initial;
	display: none;
	margin: 0;
	padding: 0;
}

.cookie-panel__settings-group .cookie-panel__setting-input:checked + .cookie-panel__setting-label:before {
	border: 1px solid var(--cookie-checkbox-checked-border);
}

.cookie-panel__settings-group .cookie-panel__setting-input:checked + .cookie-panel__setting-label:after {
	background-color: var(--cookie-checkbox-checked-fill);
}

.cookie-panel__settings-group .cookie-panel__setting-label {
	position: relative;
	display: flex;
	cursor: pointer;
	transition: 0.3s ease;
}

.cookie-panel__settings-group .cookie-panel__setting-label:before {
	content: '';
	position: relative;
	width: 14px;
	height: 14px;
	display: inline-block;
	margin-right: 10px;
	vertical-align: middle;
	background-color: transparent;
	border: 1px solid var(--cookie-checkbox-border);
	border-radius: 2px;
	-webkit-appearance: none;
	cursor: pointer;
	transition: 0.3s ease;
}

.cookie-panel__settings-group .cookie-panel__setting-label:after {
	content: '';
	position: absolute;
	top: 3px;
	left: 3px;
	display: block;
	width: 10px;
	height: 10px;
	background-color: transparent;
	border-radius: 1px;
	transition: 0.3s ease;
}

.cookie-panel__settings-group:hover .cookie-panel__setting-label:after {
	background-color: var(--cookie-checkbox-hover-fill);
}

.cookie-panel__button-group-one {
	width: 100%;
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 8px;
	margin-top: 8px;
}

@media (max-width: 767px) {
	.cookie-panel__button-group-one {
		display: flex;
		flex-direction: column;
		grid-template-columns: unset;
	}
}

.cookie-panel__button-group-two {
	display: flex;
	gap: 8px;
	margin-top: 8px;
}

@media (max-width: 1024px) {
	.cookie-panel__button-group-two {
		display: grid;
	}
}

@media (max-width: 767px) {
	.cookie-panel__button-group-two {
		max-width: unset;
		display: flex;
		flex-direction: column;
	}
}

.cookie-panel__button {
	display: flex;
	justify-content: center;
	align-items: center;
	flex-shrink: 0;
	grid-column: span 1;
	margin: 0;
	padding: 10px 20px;
	font-family: inherit;
	font-size: inherit;
	line-height: 14px;
	color: var(--cookie-button-text);
	background-color: var(--cookie-button-bg);
	border: 0;
	border-radius: 3px;
	cursor: pointer;
	transition: 0.3s ease;
}

.cookie-panel__button:hover {
	opacity: 0.75;
}

.cookie-panel__button:last-child {
	grid-column: span 2;
}

.cookie-panel-advanced {
	max-width: 860px;
	justify-content: space-between;
}

.cookie-panel-advanced .cookie-panel__text {
	max-width: 75%;
}

@media (max-width: 1024px) {
	.cookie-panel-advanced .cookie-panel__text {
		max-width: 65%;
	}
}

@media (max-width: 767px) {
	.cookie-panel-advanced .cookie-panel__text {
		max-width: 100%;
	}
}

@media (max-width: 1024px) {
	.cookie-panel-advanced {
		max-width: 600px;
	}
}

@media (max-width: 767px) {
	.cookie-panel-advanced {
		max-width: unset;
		width: 94%;
	}
}

@media (max-width: 360px) {
	.cookie-panel-advanced {
		max-width: 300px;
		width: 100%;
	}
}

[dir="rtl"] .cookie-panel {
	unicode-bidi: bidi-override;
	direction: rtl;
}

[dir="rtl"] .cookie-panel__close {
	right: unset;
	left: 16px;
}

@media (max-width: 767px) {
	[dir="rtl"] .cookie-panel__settings {
		padding-right: 0;
	}
}

[dir="rtl"] .cookie-panel__setting-label:before {
	margin-right: 0;
	margin-left: 10px;
}

[dir="rtl"] .cookie-panel__setting-label:after {
	right: 3px;
	left: unset;
}

html:has(.cookie-panel:not(.cookie-panel--hidden)) jdiv,
html:has(.cookie-panel:not(.cookie-panel--hidden)) .b24-widget-button-wrapper,
html:has(.cookie-panel:not(.cookie-panel--hidden)) tworoomz-widget:first-of-type,
html:has(.cookie-panel:not(.cookie-panel--hidden)) .tl-widgets-container,
html:has(.cookie-panel:not(.cookie-panel--hidden)) .hotbot-widget,
html:has(.cookie-panel:not(.cookie-panel--hidden)) .stream-wood-recall-btn,
html:has(.cookie-panel:not(.cookie-panel--hidden)) div[id^="leadia"] {
	z-index: 9 !important;
}