:root {
	--tag-consent-bg: #ffffff;
	--tag-consent-text: #172033;
	--tag-consent-muted: #5d6675;
	--tag-consent-border: rgba(23, 32, 51, 0.14);
	--tag-consent-accent: #173e6f;
	--tag-consent-accent-contrast: #ffffff;
	--tag-consent-shadow: 0 18px 60px rgba(0, 0, 0, 0.18);
	--tag-consent-radius: 16px;
}

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

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

.tag-consent {
	position: relative;
	z-index: 999990;
	font-family: inherit;
	color: var(--tag-consent-text);
}

.tag-consent__banner {
	position: fixed;
	left: 20px;
	right: 20px;
	bottom: 20px;
	z-index: 999992;
	max-width: 1180px;
	margin: 0 auto;
	background: var(--tag-consent-bg);
	border: 1px solid var(--tag-consent-border);
	border-radius: var(--tag-consent-radius);
	box-shadow: var(--tag-consent-shadow);
}

.tag-consent__banner-inner {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	gap: 28px;
	align-items: center;
	padding: 22px;
}

.tag-consent__copy {
	max-width: 780px;
}

.tag-consent__title,
.tag-consent__modal h2,
.tag-consent__category h3 {
	margin: 0;
	color: var(--tag-consent-text);
	font-family: inherit;
	line-height: 1.2;
}

.tag-consent__title {
	font-size: clamp(1.15rem, 2vw, 1.45rem);
}

.tag-consent__copy p,
.tag-consent__intro,
.tag-consent__category p {
	margin: 8px 0 0;
	color: var(--tag-consent-muted);
	font-size: 0.95rem;
	line-height: 1.55;
}

.tag-consent__actions,
.tag-consent__modal-actions {
	display: flex;
	gap: 10px;
	align-items: center;
	flex-wrap: wrap;
	justify-content: flex-end;
}

.tag-consent__button,
.tag-consent-settings-link {
	appearance: none;
	border: 1px solid var(--tag-consent-border);
	border-radius: 10px;
	background: #fff;
	color: var(--tag-consent-text);
	cursor: pointer;
	font: inherit;
	font-weight: 700;
	line-height: 1;
	padding: 12px 16px;
	text-decoration: none;
	transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}

.tag-consent__button:hover,
.tag-consent-settings-link:hover {
	transform: translateY(-1px);
	border-color: rgba(23, 62, 111, 0.45);
}

.tag-consent__button:focus-visible,
.tag-consent-settings-link:focus-visible,
.tag-consent__close:focus-visible,
.tag-consent__switch input:focus-visible + span {
	outline: 3px solid rgba(23, 62, 111, 0.28);
	outline-offset: 3px;
}

.tag-consent__button--primary {
	background: var(--tag-consent-accent);
	border-color: var(--tag-consent-accent);
	color: var(--tag-consent-accent-contrast);
}

.tag-consent__button--text {
	border-color: transparent;
	background: transparent;
	color: var(--tag-consent-accent);
}

.tag-consent__privacy-link {
	display: inline-flex;
	margin-top: 8px;
	color: var(--tag-consent-accent);
	font-size: 0.9rem;
	font-weight: 700;
	text-underline-offset: 3px;
}

.tag-consent__backdrop {
	position: fixed;
	inset: 0;
	z-index: 999993;
	background: rgba(6, 13, 25, 0.58);
	backdrop-filter: blur(3px);
}

.tag-consent__modal {
	position: fixed;
	z-index: 999994;
	top: 50%;
	left: 50%;
	width: min(680px, calc(100vw - 32px));
	max-height: min(760px, calc(100vh - 32px));
	transform: translate(-50%, -50%);
	overflow: auto;
	background: var(--tag-consent-bg);
	border: 1px solid var(--tag-consent-border);
	border-radius: var(--tag-consent-radius);
	box-shadow: var(--tag-consent-shadow);
}

.tag-consent__modal-head,
.tag-consent__modal-foot {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 18px;
	padding: 20px 22px;
}

.tag-consent__modal-head {
	border-bottom: 1px solid var(--tag-consent-border);
}

.tag-consent__modal-foot {
	border-top: 1px solid var(--tag-consent-border);
}

.tag-consent__eyebrow {
	margin: 0 0 5px;
	color: var(--tag-consent-accent);
	font-size: 0.72rem;
	font-weight: 800;
	letter-spacing: .09em;
	text-transform: uppercase;
}

.tag-consent__modal h2 {
	font-size: 1.45rem;
}

.tag-consent__close {
	width: 40px;
	height: 40px;
	border: 0;
	border-radius: 999px;
	background: rgba(23, 32, 51, 0.06);
	color: var(--tag-consent-text);
	cursor: pointer;
	font-size: 1.7rem;
	line-height: 1;
}

.tag-consent__modal-body {
	padding: 20px 22px;
}

.tag-consent__intro {
	margin-top: 0;
	margin-bottom: 18px;
}

.tag-consent__category {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
	padding: 16px 0;
	border-top: 1px solid var(--tag-consent-border);
}

.tag-consent__category:first-of-type {
	border-top: 0;
}

.tag-consent__category h3 {
	font-size: 1rem;
}

.tag-consent__category p {
	max-width: 510px;
	font-size: .88rem;
}

.tag-consent__always {
	flex: 0 0 auto;
	padding: 6px 9px;
	border-radius: 999px;
	background: rgba(23, 62, 111, 0.09);
	color: var(--tag-consent-accent);
	font-size: .75rem;
	font-weight: 800;
	white-space: nowrap;
}

.tag-consent__switch {
	position: relative;
	flex: 0 0 auto;
	width: 48px;
	height: 28px;
}

.tag-consent__switch input {
	position: absolute;
	opacity: 0;
	width: 1px;
	height: 1px;
}

.tag-consent__switch span {
	position: absolute;
	inset: 0;
	cursor: pointer;
	border-radius: 999px;
	background: #c9ced6;
	transition: background .18s ease;
}

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

.tag-consent__switch input:checked + span {
	background: var(--tag-consent-accent);
}

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


.tag-consent__status {
	position: fixed;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
}

.tag-consent-settings-link {
	padding: 0;
	border: 0;
	background: transparent;
	color: inherit;
	font-weight: inherit;
	text-decoration: underline;
	text-underline-offset: 3px;
}

@media (max-width: 760px) {
	.tag-consent__banner {
		left: 10px;
		right: 10px;
		bottom: 10px;
	}

	.tag-consent__banner-inner {
		grid-template-columns: 1fr;
		gap: 16px;
		padding: 18px;
	}

	.tag-consent__actions {
		justify-content: stretch;
	}

	.tag-consent__actions .tag-consent__button {
		flex: 1 1 auto;
	}

	.tag-consent__modal {
		top: auto;
		left: 8px;
		right: 8px;
		bottom: 8px;
		width: auto;
		max-height: calc(100vh - 16px);
		transform: none;
	}

	.tag-consent__modal-head,
	.tag-consent__modal-body,
	.tag-consent__modal-foot {
		padding-left: 18px;
		padding-right: 18px;
	}

	.tag-consent__modal-foot {
		align-items: flex-start;
		flex-direction: column;
	}

	.tag-consent__modal-actions {
		width: 100%;
		justify-content: stretch;
	}

	.tag-consent__modal-actions .tag-consent__button {
		flex: 1 1 auto;
	}

}

@media (prefers-reduced-motion: reduce) {
	.tag-consent__button,
	.tag-consent__switch span,
	.tag-consent__switch span::after {
		transition: none;
	}
}
