.tlab-cookie-banner {
	position: fixed;
	z-index: 1100;
	right: 18px;
	bottom: 18px;
	left: 18px;
	box-sizing: border-box;
	width: min(850px, calc(100% - 36px));
	max-height: calc(100dvh - 36px);
	margin-inline: auto;
	overflow-y: auto;
	color: var(--wp--preset--color--contrast, #101513);
	background: var(--wp--preset--color--base, #fff);
	border: 1px solid var(--wp--preset--color--border, #dfe4e1);
	border-radius: var(--wp--custom--radius--lg, 12px);
	box-shadow: 0 22px 70px rgb(16 21 19 / 18%);
}

.tlab-cookie-banner[hidden],
.tlab-cookie-banner [hidden] {
	display: none !important;
}

.tlab-cookie-banner__summary {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	padding: 18px;
}

.tlab-cookie-banner__copy {
	max-width: 500px;
}

.tlab-cookie-banner__eyebrow {
	margin: 0 0 5px;
	color: var(--wp--preset--color--primary-dark, #087f75);
	font-size: 0.72rem;
	font-weight: 800;
	letter-spacing: 0.1em;
	text-transform: uppercase;
}

.tlab-cookie-banner h2,
.tlab-cookie-banner h3,
.tlab-cookie-banner p {
	font-family: inherit;
}

.tlab-cookie-banner h2 {
	margin: 0;
	font-size: clamp(1.25rem, 2.3vw, 1.65rem);
	letter-spacing: -0.025em;
}

.tlab-cookie-banner h3 {
	margin: 0 0 4px;
	font-size: 1rem;
}

.tlab-cookie-banner__description,
.tlab-cookie-banner__category-copy {
	margin: 7px 0 0;
	color: var(--wp--preset--color--muted, #5f6c67);
	font-size: 0.84rem;
	line-height: 1.5;
}

.tlab-cookie-banner a {
	color: var(--wp--preset--color--primary-dark, #087f75);
	font-weight: 700;
}

.tlab-cookie-banner__actions,
.tlab-cookie-banner__preferences-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.tlab-cookie-banner__actions {
	justify-content: flex-end;
	min-width: 312px;
}

.tlab-cookie-banner__button,
.tlab-cookie-banner__close {
	appearance: none;
	font: inherit;
	cursor: pointer;
}

.tlab-cookie-banner__button {
	min-height: 42px;
	padding: 10px 15px;
	border: 1px solid transparent;
	border-radius: var(--wp--custom--radius--pill, 999px);
	font-size: 0.82rem;
	font-weight: 800;
	line-height: 1.1;
}

.tlab-cookie-banner__button--primary {
	color: var(--wp--preset--color--primary-contrast, #062f2b);
	background: var(--wp--preset--color--primary, #2ec4b6);
	border-color: var(--wp--preset--color--primary, #2ec4b6);
}

.tlab-cookie-banner__button--secondary {
	color: var(--wp--preset--color--contrast, #101513);
	background: var(--wp--preset--color--base, #fff);
	border-color: var(--wp--preset--color--contrast, #101513);
}

.tlab-cookie-banner__button--ghost {
	color: var(--wp--preset--color--contrast, #101513);
	background: var(--wp--preset--color--surface, #f4f7f5);
	border-color: var(--wp--preset--color--border, #dfe4e1);
}

.tlab-cookie-banner__button:hover {
	transform: translateY(-1px);
}

.tlab-cookie-banner__preferences {
	padding: 20px;
}

.tlab-cookie-banner__preferences-head {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 20px;
	padding-bottom: 16px;
	border-bottom: 1px solid var(--wp--preset--color--border, #dfe4e1);
}

.tlab-cookie-banner__close {
	display: grid;
	flex: 0 0 40px;
	width: 40px;
	height: 40px;
	padding: 0;
	color: inherit;
	background: transparent;
	border: 1px solid var(--wp--preset--color--border, #dfe4e1);
	border-radius: 50%;
	font-size: 1.5rem;
	line-height: 1;
	place-items: center;
}

.tlab-cookie-banner__category {
	display: grid;
	grid-template-columns: 1fr auto;
	align-items: center;
	gap: 24px;
	padding: 18px 0;
	border-bottom: 1px solid var(--wp--preset--color--border, #dfe4e1);
}

.tlab-cookie-banner__category--optional {
	cursor: pointer;
}

.tlab-cookie-banner__required {
	padding: 7px 10px;
	color: var(--wp--preset--color--primary-dark, #087f75);
	background: color-mix(in srgb, var(--wp--preset--color--primary, #2ec4b6) 14%, transparent);
	border-radius: var(--wp--custom--radius--pill, 999px);
	font-size: 0.74rem;
	font-weight: 800;
	white-space: nowrap;
}

.tlab-cookie-banner__switch {
	position: relative;
	display: inline-flex;
}

.tlab-cookie-banner__switch input {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip-path: inset(50%);
}

.tlab-cookie-banner__switch span {
	position: relative;
	display: block;
	width: 50px;
	height: 28px;
	background: var(--wp--preset--color--border, #dfe4e1);
	border-radius: 999px;
	transition: background 160ms ease;
}

.tlab-cookie-banner__switch span::after {
	content: "";
	position: absolute;
	top: 3px;
	left: 3px;
	width: 22px;
	height: 22px;
	background: var(--wp--preset--color--base, #fff);
	border-radius: 50%;
	box-shadow: 0 2px 5px rgb(16 21 19 / 18%);
	transition: transform 160ms ease;
}

.tlab-cookie-banner__switch input:checked + span {
	background: var(--wp--preset--color--primary, #2ec4b6);
}

.tlab-cookie-banner__switch input:checked + span::after {
	transform: translateX(22px);
}

.tlab-cookie-banner__button:focus-visible,
.tlab-cookie-banner__close:focus-visible,
.tlab-cookie-banner__switch input:focus-visible + span {
	outline: 3px solid color-mix(in srgb, var(--wp--preset--color--primary, #2ec4b6) 38%, transparent);
	outline-offset: 2px;
}

.tlab-cookie-banner__preferences-actions {
	justify-content: flex-end;
	padding-top: 18px;
}

.tlab-cookie-noscript {
	position: fixed;
	z-index: 1100;
	right: 18px;
	bottom: 18px;
	left: 18px;
	width: min(720px, calc(100% - 36px));
	margin: auto;
	padding: 14px 18px;
	background: #fff;
	border: 1px solid #dfe4e1;
	border-radius: 12px;
	box-shadow: 0 18px 55px rgb(16 21 19 / 18%);
}

.tlab-legal-hero {
	box-sizing: border-box;
	padding: clamp(64px, 9vw, 118px) var(--wp--style--root--padding-right, 24px);
	background:
		linear-gradient(115deg, rgb(46 196 182 / 13%), transparent 48%),
		var(--wp--preset--color--surface, #f4f7f5);
	border-bottom: 1px solid var(--wp--preset--color--border, #dfe4e1);
}

.tlab-legal-hero > * {
	width: min(100%, var(--wp--style--global--wide-size, 1200px));
	margin-right: auto;
	margin-left: auto;
}

.tlab-legal-eyebrow {
	margin-bottom: 12px;
	color: var(--wp--preset--color--primary-dark, #087f75);
	font-size: var(--wp--preset--font-size--small, 0.84rem);
	font-weight: 800;
	letter-spacing: 0.12em;
	text-transform: uppercase;
}

.tlab-legal-hero h1 {
	max-width: 850px;
	margin-top: 0;
	margin-bottom: 18px;
	font-size: clamp(2.45rem, 6vw, 5.3rem);
	line-height: 0.98;
	letter-spacing: -0.055em;
}

.tlab-legal-lead {
	max-width: 720px;
	margin: 0;
	color: var(--wp--preset--color--muted, #5f6c67);
	font-size: clamp(1.05rem, 2vw, 1.3rem);
	line-height: 1.6;
}

.tlab-legal-content {
	box-sizing: border-box;
	padding: clamp(48px, 7vw, 92px) var(--wp--style--root--padding-right, 24px);
}

.tlab-legal-content > * {
	width: min(100%, 820px);
	margin-right: auto;
	margin-left: auto;
}

.tlab-legal-content h2 {
	margin-top: 2.5em;
	margin-bottom: 0.65em;
	font-size: clamp(1.5rem, 3vw, 2rem);
	letter-spacing: -0.03em;
}

.tlab-legal-content p,
.tlab-legal-content li {
	color: color-mix(in srgb, var(--wp--preset--color--contrast, #101513) 78%, transparent);
	line-height: 1.75;
}

.tlab-legal-content a {
	color: var(--wp--preset--color--primary-dark, #087f75);
	font-weight: 700;
}

.tlab-legal-notice {
	box-sizing: border-box;
	padding: 18px 20px;
	background: color-mix(in srgb, var(--wp--preset--color--primary, #2ec4b6) 10%, var(--wp--preset--color--base, #fff));
	border: 1px solid color-mix(in srgb, var(--wp--preset--color--primary, #2ec4b6) 35%, transparent);
	border-radius: var(--wp--custom--radius--lg, 12px);
}

.tlab-legal-notice p {
	margin: 0;
	color: var(--wp--preset--color--contrast, #101513);
}

.tlab-legal-updated {
	font-size: var(--wp--preset--font-size--small, 0.84rem);
}

.tlab-legal-table {
	margin-top: 24px;
	margin-bottom: 32px;
	overflow-x: auto;
}

.tlab-legal-table table {
	width: 100%;
	border-collapse: collapse;
	font-size: 0.92rem;
}

.tlab-legal-table th,
.tlab-legal-table td {
	padding: 14px;
	text-align: left;
	vertical-align: top;
	border: 1px solid var(--wp--preset--color--border, #dfe4e1);
}

.tlab-legal-table th {
	color: var(--wp--preset--color--contrast, #101513);
	background: var(--wp--preset--color--surface, #f4f7f5);
}

@media (max-width: 760px) {

	html.has-tlab-cookie-dialog {
		overflow: hidden;
	}

	html.has-tlab-cookie-dialog body::before {
		content: "";
		position: fixed;
		z-index: 1099;
		inset: 0;
		background: rgb(6 35 33 / 42%);
		backdrop-filter: blur(2px);
		pointer-events: none;
	}

	.tlab-cookie-banner {
		right: 0;
		bottom: 0;
		left: 0;
		width: 100%;
		max-height: min(88dvh, 720px);
		margin: 0;
		padding-bottom: env(safe-area-inset-bottom, 0);
		overscroll-behavior: contain;
		-webkit-overflow-scrolling: touch;
		border-right: 0;
		border-bottom: 0;
		border-left: 0;
		border-radius: 22px 22px 0 0;
		box-shadow: 0 -18px 60px rgb(6 35 33 / 24%);
	}

	.tlab-cookie-banner::before {
		content: "";
		display: block;
		width: 42px;
		height: 4px;
		margin: 10px auto 0;
		background: var(--wp--preset--color--border, #dfe4e1);
		border-radius: 999px;
	}

	.tlab-cookie-banner__summary {
		align-items: stretch;
		flex-direction: column;
		gap: 18px;
		padding: 14px 18px 18px;
	}

	.tlab-cookie-banner h2 {
		font-size: 1.4rem;
	}

	.tlab-cookie-banner__description,
	.tlab-cookie-banner__category-copy {
		font-size: 0.875rem;
	}

	.tlab-cookie-banner__actions,
	.tlab-cookie-banner__preferences-actions {
		display: grid;
		grid-template-columns: 1fr;
		min-width: 0;
	}

	.tlab-cookie-banner__button {
		width: 100%;
		min-height: 48px;
	}

	.tlab-cookie-banner__preferences {
		padding: 14px 18px 18px;
	}

	.tlab-cookie-banner__preferences-head {
		position: sticky;
		z-index: 1;
		top: -14px;
		margin: -14px -18px 0;
		padding: 14px 18px;
		background: var(--wp--preset--color--base, #fff);
	}

	.tlab-cookie-banner__preferences-actions {
		position: sticky;
		z-index: 1;
		bottom: calc(-18px - env(safe-area-inset-bottom, 0));
		margin: 0 -18px -18px;
		padding: 14px 18px calc(18px + env(safe-area-inset-bottom, 0));
		background: var(--wp--preset--color--base, #fff);
		border-top: 1px solid var(--wp--preset--color--border, #dfe4e1);
	}

	.tlab-cookie-banner__category {
		grid-template-columns: 1fr auto;
		gap: 12px;
	}

	.tlab-cookie-banner__required {
		white-space: normal;
	}

	.tlab-legal-table {
		margin-right: calc(-1 * var(--wp--style--root--padding-right, 24px));
		margin-left: calc(-1 * var(--wp--style--root--padding-left, 24px));
		padding: 0 var(--wp--style--root--padding-right, 24px);
	}
}

@media (prefers-reduced-motion: reduce) {

	.tlab-cookie-banner__button,
	.tlab-cookie-banner__switch span,
	.tlab-cookie-banner__switch span::after {
		transition: none;
	}
}
