.cookie-consent,
.cookie-modal,
.cookie-settings-button {
	box-sizing: border-box;
	font-family: inherit;
}

.cookie-consent *,
.cookie-modal * {
	box-sizing: border-box;
}

.cookie-consent {
	position: fixed;
	left: 50%;
	bottom: 24px;
	z-index: 2000000002;
	display: none;
	width: min(1120px, calc(100% - 32px));
	padding: 18px 20px;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	transform: translateX(-50%);
	background: #202124;
	color: #fff;
	border: 1px solid rgba(255, 255, 255, .08);
	border-radius: 16px;
	box-shadow: 0 18px 60px rgba(0, 0, 0, .28);
}

.cookie-consent__text {
	flex: 1 1 auto;
	min-width: 0;
	font-size: 14px;
	line-height: 1.55;
	color: rgba(255, 255, 255, .9);
}

.cookie-consent__more {
	margin-left: 4px;
	color: #fff;
	font-weight: 600;
	text-decoration: underline;
	text-underline-offset: 3px;
}

.cookie-consent__actions {
	display: flex;
	flex: 0 0 auto;
	align-items: center;
	gap: 10px;
}

.cookie-consent button,
.cookie-modal button {
	font: inherit;
}

.cookie-consent__actions button,
.cookie-modal__actions button {
	min-height: 42px;
	padding: 0 18px;
	border-radius: 10px;
	border: 1px solid transparent;
	font-size: 14px;
	font-weight: 600;
	cursor: pointer;
	transition: background-color .18s ease, border-color .18s ease, color .18s ease, transform .18s ease, opacity .18s ease;
}

.cookie-consent__actions button:hover,
.cookie-modal__actions button:hover {
	transform: translateY(-1px);
}

.cookie-consent__actions button:disabled,
.cookie-modal__actions button:disabled {
	cursor: default;
	opacity: .55;
	transform: none;
}

.cookie-consent__accept,
.cookie-modal__save {
	background: #fff;
	color: #202124;
}

.cookie-consent__reject {
	padding-left: 10px !important;
	padding-right: 10px !important;
	background: transparent;
	color: rgba(255, 255, 255, .82);
}

.cookie-consent__reject:hover {
	color: #fff;
}

.cookie-consent__settings {
	background: transparent;
	border-color: rgba(255, 255, 255, .24) !important;
	color: #fff;
}

.cookie-modal {
	position: fixed;
	inset: 0;
	z-index: 2000000003;
	display: none;
	align-items: center;
	justify-content: center;
	padding: 24px;
	background: rgba(17, 24, 39, .64);
	backdrop-filter: blur(5px);
	color: #222;
}

.cookie-modal.is-open {
	display: flex;
}

.cookie-modal__container {
	position: relative;
	display: flex;
	flex-direction: column;
	width: min(920px, 100%);
	max-height: min(760px, calc(100vh - 48px));
	overflow: hidden;
	background: #fff;
	border: 1px solid #e8e8ea;
	border-radius: 18px;
	box-shadow: 0 28px 90px rgba(0, 0, 0, .24);
}

.cookie-modal__header {
	position: relative;
	padding: 24px 64px 20px 26px;
	border-bottom: 1px solid #ececef;
}

.cookie-modal__title {
	margin: 0 0 6px;
	font-size: 23px;
	font-weight: 700;
	line-height: 1.25;
	color: #171717;
}

.cookie-modal__subtitle {
	max-width: 680px;
	font-size: 14px;
	line-height: 1.55;
	color: #6b6b72;
}

.cookie-modal__close {
	position: absolute;
	top: 18px;
	right: 18px;
	width: 38px;
	height: 38px;
	padding: 0;
	border: 0;
	border-radius: 10px;
	background: #f5f5f6;
	color: #555;
	font-size: 24px;
	line-height: 1;
	cursor: pointer;
	transition: background-color .18s ease, color .18s ease;
}

.cookie-modal__close:hover {
	background: #ececee;
	color: #111;
}

.cookie-modal__content {
	display: grid;
	grid-template-columns: 230px minmax(0, 1fr);
	min-height: 0;
	flex: 1 1 auto;
}

.cookie-modal__sidebar {
	overflow-y: auto;
	padding: 14px;
	border-right: 1px solid #ececef;
	background: #fafafa;
}

.cookie-modal__sidebar ul {
	list-style: none;
	margin: 0;
	padding: 0;
}

.cookie-modal__group {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	width: 100%;
	margin: 0 0 4px;
	padding: 12px 13px;
	border: 0;
	border-radius: 10px;
	background: transparent;
	color: #4b4b51;
	font-size: 14px;
	font-weight: 600;
	line-height: 1.35;
	text-align: left;
	cursor: pointer;
}

.cookie-modal__group:hover {
	background: #f0f0f2;
	color: #1f1f22;
}

.cookie-modal__group.current {
	background: #e9e9ec;
	color: #111;
}

.cookie-modal__group-lock {
	flex: 0 0 auto;
	font-size: 11px;
	font-weight: 600;
	color: #777780;
}

.cookie-modal__groups {
	min-width: 0;
	overflow-y: auto;
	padding: 26px 28px 30px;
}

.cookie-group {
	display: none;
}

.cookie-group.current {
	display: block;
}

.cookie-group__header {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 18px;
	margin-bottom: 10px;
}

.cookie-group__heading {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 9px;
	min-width: 0;
}

.cookie-group__title {
	font-size: 20px;
	font-weight: 700;
	line-height: 1.3;
	color: #171717;
}

.cookie-group__required {
	display: inline-flex;
	align-items: center;
	min-height: 24px;
	padding: 2px 9px;
	border-radius: 999px;
	background: #f0f0f2;
	color: #66666d;
	font-size: 11px;
	font-weight: 700;
	white-space: nowrap;
}

.cookie-group-description {
	margin: 0 0 22px;
	font-size: 13px;
	line-height: 1.6;
	color: #707078;
}

.cookie-items {
	border-top: 1px solid #ececef;
}

.cookie-item {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 24px;
	padding: 18px 0;
	border-bottom: 1px solid #ececef;
}

.cookie-item__content {
	min-width: 0;
	flex: 1 1 auto;
}

.cookie-item__name {
	display: inline-block;
	margin: 0;
	color: #222;
	font-size: 14px;
	font-weight: 700;
	line-height: 1.45;
	cursor: pointer;
}

.cookie-item-description {
	margin-top: 6px;
	color: #74747b;
	font-size: 12.5px;
	line-height: 1.55;
}

.cookie-switch {
	position: relative;
	display: inline-flex;
	flex: 0 0 auto;
	width: 46px;
	height: 26px;
	margin-top: 1px;
	cursor: pointer;
}

.cookie-switch input {
	position: absolute;
	width: 1px;
	height: 1px;
	opacity: 0;
	pointer-events: none;
}

.cookie-switch__slider {
	position: absolute;
	inset: 0;
	border-radius: 999px;
	background: #d7d7dc;
	transition: background-color .18s ease;
}

.cookie-switch__slider::after {
	content: '';
	position: absolute;
	top: 3px;
	left: 3px;
	width: 20px;
	height: 20px;
	border-radius: 50%;
	background: #fff;
	box-shadow: 0 1px 4px rgba(0, 0, 0, .22);
	transition: transform .18s ease;
}

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

.cookie-switch input:checked + .cookie-switch__slider::after {
	transform: translateX(20px);
}

.cookie-switch input:focus-visible + .cookie-switch__slider {
	outline: 3px solid rgba(0, 0, 0, .12);
	outline-offset: 2px;
}

.cookie-switch.is-required {
	cursor: default;
	opacity: .72;
}

.cookie-group__switch {
	margin-top: 1px;
}

.cookie-modal__actions {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 16px 22px;
	border-top: 1px solid #ececef;
	background: #fff;
}

.cookie-modal__actions-left,
.cookie-modal__actions-right {
	display: flex;
	align-items: center;
	gap: 10px;
}

.cookie-modal__actions-right {
	margin-left: auto;
}

.cookie-modal__reject {
	background: transparent;
	border-color: #e1e1e5 !important;
	color: #66666d;
}

.cookie-modal__reject:hover {
	border-color: #cfcfd4 !important;
	color: #222;
}

.cookie-modal__accept-all {
	background: transparent;
	border-color: #d7d7dc !important;
	color: #333;
}

.cookie-modal__cancel {
	background: #f3f3f4;
	color: #333;
}

.cookie-modal__save {
	background: #202124;
	color: #fff;
}

.cookie-settings-button {
	position: fixed;
	right: 22px;
	bottom: 22px;
	z-index: 2000000001;
	display: none;
	width: 46px;
	height: 46px;
	padding: 0;
	border: 1px solid #e5e5e7;
	border-radius: 14px;
	background: #fff;
	color: #202124;
	box-shadow: 0 8px 30px rgba(0, 0, 0, .14);
	cursor: pointer;
	transition: transform .18s ease, box-shadow .18s ease;
}

.cookie-settings-button.active {
	display: inline-flex;
	align-items: center;
	justify-content: center;
}

.cookie-settings-button:hover {
	transform: translateY(-2px);
	box-shadow: 0 12px 34px rgba(0, 0, 0, .18);
}

.cookie-settings-button svg {
	width: 22px;
	height: 22px;
}

.cookie-consent ~ .hdbn .hdbn-panel {
	z-index: 2000000000;
}

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

@media (max-width: 760px) {
	.cookie-consent {
		bottom: 12px;
		width: calc(100% - 24px);
		padding: 16px;
		align-items: stretch;
		flex-direction: column;
		gap: 14px;
		border-radius: 14px;
	}

	.cookie-consent__actions {
		width: 100%;
		flex-wrap: wrap;
	}

	.cookie-consent__actions button {
		flex: 1 1 0;
		padding-left: 12px;
		padding-right: 12px;
	}

	.cookie-consent__reject {
		order: 2;
		flex-basis: 100% !important;
		min-height: 34px !important;
	}

	.cookie-modal {
		padding: 0;
		align-items: flex-end;
	}

	.cookie-modal__container {
		width: 100%;
		max-height: 92vh;
		border-radius: 18px 18px 0 0;
		border-bottom: 0;
	}

	.cookie-modal__header {
		padding: 20px 58px 16px 18px;
	}

	.cookie-modal__title {
		font-size: 20px;
	}

	.cookie-modal__content {
		display: flex;
		flex-direction: column;
		min-height: 0;
	}

	.cookie-modal__sidebar {
		flex: 0 0 auto;
		overflow-x: auto;
		overflow-y: hidden;
		padding: 10px 12px;
		border-right: 0;
		border-bottom: 1px solid #ececef;
		background: #fff;
	}

	.cookie-modal__sidebar ul {
		display: flex;
		gap: 6px;
		width: max-content;
	}

	.cookie-modal__group {
		width: auto;
		margin: 0;
		padding: 9px 12px;
		white-space: nowrap;
		background: #f5f5f6;
	}

	.cookie-modal__group.current {
		background: #222;
		color: #fff;
	}

	.cookie-modal__group-lock {
		display: none;
	}

	.cookie-modal__groups {
		padding: 20px 18px 24px;
	}

	.cookie-group__title {
		font-size: 18px;
	}

	.cookie-item {
		gap: 16px;
		padding: 16px 0;
	}

	.cookie-modal__actions {
		padding: 12px;
		flex-wrap: wrap;
	}

	.cookie-modal__actions-left {
		order: 2;
		width: 100%;
	}

	.cookie-modal__actions-left button {
		flex: 1 1 0;
	}

	.cookie-modal__actions-right {
		order: 1;
		width: 100%;
	}

	.cookie-modal__actions-right button {
		flex: 1 1 0;
	}

	.cookie-settings-button {
		right: 14px;
		bottom: 14px;
	}
}

.cookie-embed-placeholder {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	min-height: 260px;
	margin: 16px 0;
	aspect-ratio: 16 / 9;
	overflow: hidden;
	border: 1px solid #e3e5e8;
	border-radius: 16px;
	background:
		linear-gradient(135deg, rgba(255, 255, 255, .65), rgba(255, 255, 255, .25)),
		#f3f4f6;
	color: #202124;
}

.cookie-embed-placeholder__inner {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	max-width: 520px;
	padding: 34px 28px;
	text-align: center;
}

.cookie-embed-placeholder__icon {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 58px;
	height: 58px;
	margin-bottom: 18px;
	border-radius: 18px;
	background: #202124;
	box-shadow: 0 10px 30px rgba(32, 33, 36, .18);
}

.cookie-embed-placeholder__icon span {
	display: block;
	width: 0;
	height: 0;
	margin-left: 4px;
	border-top: 9px solid transparent;
	border-bottom: 9px solid transparent;
	border-left: 14px solid #fff;
}

.cookie-embed-placeholder__title {
	margin-bottom: 8px;
	font-size: 18px;
	font-weight: 700;
	line-height: 1.3;
}

.cookie-embed-placeholder__text {
	max-width: 440px;
	color: #686b73;
	font-size: 14px;
	line-height: 1.55;
}

.cookie-embed-placeholder__actions {
	display: flex;
	align-items: center;
	justify-content: center;
	flex-wrap: wrap;
	gap: 10px;
	margin-top: 20px;
}

.cookie-embed-placeholder__actions button {
	min-height: 42px;
	padding: 0 17px;
	border-radius: 10px;
	font: inherit;
	font-size: 14px;
	font-weight: 600;
	cursor: pointer;
	transition: transform .18s ease, opacity .18s ease, background-color .18s ease;
}

.cookie-embed-placeholder__actions button:hover {
	transform: translateY(-1px);
}

.cookie-embed-placeholder__actions button:disabled {
	cursor: default;
	opacity: .55;
	transform: none;
}

.cookie-embed-allow {
	border: 1px solid #202124;
	background: #202124;
	color: #fff;
}

.cookie-embed-settings {
	border: 1px solid #d5d7dc;
	background: #fff;
	color: #303238;
}

.cookie-embed-allow.is-loading::after {
	content: '';
	display: inline-block;
	width: 12px;
	height: 12px;
	margin-left: 8px;
	vertical-align: -1px;
	border: 2px solid rgba(255, 255, 255, .38);
	border-top-color: #fff;
	border-radius: 50%;
	animation: cookie-embed-spin .7s linear infinite;
}

@keyframes cookie-embed-spin {
	to { transform: rotate(360deg); }
}

@media (max-width: 760px) {
	.cookie-embed-placeholder {
		min-height: 220px;
		border-radius: 13px;
	}

	.cookie-embed-placeholder__inner {
		padding: 26px 18px;
	}

	.cookie-embed-placeholder__icon {
		width: 50px;
		height: 50px;
		margin-bottom: 14px;
		border-radius: 15px;
	}

	.cookie-embed-placeholder__title {
		font-size: 16px;
	}

	.cookie-embed-placeholder__actions {
		width: 100%;
	}

	.cookie-embed-placeholder__actions button {
		flex: 1 1 150px;
	}
}
