.wizon-consent {
	bottom: 0;
	display: none;
	left: 0;
	pointer-events: none;
	position: fixed;
	right: 0;
	top: 0;
	z-index: 100000;
}

.wizon-consent.is-visible {
	display: block;
}

.wizon-consent.is-panel-open {
	background: rgb(18 23 30 / 35%);
	pointer-events: auto;
}

html.wizon-consent-lock,
html.wizon-consent-lock body {
	overflow: hidden;
	overscroll-behavior: none;
}

.wizon-consent [hidden] {
	display: none !important;
}

.wizon-consent__banner,
.wizon-consent__panel {
	background: #fff;
	border: 1px solid #d9dde2;
	box-shadow: 0 18px 60px rgb(23 29 38 / 16%);
	color: #15171a;
	font-family: "Titillium Web", sans-serif;
	pointer-events: auto;
}

.wizon-consent__banner {
	align-items: center;
	border-radius: 22px;
	bottom: 24px;
	display: grid;
	gap: 32px;
	grid-template-columns: minmax(0, 1fr) auto;
	left: 50%;
	max-width: min(1180px, calc(100vw - 48px));
	padding: 26px 30px;
	position: absolute;
	transform: translateX(-50%);
	width: 100%;
}

.wizon-consent__copy h2,
.wizon-consent__panel h2 {
	font-family: "Lora", serif;
	font-size: clamp(24px, 2.4vw, 34px);
	line-height: 1.12;
	margin: 0 0 8px;
}

.wizon-consent__copy p,
.wizon-consent__panel p {
	color: #555b63;
	font-size: 17px;
	line-height: 1.5;
	margin: 0 0 10px;
}

.wizon-consent__copy a {
	color: #147fca;
	font-size: 15px;
	font-weight: 600;
	text-underline-offset: 3px;
}

.wizon-consent__actions,
.wizon-consent__panel-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	justify-content: flex-end;
}

.wizon-consent__actions {
	max-width: 410px;
}

.wizon-consent__button,
.wizon-consent__close {
	appearance: none;
	background: #fff;
	border: 1px solid #34383e;
	border-radius: 10px;
	color: #15171a;
	cursor: pointer;
	font: 700 15px/1.2 "Titillium Web", sans-serif;
	min-height: 46px;
	padding: 12px 18px;
	transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease, transform 160ms ease;
}

.wizon-consent__button:hover,
.wizon-consent__button:focus-visible,
.wizon-consent__close:hover,
.wizon-consent__close:focus-visible {
	border-color: #c52732;
	color: #c52732;
	transform: translateY(-1px);
}

.wizon-consent__button--primary {
	background: #c52732;
	border-color: #c52732;
	color: #fff;
}

.wizon-consent__button--primary:hover,
.wizon-consent__button--primary:focus-visible {
	background: #a91e28;
	border-color: #a91e28;
	color: #fff;
}

.wizon-consent__button--text {
	border-color: transparent;
	color: #147fca;
}

.wizon-consent__panel {
	border-radius: 24px;
	left: 50%;
	max-height: min(760px, calc(100vh - 48px));
	max-width: min(720px, calc(100vw - 48px));
	overflow: auto;
	padding: 30px;
	position: absolute;
	top: 50%;
	transform: translate(-50%, -50%);
	width: 100%;
}

.wizon-consent__panel-head {
	align-items: flex-start;
	display: flex;
	gap: 24px;
	justify-content: space-between;
}

.wizon-consent__close {
	align-items: center;
	border-radius: 50%;
	display: inline-flex;
	font-size: 25px;
	height: 42px;
	justify-content: center;
	min-height: 42px;
	padding: 0;
	width: 42px;
}

.wizon-consent__categories {
	border-top: 1px solid #e4e6e9;
	margin: 22px 0;
}

.wizon-consent__category {
	align-items: center;
	border-bottom: 1px solid #e4e6e9;
	cursor: pointer;
	display: grid;
	gap: 18px;
	grid-template-columns: minmax(0, 1fr) auto;
	padding: 17px 0;
	position: relative;
}

.wizon-consent__category strong,
.wizon-consent__category small {
	display: block;
}

.wizon-consent__category strong {
	font-size: 18px;
	margin-bottom: 3px;
}

.wizon-consent__category small {
	color: #666c73;
	font-size: 15px;
	line-height: 1.4;
}

	.wizon-consent__category input {
	height: 1px;
	top: 50%;
	left: auto;
	opacity: 0;
	position: absolute;
	right: 26px;
	width: 1px;
}

.wizon-consent__switch {
	background: #c9cdd2;
	border-radius: 999px;
	display: block;
	height: 28px;
	position: relative;
	transition: background-color 160ms ease;
	width: 50px;
}

.wizon-consent__switch::after {
	background: #fff;
	border-radius: 50%;
	box-shadow: 0 2px 5px rgb(0 0 0 / 20%);
	content: "";
	height: 22px;
	left: 3px;
	position: absolute;
	top: 3px;
	transition: transform 160ms ease;
	width: 22px;
}

.wizon-consent__category input:checked + .wizon-consent__switch {
	background: #147fca;
}

.wizon-consent__category input:checked + .wizon-consent__switch::after {
	transform: translateX(22px);
}

.wizon-consent__category input:focus-visible + .wizon-consent__switch {
	outline: 3px solid rgb(20 127 202 / 28%);
	outline-offset: 3px;
}

.wizon-consent__category input:disabled + .wizon-consent__switch {
	background: #147fca;
	opacity: 0.65;
}

@media (max-width: 780px) {
	.wizon-consent__banner {
		border-radius: 18px;
		bottom: 12px;
		gap: 20px;
		grid-template-columns: 1fr;
		max-height: calc(100vh - 24px);
		max-width: calc(100vw - 24px);
		overflow: auto;
		padding: 22px;
	}

	.wizon-consent__actions,
	.wizon-consent__panel-actions {
		display: grid;
		grid-template-columns: 1fr;
		max-width: none;
		width: 100%;
	}

	.wizon-consent__button {
		width: 100%;
	}

	.wizon-consent__panel {
		border-radius: 18px;
		max-height: calc(100vh - 24px);
		max-width: calc(100vw - 24px);
		padding: 22px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.wizon-consent *,
	.wizon-consent *::before,
	.wizon-consent *::after {
		scroll-behavior: auto !important;
		transition: none !important;
	}
}
