/**
 * Cookie consent — DoneHQ brand (hq-blue, white, black).
 */
.cookie-consent {
	--cc-blue: #06038d;
	--cc-blue-light: #2965ff;
	--cc-navy: #000034;
	--cc-bg: #fff;
	--cc-surface: #f2f2f7;
	--cc-border: #000;
	--cc-border-soft: rgb(0 0 0 / 0.12);
	--cc-text: #000034;
	--cc-muted: #8c8f9d;
	position: fixed;
	inset: auto 0 0;
	z-index: 99990;
	pointer-events: none;
	font-family: Onest, system-ui, sans-serif;
}

.cookie-consent[aria-hidden="false"] {
	pointer-events: auto;
}

.cookie-consent__bar,
.cookie-consent__panel {
	pointer-events: auto;
}

.cookie-consent__bar {
	border-top: 1px solid var(--cc-border);
	background: var(--cc-bg);
	box-shadow: 0 -0.25rem 1.5rem rgb(6 3 141 / 0.08);
	transform: translateY(100%);
	opacity: 0;
	transition:
		transform 0.4s ease,
		opacity 0.35s ease;
}

.cookie-consent--visible .cookie-consent__bar {
	transform: translateY(0);
	opacity: 1;
}

.cookie-consent--panel-open .cookie-consent__bar {
	display: none;
}

.cookie-consent__bar-inner {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 0.75rem 1.5rem;
	max-width: 72rem;
	margin: 0 auto;
	padding: 1rem 1.25rem;
}

.cookie-consent__bar-copy {
	flex: 1 1 16rem;
	min-width: 0;
}

.cookie-consent__bar-text {
	margin: 0;
	font-size: 0.7375rem;
	line-height: 1.45;
	color: var(--cc-text);
}

.cookie-consent__bar-copy .cookie-consent__legal {
	margin: 0.35rem 0 0;
	font-size: 0.8125rem;
}

.cookie-consent__bar-actions,
.cookie-consent__panel-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	align-items: center;
}

.cookie-consent__notice {
	margin: 0;
	padding: 0 1.25rem 0.75rem;
	font-size: 0.8125rem;
	line-height: 1.45;
	color: var(--cc-muted);
}

.cookie-consent__panel {
	position: fixed;
	inset: auto 1rem 1rem;
	max-width: 28rem;
	border: 1px solid var(--cc-border);
	border-radius: 1.5rem;
	background: var(--cc-bg);
	box-shadow: 0 1rem 2.5rem rgb(6 3 141 / 0.12);
	transform: translateY(1.25rem);
	opacity: 0;
	visibility: hidden;
	transition:
		transform 0.35s ease,
		opacity 0.35s ease,
		visibility 0.35s ease;
}

.cookie-consent--panel-open .cookie-consent__panel {
	transform: translateY(0);
	opacity: 1;
	visibility: visible;
}

.cookie-consent__panel-head {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 1rem;
	padding: 1.25rem 1.25rem 0;
}

.cookie-consent__panel-title {
	margin: 0;
	font-size: 1.25rem;
	font-weight: 500;
	line-height: 1.3;
	color: var(--cc-blue);
}

.cookie-consent__close {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 2rem;
	height: 2rem;
	border: 1px solid var(--cc-border);
	border-radius: 50%;
	background: transparent;
	color: var(--cc-blue);
	font-size: 1.25rem;
	line-height: 1;
	cursor: pointer;
	transition:
		background 0.2s ease,
		color 0.2s ease;
}

.cookie-consent__close:hover,
.cookie-consent__close:focus-visible {
	background: var(--cc-blue);
	color: #fff;
}

.cookie-consent__panel-intro {
	margin: 0;
	padding: 0.75rem 1.25rem 0;
	font-size: 0.875rem;
	line-height: 1.5;
	color: var(--cc-muted);
}

.cookie-consent__categories {
	margin: 1rem 1.25rem 0;
	padding: 0;
	list-style: none;
	border: 1px solid var(--cc-border-soft);
	border-radius: 0.75rem;
	overflow: hidden;
	background: var(--cc-surface);
}

.cookie-consent__category {
	padding: 0.875rem 1rem;
	border-top: 1px solid var(--cc-border-soft);
	background: var(--cc-bg);
}

.cookie-consent__category:first-child {
	border-top: none;
}

.cookie-consent__category-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
}

.cookie-consent__category-name {
	font-size: 0.875rem;
	font-weight: 500;
	color: var(--cc-navy);
}

.cookie-consent__category-desc {
	margin: 0.375rem 0 0;
	font-size: 0.8125rem;
	line-height: 1.45;
	color: var(--cc-muted);
}

.cookie-consent__status {
	font-size: 0.75rem;
	font-weight: 500;
	color: var(--cc-muted);
}

.cookie-consent__status--on {
	color: var(--cc-blue);
}

.cookie-consent__toggle {
	position: relative;
	display: inline-flex;
	flex-shrink: 0;
	cursor: pointer;
}

.cookie-consent__toggle-ui {
	position: relative;
}

.cookie-consent__toggle input {
	position: absolute;
	opacity: 0;
	width: 0;
	height: 0;
}

.cookie-consent__toggle-ui {
	display: block;
	width: 2.5rem;
	height: 1.375rem;
	border: 1px solid var(--cc-border-soft);
	border-radius: 999px;
	background: var(--cc-surface);
	transition:
		background 0.25s ease,
		border-color 0.25s ease;
}

.cookie-consent__toggle-ui::after {
	content: "";
	position: absolute;
	top: 0.2rem;
	left: 0.2rem;
	width: 0.9rem;
	height: 0.9rem;
	border-radius: 50%;
	background: #fff;
	box-shadow: 0 1px 2px rgb(0 0 0 / 0.15);
	transition: transform 0.25s ease;
}

.cookie-consent__toggle input:checked + .cookie-consent__toggle-ui {
	border-color: var(--cc-blue-light);
	background: var(--cc-blue-light);
}

.cookie-consent__toggle input:checked + .cookie-consent__toggle-ui::after {
	transform: translateX(1.1rem);
}

.cookie-consent__toggle input:focus-visible + .cookie-consent__toggle-ui {
	outline: 2px solid var(--cc-blue);
	outline-offset: 2px;
}

.cookie-consent__panel-actions {
	padding: 1rem 1.25rem;
}

.cookie-consent__legal {
	margin: 0;
	padding: 0 1.25rem 1.25rem;
	font-size: 0.875rem;
}

.cookie-consent__bar-copy .cookie-consent__legal {
	padding: 0;
}

.cookie-consent__legal-sep {
	margin: 0 0.35rem;
	color: var(--cc-muted);
}

.cookie-consent__legal a {
	color: var(--cc-blue);
	text-decoration: underline;
	text-underline-offset: 0.15em;
}

.cookie-consent__legal a:hover,
.cookie-consent__legal a:focus-visible {
	color: var(--cc-blue-light);
}

.cookie-consent__btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 2.75rem;
	padding: 0 1.25rem;
	border-radius: 2.5rem;
	font-size: 0.875rem;
	font-weight: 500;
	line-height: 1.2;
	cursor: pointer;
	transition:
		background 0.2s ease,
		border-color 0.2s ease,
		color 0.2s ease;
}

.cookie-consent__btn--primary {
	border: 1px solid var(--cc-blue-light);
	background: var(--cc-blue-light);
	color: #fff;
}

.cookie-consent__btn--primary:hover,
.cookie-consent__btn--primary:focus-visible {
	border-color: var(--cc-blue);
	background: var(--cc-blue);
}

.cookie-consent__btn--outline {
	border: 1px solid var(--cc-blue);
	background: transparent;
	color: var(--cc-blue);
}

.cookie-consent__btn--outline:hover,
.cookie-consent__btn--outline:focus-visible {
	background: var(--cc-blue);
	color: #fff;
}

.cookie-consent__btn--ghost {
	border: 1px solid var(--cc-border-soft);
	background: transparent;
	color: var(--cc-text);
}

.cookie-consent__btn--ghost:hover,
.cookie-consent__btn--ghost:focus-visible {
	border-color: var(--cc-blue);
	color: var(--cc-blue);
}

.cookie-consent__reopen {
	position: fixed;
	right: 1rem;
	bottom: 1rem;
	z-index: 99989;
	padding: 0.5rem 0.875rem;
	border: 1px solid var(--cc-border);
	border-radius: 2.5rem;
	background: var(--cc-bg);
	color: var(--cc-blue);
	font-family: Onest, system-ui, sans-serif;
	font-size: 0.75rem;
	font-weight: 500;
	cursor: pointer;
	box-shadow: 0 0.25rem 1rem rgb(6 3 141 / 0.1);
	transition:
		background 0.2s ease,
		color 0.2s ease;
}

.cookie-consent__reopen:hover,
.cookie-consent__reopen:focus-visible {
	background: var(--cc-blue);
	color: #fff;
}

.cookie-consent__reopen[hidden] {
	display: none;
}

@media (min-width: 48rem) {
	.cookie-consent__panel {
		inset: auto 1.5rem 1.5rem auto;
	}
}

@media (prefers-reduced-motion: reduce) {
	.cookie-consent__bar,
	.cookie-consent__panel,
	.cookie-consent__toggle-ui,
	.cookie-consent__toggle-ui::after {
		transition: none;
	}
}
