.cookie-consent[hidden],
.cookie-settings-button[hidden] {
	display: none !important;
}

.cookie-consent {
	position: fixed;
	inset: 0;
	z-index: 9999;
	display: flex;
	align-items: flex-end;
	padding: 20px;
	background: rgba(15, 23, 42, .48);
	opacity: 0;
	visibility: hidden;
	transition: opacity .2s ease, visibility .2s ease;
}

.cookie-consent.is-visible {
	opacity: 1;
	visibility: visible;
}

.cookie-consent__inner {
	display: grid;
	grid-template-columns: auto minmax(0, 1fr) auto;
	gap: 18px;
	align-items: center;
	width: min(1180px, 100%);
	margin: 0 auto;
	padding: 20px;
	border: 1px solid #e2e8f0;
	border-radius: 16px;
	background: #fff;
	box-shadow: 0 20px 50px rgba(15, 23, 42, .22);
	color: #0f172a;
	transform: translateY(16px);
	transition: transform .2s ease;
}

.cookie-consent.is-visible .cookie-consent__inner {
	transform: translateY(0);
}

.cookie-consent__icon {
	display: grid;
	place-items: center;
	width: 46px;
	height: 46px;
	border-radius: 50%;
	background: rgba(5, 150, 105, .12);
	color: #059669;
	font-size: 24px;
}

.cookie-consent__content h2 {
	margin: 0 0 5px;
	font-size: 18px;
	font-weight: 700;
}

.cookie-consent__content p {
	margin: 0;
	color: #64748b;
	font-size: 14px;
	line-height: 1.55;
}

.cookie-consent__content a {
	color: #059669;
	text-decoration: underline;
	text-underline-offset: 2px;
}

.cookie-consent__actions {
	display: flex;
	gap: 10px;
}

.cookie-consent__button,
.cookie-settings-button {
	border: 1px solid transparent;
	border-radius: 8px;
	cursor: pointer;
	font-weight: 600;
	transition: color .2s ease, background .2s ease, border-color .2s ease;
}

.cookie-consent__button {
	min-height: 42px;
	padding: 10px 16px;
	white-space: nowrap;
}

.cookie-consent__button--primary {
	border-color: #059669;
	background: #059669;
	color: #fff;
}

.cookie-consent__button--primary:hover {
	border-color: #047857;
	background: #047857;
}

.cookie-consent__button--secondary {
	border-color: #cbd5e1;
	background: transparent;
	color: #334155;
}

.cookie-consent__button--secondary:hover {
	border-color: #059669;
	color: #059669;
}

.cookie-settings-button {
	position: fixed;
	z-index: 9998;
	bottom: 18px;
	left: 18px;
	display: inline-flex;
	align-items: center;
	gap: 7px;
	padding: 9px 12px;
	border-color: #cbd5e1;
	background: #fff;
	box-shadow: 0 8px 24px rgba(15, 23, 42, .14);
	color: #475569;
	font-size: 13px;
}

.cookie-settings-button:hover {
	border-color: #059669;
	color: #059669;
}

.dark .cookie-consent__inner,
.dark .cookie-settings-button {
	border-color: #334155;
	background: #0f172a;
	color: #f8fafc;
}

.dark .cookie-consent__content p {
	color: #94a3b8;
}

.dark .cookie-consent__button--secondary {
	border-color: #475569;
	color: #e2e8f0;
}

html.employers .cookie-consent__icon {
	background: rgba(14, 165, 233, .12);
	color: #0ea5e9;
}

html.employers .cookie-consent__content a {
	color: #0284c7;
}

html.employers .cookie-consent__button--primary {
	border-color: #0ea5e9;
	background: #0ea5e9;
}

html.employers .cookie-consent__button--primary:hover {
	border-color: #0284c7;
	background: #0284c7;
}

html.employers .cookie-consent__button--secondary:hover,
html.employers .cookie-settings-button:hover {
	border-color: #0ea5e9;
	color: #0284c7;
}

@media (max-width: 900px) {
	.cookie-consent__inner {
		grid-template-columns: auto minmax(0, 1fr);
	}

	.cookie-consent__actions {
		grid-column: 1 / -1;
		justify-content: flex-end;
	}
}

@media (max-width: 600px) {
	.cookie-consent {
		padding: 12px;
	}

	.cookie-consent__inner {
		grid-template-columns: 1fr;
		gap: 12px;
		padding: 16px;
	}

	.cookie-consent__icon {
		display: none;
	}

	.cookie-consent__actions {
		grid-column: auto;
		flex-direction: column-reverse;
	}

	.cookie-consent__button {
		width: 100%;
	}

	.cookie-settings-button span {
		display: none;
	}
}

@media (prefers-reduced-motion: reduce) {
	.cookie-consent,
	.cookie-consent__inner {
		transition: none;
	}
}
