.tpx-consent {
	--tpx-consent-blue: var(--tpx-color-primary, #075f9d);
	--tpx-consent-green: var(--tpx-color-success, #4f9e43);
	--tpx-consent-ink: var(--tpx-color-ink, #17364a);
	--tpx-consent-muted: #587181;
	--tpx-consent-border: #c9d8e1;
	font-family: inherit;
}

.tpx-consent__banner[hidden],
.tpx-consent__manage[hidden],
.tpx-consent__preferences[hidden] {
	display: none !important;
}

.tpx-consent__banner {
	background: #fff;
	border: 1px solid var(--tpx-consent-border);
	border-top: 3px solid var(--tpx-consent-blue);
	border-radius: 10px;
	bottom: 14px;
	box-shadow: 0 18px 48px rgba(15, 53, 75, .18);
	color: var(--tpx-consent-ink);
	left: 50%;
	max-height: calc(100dvh - 28px);
	overflow: auto;
	padding: clamp(18px, 2.4vw, 26px);
	position: fixed;
	transform: translate3d(-50%, 12px, 0);
	width: min(calc(100% - 28px), 1120px);
	z-index: 100100;
}

.tpx-consent__banner.is-visible {
	transform: translate3d(-50%, 0, 0);
}

.tpx-consent__content {
	align-items: center;
	display: grid;
	gap: clamp(18px, 3vw, 34px);
	grid-template-columns: minmax(0, 1fr) minmax(260px, .58fr);
}

.tpx-consent__copy,
.tpx-consent__actions {
	min-width: 0;
}

.tpx-consent__title {
	color: var(--tpx-consent-blue);
	font-size: clamp(1.18rem, 1.7vw, 1.45rem);
	font-weight: 600;
	letter-spacing: normal;
	line-height: 1.2;
	margin: 0 0 7px;
	outline: 0;
}

.tpx-consent__message {
	color: var(--tpx-consent-ink);
	font-size: .95rem;
	line-height: 1.52;
	margin: 0;
	max-width: 68ch;
}

.tpx-consent__policy {
	color: var(--tpx-consent-blue);
	display: inline-block;
	font-size: .86rem;
	font-weight: 600;
	margin-top: 8px;
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: 3px;
}

.tpx-consent__actions {
	display: grid;
	gap: 9px;
	grid-template-columns: 1fr 1fr;
}

.tpx-consent__button,
.tpx-consent__choose,
.tpx-consent__manage,
.tpx-consent-link {
	-webkit-appearance: none;
	appearance: none;
	border-radius: 7px;
	cursor: pointer;
	font-family: inherit;
	font-size: .92rem;
	font-weight: 600;
	line-height: 1.2;
	min-height: 44px;
	text-align: center;
}

.tpx-consent__button {
	border: 1px solid transparent;
	padding: .72rem .9rem;
}

.tpx-consent__button--primary {
	background: var(--tpx-consent-green);
	border-color: var(--tpx-consent-green);
	color: #fff;
}

.tpx-consent__button--secondary {
	background: #fff;
	border-color: var(--tpx-consent-blue);
	color: var(--tpx-consent-blue);
}

.tpx-consent__choose {
	background: transparent;
	border: 0;
	color: var(--tpx-consent-blue);
	grid-column: 1 / -1;
	min-height: 34px;
	padding: .35rem;
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: 3px;
}

.tpx-consent__button:hover,
.tpx-consent__choose:hover,
.tpx-consent__policy:hover,
.tpx-consent__manage:hover,
.tpx-consent-link:hover {
	filter: brightness(.96);
}

.tpx-consent__button:active,
.tpx-consent__choose:active,
.tpx-consent__manage:active,
.tpx-consent-link:active {
	transform: translateY(1px);
}

.tpx-consent__button:focus-visible,
.tpx-consent__choose:focus-visible,
.tpx-consent__policy:focus-visible,
.tpx-consent__manage:focus-visible,
.tpx-consent-link:focus-visible,
.tpx-consent__switch input:focus-visible + span {
	outline: 3px solid var(--tpx-consent-green);
	outline-offset: 2px;
}

.tpx-consent__preferences {
	border-top: 1px solid var(--tpx-consent-border);
	display: grid;
	gap: 0;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	margin-top: 18px;
	padding-top: 8px;
}

.tpx-consent__choice {
	align-items: center;
	border-right: 1px solid var(--tpx-consent-border);
	display: flex;
	gap: 14px;
	justify-content: space-between;
	margin: 10px 0;
	min-width: 0;
	padding: 2px 18px;
}

.tpx-consent__choice:first-child {
	padding-left: 0;
}

.tpx-consent__choice:nth-child(3) {
	border-right: 0;
}

.tpx-consent__choice strong,
.tpx-consent__choice span span {
	display: block;
}

.tpx-consent__choice strong {
	color: var(--tpx-consent-ink);
	font-size: .91rem;
	font-weight: 600;
	margin-bottom: 3px;
}

.tpx-consent__choice span span {
	color: var(--tpx-consent-muted);
	font-size: .78rem;
	line-height: 1.35;
}

.tpx-consent__always {
	color: var(--tpx-consent-blue);
	font-size: .75rem;
	font-weight: 600;
	white-space: nowrap;
}

.tpx-consent__switch {
	display: inline-grid;
	flex: 0 0 auto;
	position: relative;
}

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

.tpx-consent__switch > span {
	background: #d7e0e5;
	border-radius: 999px;
	display: block;
	height: 26px;
	position: relative;
	width: 46px;
}

.tpx-consent__switch > span::after {
	background: #fff;
	border-radius: 50%;
	box-shadow: 0 1px 3px rgba(15, 53, 75, .28);
	content: '';
	height: 20px;
	left: 3px;
	position: absolute;
	top: 3px;
	transform: translate3d(0, 0, 0);
	width: 20px;
}

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

.tpx-consent__switch input:checked + span::after {
	transform: translate3d(20px, 0, 0);
}

.tpx-consent__save {
	align-self: center;
	grid-column: 1 / -1;
	justify-self: end;
	min-width: 180px;
}

.tpx-consent__manage {
	background: #fff;
	border: 1px solid var(--tpx-consent-border);
	bottom: 12px;
	box-shadow: 0 8px 24px rgba(15, 53, 75, .12);
	color: var(--tpx-consent-blue);
	left: 12px;
	min-height: 38px;
	padding: .55rem .78rem;
	position: fixed;
	z-index: 100090;
}

.tpx-consent-link {
	background: transparent;
	border: 0;
	color: inherit;
	min-height: 0;
	padding: 0;
	text-decoration: underline;
}

@media (prefers-reduced-motion: no-preference) {
	.tpx-consent__banner,
	.tpx-consent__switch > span,
	.tpx-consent__switch > span::after {
		transition: opacity .18s ease, transform .18s cubic-bezier(.16, 1, .3, 1), background-color .18s ease;
	}

	.tpx-consent__banner:not(.is-visible) {
		opacity: 0;
	}
}

@media (max-width: 820px) {
	.tpx-consent__content,
	.tpx-consent__preferences {
		grid-template-columns: 1fr;
	}

	.tpx-consent__preferences {
		padding-top: 4px;
	}

	.tpx-consent__choice,
	.tpx-consent__choice:first-child {
		border-bottom: 1px solid var(--tpx-consent-border);
		border-right: 0;
		margin: 0;
		padding: 12px 0;
	}

	.tpx-consent__choice:nth-child(3) {
		border-bottom: 0;
	}

	.tpx-consent__save {
		justify-self: stretch;
		margin-top: 8px;
	}
}

@media (max-width: 520px) {
	.tpx-consent__banner {
		border-radius: 10px 10px 0 0;
		bottom: 0;
		max-height: min(88dvh, 720px);
		padding: 18px 16px calc(16px + env(safe-area-inset-bottom));
		width: 100%;
	}

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

	.tpx-consent__choose {
		grid-column: auto;
	}

	.tpx-consent__manage {
		bottom: calc(8px + env(safe-area-inset-bottom));
		left: 8px;
	}
}
