.wighz-consent,
.wighz-consent *,
.wighz-consent-reopen,
.wighz-consent-reopen * {
	box-sizing: border-box;
}

.wighz-test-mode {
	position: fixed;
	z-index: 1000000;
	right: 16px;
	top: 46px;
	display: flex;
	flex-direction: column;
	gap: 2px;
	max-width: min(420px, calc(100vw - 32px));
	padding: 10px 14px;
	border: 1px solid rgba(242, 106, 33, .35);
	border-radius: 12px;
	background: #fff3eb;
	box-shadow: 0 8px 24px rgba(38, 29, 72, .14);
	color: #585858;
	font: 500 12px/1.4 Poppins, system-ui, sans-serif;
}

.wighz-test-mode strong { color: #4d3f93; font-size: 13px; }

.wighz-consent[hidden],
.wighz-consent-reopen[hidden],
.wighz-consent__overview[hidden],
.wighz-consent__preferences[hidden],
.wighz-consent__close[hidden] {
	display: none !important;
}

html.wighz-consent-open,
html.wighz-consent-open body {
	overflow: hidden;
}

.wighz-consent {
	position: fixed;
	z-index: 999999;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 20px;
	color: #403d4b;
	font-family: Poppins, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.wighz-consent__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(28, 24, 48, .58);
	backdrop-filter: blur(3px);
	-webkit-backdrop-filter: blur(3px);
	animation: wighz-consent-fade .2s ease-out both;
}

.wighz-consent__dialog {
	position: relative;
	width: min(660px, 100%);
	max-height: calc(100dvh - 40px);
	overflow: auto;
	border: 1px solid rgba(77, 63, 147, .12);
	border-radius: 18px;
	background: #fff;
	box-shadow: 0 28px 90px rgba(23, 18, 51, .3);
	animation: wighz-consent-enter .24s cubic-bezier(.2, .75, .25, 1) both;
	scrollbar-width: thin;
	scrollbar-color: #c7c0e6 transparent;
}

.wighz-consent__header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	min-height: 68px;
	padding: 18px 24px 12px;
}

.wighz-consent__brand {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	color: #4d3f93;
	font-size: 13px;
	font-weight: 700;
	letter-spacing: -.01em;
}

.wighz-consent__brandmark {
	display: grid;
	width: 34px;
	height: 34px;
	place-items: center;
	border-radius: 10px;
	background: #f1eff9;
}

.wighz-consent__brandmark svg,
.wighz-consent-reopen svg {
	width: 22px;
	height: 22px;
	fill: none;
	stroke: currentColor;
	stroke-linecap: round;
	stroke-linejoin: round;
	stroke-width: 1.8;
}

.wighz-consent__close,
.wighz-consent__back {
	display: grid;
	flex: 0 0 auto;
	width: 40px;
	height: 40px;
	padding: 0;
	place-items: center;
	border: 1px solid #e2deef;
	border-radius: 50%;
	background: #fff;
	color: #4d3f93;
	cursor: pointer;
}

.wighz-consent__close svg,
.wighz-consent__back svg {
	width: 20px;
	height: 20px;
	fill: none;
	stroke: currentColor;
	stroke-linecap: round;
	stroke-width: 2;
}

.wighz-consent__overview,
.wighz-consent__preferences {
	padding: 10px 32px 26px;
}

.wighz-consent__copy {
	max-width: 570px;
}

.wighz-consent__eyebrow {
	margin: 0 0 7px !important;
	color: #f26a21;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: .09em;
	line-height: 1.4;
	text-transform: uppercase;
}

.wighz-consent h2 {
	margin: 0 0 12px;
	color: #2d2749;
	font-size: clamp(24px, 4vw, 32px);
	font-weight: 700;
	letter-spacing: -.035em;
	line-height: 1.16;
}

.wighz-consent p:not(.wighz-consent__eyebrow) {
	margin: 0;
	font-size: 14px;
	line-height: 1.7;
}

.wighz-consent__summary {
	display: flex;
	flex-wrap: wrap;
	gap: 8px 18px;
	margin: 20px 0 24px;
	padding: 0;
	list-style: none;
}

.wighz-consent__summary li {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	margin: 0;
	color: #625e6d;
	font-size: 12px;
	font-weight: 600;
}

.wighz-consent__summary i {
	width: 8px;
	height: 8px;
	border: 2px solid #aaa3c5;
	border-radius: 50%;
	background: #fff;
}

.wighz-consent__summary i.is-required {
	border-color: #4d3f93;
	background: #4d3f93;
}

.wighz-consent__actions,
.wighz-consent__preference-actions {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 10px;
}

.wighz-consent__button {
	min-height: 48px;
	padding: 11px 15px;
	border: 1.5px solid #4d3f93;
	border-radius: 10px;
	background: #fff;
	color: #4d3f93;
	cursor: pointer;
	font: 600 13px/1.3 Poppins, system-ui, sans-serif;
	text-align: center;
	transition: background .16s ease, border-color .16s ease, box-shadow .16s ease, color .16s ease, transform .16s ease;
}

.wighz-consent__button:hover {
	background: #f4f2fa;
}

.wighz-consent__button--accept {
	border-color: #16834f;
	background: #16834f;
	color: #fff;
	box-shadow: 0 7px 18px rgba(22, 131, 79, .22);
}

.wighz-consent__button--accept:hover {
	border-color: #106b40;
	background: #106b40;
}

.wighz-consent__button--custom,
.wighz-consent__button--primary {
	border-color: #4d3f93;
	background: #4d3f93;
	color: #fff;
	box-shadow: 0 7px 18px rgba(77, 63, 147, .2);
}

.wighz-consent__button--custom:hover,
.wighz-consent__button--primary:hover {
	border-color: #3f3479;
	background: #3f3479;
}

.wighz-consent__button--reject {
	border-color: #f26a21;
	background: #fff7f2;
	color: #b8480c;
}

.wighz-consent__button--reject:hover {
	border-color: #dd5914;
	background: #ffeadf;
	color: #953807;
}

.wighz-consent button:focus-visible,
.wighz-consent a:focus-visible,
.wighz-consent-reopen:focus-visible,
.wighz-consent input:focus-visible + span {
	outline: 3px solid rgba(242, 106, 33, .38);
	outline-offset: 3px;
}

.wighz-consent__preferences-heading {
	display: flex;
	align-items: flex-start;
	gap: 14px;
}

.wighz-consent__preferences-heading h2 {
	margin-bottom: 4px;
	font-size: 25px;
}

.wighz-consent__back {
	margin-top: 1px;
}

.wighz-consent__preferences-intro {
	margin: 10px 0 18px !important;
	color: #625e6d;
}

.wighz-consent__categories {
	display: grid;
	gap: 10px;
}

.wighz-consent__category {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	gap: 20px;
	align-items: center;
	min-height: 88px;
	padding: 16px 18px;
	border: 1px solid #e4e1ed;
	border-radius: 12px;
	background: #fff;
	cursor: pointer;
}

.wighz-consent__category:hover {
	border-color: #c8c1e4;
	background: #fbfafe;
}

.wighz-consent__category.is-required {
	background: #f7f6fb;
	cursor: default;
}

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

.wighz-consent__category strong {
	margin-bottom: 4px;
	color: #302a4b;
	font-size: 14px;
}

.wighz-consent__category small {
	max-width: 430px;
	color: #6b6775;
	font-size: 11px;
	line-height: 1.55;
}

.wighz-consent__toggle {
	display: grid;
	justify-items: end;
	gap: 4px;
	position: relative;
}

.wighz-consent__toggle input {
	position: absolute;
	width: 1px;
	height: 1px;
	op: 0;
	right: 0;
	opacity: 0;
}

.wighz-consent__toggle > span {
	position: relative;
	width: 44px;
	height: 24px;
	border-radius: 999px;
	background: #c9c5d3;
	box-shadow: inset 0 0 0 1px rgba(50, 45, 68, .08);
	transition: background .18s ease;
}

.wighz-consent__toggle > span::after {
	position: absolute;
	top: 3px;
	left: 3px;
	width: 18px;
	height: 18px;
	border-radius: 50%;
	background: #fff;
	box-shadow: 0 1px 4px rgba(29, 24, 49, .25);
	content: "";
	transition: transform .18s ease;
}

.wighz-consent__toggle input:checked + span {
	background: #4d3f93;
}

.wighz-consent__toggle input:checked + span::after {
	transform: translateX(20px);
}

.wighz-consent__toggle em {
	color: #797581;
	font-size: 9px;
	font-style: normal;
	font-weight: 600;
}

.wighz-consent__preference-actions {
	grid-template-columns: 1fr 1fr;
	margin-top: 16px;
}

.wighz-consent__footer {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	padding: 14px 32px 17px;
	border-top: 1px solid #ece9f2;
	background: #faf9fc;
	color: #77727f;
	font-size: 10px;
	line-height: 1.5;
}

.wighz-consent__footer a {
	color: #4d3f93;
	font-weight: 600;
	text-decoration: underline;
	text-underline-offset: 2px;
}

.wighz-consent-reopen {
	position: fixed;
	z-index: 99998;
	left: 16px;
	bottom: 16px;
	display: grid;
	width: 46px;
	height: 46px;
	padding: 0;
	place-items: center;
	border: 1px solid rgba(77, 63, 147, .22);
	border-radius: 50%;
	background: #fff;
	box-shadow: 0 8px 24px rgba(38, 29, 72, .18);
	color: #4d3f93;
	cursor: pointer;
	font: 600 11px/1.2 Poppins, system-ui, sans-serif;
	transition: box-shadow .16s ease, transform .16s ease;
}

.wighz-consent-reopen:hover {
	box-shadow: 0 10px 28px rgba(38, 29, 72, .25);
	transform: translateY(-2px);
}

.wighz-consent-reopen > span {
	position: absolute;
	left: 54px;
	width: max-content;
	max-width: 180px;
	padding: 7px 9px;
	border-radius: 6px;
	background: #2d2749;
	color: #fff;
	opacity: 0;
	pointer-events: none;
	transform: translateX(-4px);
	transition: opacity .16s ease, transform .16s ease;
}

.wighz-consent-reopen:hover > span,
.wighz-consent-reopen:focus-visible > span {
	opacity: 1;
	transform: translateX(0);
}

@keyframes wighz-consent-fade {
	from { opacity: 0; }
	to { opacity: 1; }
}

@keyframes wighz-consent-enter {
	from { opacity: 0; transform: translateY(12px) scale(.985); }
	to { opacity: 1; transform: translateY(0) scale(1); }
}

@media (max-width: 680px) {
	.wighz-test-mode { top: 58px; }

	.wighz-consent {
		align-items: flex-end;
		padding: 10px;
	}

	.wighz-consent__dialog {
		width: 100%;
		max-height: calc(100dvh - 20px);
		border-radius: 16px;
	}

	.wighz-consent__header {
		min-height: 60px;
		padding: 14px 18px 8px;
	}

	.wighz-consent__overview,
	.wighz-consent__preferences {
		padding: 8px 18px 20px;
	}

	.wighz-consent h2 {
		font-size: 25px;
	}

	.wighz-consent__summary {
		margin: 16px 0 19px;
	}

	.wighz-consent__actions {
		grid-template-columns: 1fr;
	}

	.wighz-consent__category {
		gap: 12px;
		min-height: 82px;
		padding: 14px;
	}

	.wighz-consent__footer {
		align-items: flex-start;
		flex-direction: column;
		gap: 4px;
		padding: 12px 18px 14px;
	}

	.wighz-consent-reopen {
		left: 12px;
		bottom: 12px;
	}
}

@media (max-width: 420px) {
	.wighz-consent__preference-actions {
		grid-template-columns: 1fr;
	}

	.wighz-consent__preferences-heading h2 {
		font-size: 22px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.wighz-consent__backdrop,
	.wighz-consent__dialog {
		animation: none;
	}

	.wighz-consent *,
	.wighz-consent-reopen,
	.wighz-consent-reopen * {
		scroll-behavior: auto !important;
		transition-duration: .01ms !important;
	}
}
