.cookie-banner {
	position: fixed;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 24px;
	font-family: sans-serif;
	z-index: 1200;
	pointer-events: none;
}

.cookie-banner__window {
	display: flex;
	flex-direction: column;
	align-items: center;
	width: min(100%, 540px);
	max-height: 100%;
	overflow-y: auto;
	box-sizing: border-box;
	padding: 32px 16px;
	background: #fff;
	-webkit-box-shadow: 0 12px 30px -15px rgba(61, 72, 81, 0.75);
	box-shadow: 0 12px 30px -15px rgba(61, 72, 81, 0.75);
	pointer-events: auto;
}

.cookie-banner__picture {
	display: block;
	flex: 0 0 auto;
	margin-bottom: 22px;
}

.cookie-banner__image {
	display: block;
	width: auto;
	height: min(360px, 42vh);
	height: min(360px, 42dvh);
	object-fit: contain;
}

.cookie-banner__desc {
	color: #333;
	font-size: 16px;
	line-height: 1.45;
	text-align: center;
}

.cookie-banner__title {
	margin-bottom: 16px;
	color: #222;
	font-size: 22px;
	font-weight: 700;
	line-height: 1.3;
	text-align: center;
}

.cookie-banner__desc a {
	color: #ff0001;
	text-decoration: none;
	text-underline-offset: 2px;
}

.cookie-banner__desc a:hover {
	text-decoration: underline;
	text-underline-offset: 2px;
}

.cookie-banner__buttons {
	flex: 0 0 auto;
	display: flex;
	align-items: center;
	justify-content: center;
	margin-top: 24px;
}

.cookie-banner__settings-note {
	margin-top: 14px;
	color: #666;
	font-size: 14px;
	line-height: 1.4;
	text-align: center;
}

.cookie-banner__settings-note a {
	color: #ff0001;
	opacity: 0.6;
}

.cookie-banner__settings-note a:hover {
	opacity: 1;
	text-decoration: underline;
	text-underline-offset: 2px;
}

@media (min-width: 641px) {
	.cookie-banner--settings-open .cookie-banner__window {
		width: min(calc((100vw - 88px) / 2), 600px);
		transform: translateX(calc(-50% - 20px));
	}
}

.cookie-banner__btn {
	border: none;
	color: #fff;
	background: #ff0001;
	padding: 13px 38px;
	font-size: 17px;
	font-weight: 600;
	line-height: 1.35;
	text-align: center;
	cursor: pointer;
	border-radius: 0px;
	transition: 0.3s;
}

.cookie-banner__btn:disabled {
	cursor: wait;
	opacity: 0.7;
}

.cookie-banner__btn:hover,
.cookie-banner__btn--primary:hover {
	background: #D90001;
	color: #fff;
}

.cookie-banner__buttons--extra {
	flex-wrap: wrap;
	gap: 12px;
}

.cookie-banner__btn--secondary {
	color: #ff0001;
	background: #e4f0ff;
}

.cookie-banner__btn--secondary:hover {
	color: #ff0001;
	background: #d4e7ff;
}

@media (max-width: 640px) {
	.cookie-banner {
		padding: 16px;
	}

	.cookie-banner__window {
		padding: 14px 10px;
		border-radius: 0px;
		-webkit-box-shadow: 0 12px 30px -15px rgba(61, 72, 81, 0.75);
	    box-shadow: 0 12px 30px -15px rgba(61, 72, 81, 0.75);
	}

	.cookie-banner__picture {
		margin-bottom: 18px;
	}

	.cookie-banner__image {
		height: min(175px, 38dvh);
	}

	.cookie-banner__desc {
		font-size: 15px;
	}

	.cookie-banner__buttons {
		margin-top: 20px;
	}

	.cookie-banner__btn {
		width: 100%;
		font-size: 16px;
	}

	.cookie-banner__settings-note {
		margin-top: 12px;
		font-size: 13px;
	}

	.cookie-banner--settings-open .cookie-banner__window {
		visibility: hidden;
	}
}

.exsv-cookie-settings {
	position: fixed;
	left: 50%;
	top: 50%;
	transform: translate(-50%, -50%);
	z-index: 1201;
	width: min(520px, calc(100% - 48px));
	max-height: calc(100vh - 48px);
	max-height: calc(100dvh - 48px);
	font-family: sans-serif;
}

@media (min-width: 641px) {
	.exsv-cookie-settings--paired {
		left: calc(50% + 20px);
		width: min(520px, calc((100% - 88px) / 2));
		transform: translateY(-50%);
	}
}

.exsv-cookie-settings__window {
	position: relative;
	max-height: inherit;
	overflow-y: auto;
	padding: 24px;
	background: #fff;
	border: 1px solid #ececec;
	-webkit-box-shadow: 0 12px 30px -15px rgba(61, 72, 81, 0.75);
	box-shadow: 0 12px 30px -15px rgba(61, 72, 81, 0.75);
}

.exsv-cookie-settings__close {
	position: sticky;
	top: 0;
	z-index: 2;
	float: right;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 32px;
	margin: -10px -10px 8px 12px;
	border: 0;
	border-radius: 50%;
	background: #fff;
	font-size: 28px;
	line-height: 1;
	cursor: pointer;
}

.exsv-cookie-settings__title {
	margin: 0 24px 14px 0;
	font-size: 20px;
	font-weight: 700;
	color: #222;
}

.exsv-cookie-settings__text {
	margin: 0 0 16px;
	color: #555;
	font-size: 14px;
	line-height: 1.45;
	text-indent: 0;
}

.exsv-cookie-settings__row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	margin: 18px 0 10px;
}

.exsv-cookie-settings__label {
	font-weight: 700;
	color: #222;
}

.exsv-cookie-settings__save {
	border: 0;
	color: #fff;
	background: #ff0001;
	padding: 11px 24px;
	font-size: 14px;
	font-weight: 600;
	cursor: pointer;
	transition: .3s;
}

.exsv-cookie-settings__save:hover {
	background: #D90001;
}

.exsv-cookie-settings__save:disabled {
	cursor: wait;
	opacity: .7;
}

.exsv-cookie-settings__success {
	color: #222;
	font-size: 16px;
	line-height: 1.5;
}

.exsv-cookie-switch {
	position: relative;
	display: inline-block;
	flex: 0 0 auto;
	width: 52px;
	height: 28px;
}

.exsv-cookie-switch input {
	opacity: 0;
	width: 0;
	height: 0;
}

.exsv-cookie-switch__slider {
	position: absolute;
	cursor: pointer;
	inset: 0;
	background: #c9c9c9;
	border-radius: 999px;
	transition: .2s;
}

.exsv-cookie-switch__slider:before {
	content: "";
	position: absolute;
	width: 22px;
	height: 22px;
	left: 3px;
	top: 3px;
	background: #fff;
	border-radius: 50%;
	box-shadow: 0 1px 4px rgba(0,0,0,.25);
	transition: .2s;
}

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

.exsv-cookie-switch:not(.exsv-cookie-switch--disabled) input:checked + .exsv-cookie-switch__slider {
	background: #2e3192;
}

.exsv-cookie-switch--disabled .exsv-cookie-switch__slider {
	cursor: default;
	background: #bdbdbd;
}

@media (max-width: 640px) {
	.exsv-cookie-settings {
		left: 16px;
		right: 16px;
		top: 16px;
		bottom: 16px;
		transform: none;
		width: auto;
		max-height: calc(100vh - 32px);
		max-height: calc(100dvh - 32px);
	}

	.exsv-cookie-settings__window {
		padding: 18px;
	}

	.exsv-cookie-settings__close {
		margin: -6px -6px 8px 12px;
	}
}
