.clx-consent-root[hidden],
.clx-consent-root [hidden],
.clx-privacy-choices[hidden] {
	display: none !important;
}

.clx-consent-root {
	position: fixed;
	z-index: 10000;
	inset: auto auto max(1rem, env(safe-area-inset-bottom)) 1rem;
	width: min(34rem, calc(100% - 2rem));
}

.clx-consent-panel {
	position: relative;
	max-height: 80vh;
	max-height: 80dvh;
	overflow-y: auto;
	overscroll-behavior: contain;
	padding: clamp(1rem, 4vw, 1.75rem);
	border-top: .25rem solid var(--color-consent-accent);
	border-radius: var(--radius-xl);
	background: var(--color-consent-surface);
	color: var(--color-consent-text);
	box-shadow: var(--shadow-xl);
}

.clx-consent-panel .clx-consent-title,
.clx-consent-panel .clx-consent-copy,
.clx-consent-panel .clx-consent-policy-link,
.clx-consent-panel h3,
.clx-consent-panel p {
	margin: 0;
	color: inherit;
}

.clx-consent-panel .clx-consent-title {
	padding-inline-end: 2rem;
	font-size: var(--text-2xl);
	line-height: var(--leading-snug);
}

.clx-consent-panel .clx-consent-copy,
.clx-consent-panel .clx-consent-policy-link {
	margin-top: .75rem;
	font-size: var(--text-sm);
	line-height: var(--leading-normal);
}

.clx-consent-policy-link a {
	color: inherit;
	text-decoration: underline;
}

.clx-consent-actions {
	display: flex;
	flex-wrap: wrap;
	gap: .5rem;
	margin-top: 1rem;
}

.clx-consent-button,
.clx-consent-close,
.clx-privacy-choices {
	font: inherit;
	cursor: pointer;
}

.clx-consent-button {
	min-height: 2.75rem;
	padding: .5rem .8rem;
	border: .0625rem solid transparent;
	border-radius: var(--radius-md);
	font-size: var(--text-sm);
	font-weight: var(--font-weight-bold);
	line-height: var(--leading-tight);
}

.clx-consent-button-primary,
.clx-consent-button-secondary {
	border-color: var(--color-consent-accent);
	background: var(--color-consent-secondary);
	color: var(--color-consent-text);
}

.clx-consent-button-primary:hover,
.clx-consent-button-secondary:hover {
	background: var(--color-consent-text);
	color: var(--color-consent-surface);
}

.clx-consent-button-text,
.clx-consent-close {
	border: 0;
	background: transparent;
	color: var(--color-consent-text);
}

.clx-consent-button-text {
	text-decoration: underline;
}

.clx-consent-close {
	position: absolute;
	top: .5rem;
	right: .5rem;
	width: 2.75rem;
	height: 2.75rem;
	font-size: var(--text-2xl);
}

.clx-consent-categories {
	display: grid;
	gap: .5rem;
	margin-top: 1rem;
}

.clx-consent-category {
	display: grid;
	grid-template-columns: 1fr auto;
	align-items: center;
	gap: 1rem;
	padding: .75rem;
	border-radius: var(--radius-md);
	background: var(--color-consent-secondary);
}

.clx-consent-category h3 {
	font-size: var(--text-base);
}

.clx-consent-category p {
	font-size: var(--text-sm);
	line-height: var(--leading-normal);
}

.clx-consent-category .clx-consent-gpc {
	margin-top: .5rem;
	font-weight: var(--font-weight-bold);
}

.clx-consent-switch {
	position: relative;
	cursor: pointer;
}

.clx-consent-switch-locked {
	cursor: default;
}

.clx-consent-switch input,
.clx-consent-label {
	position: absolute;
	width: .0625rem;
	height: .0625rem;
	overflow: hidden;
	clip-path: inset(50%);
}

.clx-consent-switch-track {
	display: block;
	width: 2.875rem;
	height: 1.625rem;
	border: .0625rem solid var(--color-consent-text);
	border-radius: 2rem;
	background: var(--color-consent-surface);
}

.clx-consent-switch-track::after {
	display: block;
	width: 1.125rem;
	height: 1.125rem;
	margin: .1875rem;
	border-radius: 50%;
	background: var(--color-consent-text);
	content: "";
}

.clx-consent-switch input:checked + .clx-consent-switch-track {
	background: var(--color-consent-text);
}

.clx-consent-switch input:checked + .clx-consent-switch-track::after {
	transform: translateX(1.25rem);
	background: var(--color-consent-surface);
}

.clx-consent-switch input:disabled + .clx-consent-switch-track {
	opacity: .65;
}

.clx-consent-switch input:focus-visible + .clx-consent-switch-track,
.clx-consent-button:focus-visible,
.clx-consent-close:focus-visible,
.clx-consent-policy-link a:focus-visible,
.clx-privacy-choices:focus-visible {
	outline: .125rem solid currentColor;
	outline-offset: .125rem;
}

.clx-privacy-choices {
	margin-top: .75rem;
	padding: .25rem 0;
	border: 0;
	background: transparent;
	color: var(--color-white);
	font-size: var(--text-sm);
	text-decoration: underline;
}

@media (max-width: 29.9375rem) {
	.clx-consent-actions > button {
		flex: 1 1 auto;
	}
}
