/**
 * Bandeau consentement cookies (RGPD)
 *
 * @package Colvert
 */

body.colvert-cookie-consent--open {
	overflow: hidden;
}

.colvert-cookie-consent {
	position: fixed;
	inset: 0;
	z-index: 999999;
	display: flex;
	align-items: flex-end;
	justify-content: center;
	padding: 0;
	box-sizing: border-box;
	font-family: "Open Sans", system-ui, sans-serif;
}

.colvert-cookie-consent[hidden] {
	display: none !important;
}

.colvert-cookie-consent__overlay {
	position: absolute;
	inset: 0;
	background: rgba(15, 23, 42, 0.55);
	backdrop-filter: blur(2px);
}

.colvert-cookie-consent__panel {
	position: relative;
	width: 100%;
	max-width: 720px;
	margin: 1rem;
	margin-bottom: max(1rem, env(safe-area-inset-bottom));
	padding: 1.5rem 1.75rem;
	background: #0f172a;
	color: #e2e8f0;
	border-radius: 12px 12px 0 0;
	box-shadow: 0 -8px 40px rgba(0, 0, 0, 0.35);
	border: 1px solid rgba(148, 163, 184, 0.2);
	border-bottom: none;
}

@media (min-width: 640px) {
	.colvert-cookie-consent__panel {
		border-radius: 12px;
		margin-bottom: 1.5rem;
	}
}

.colvert-cookie-consent__title {
	margin: 0 0 0.75rem;
	font-size: 1.125rem;
	font-weight: 700;
	color: #f8fafc;
	letter-spacing: 0.02em;
}

.colvert-cookie-consent__text {
	margin: 0 0 1.25rem;
	font-size: 0.9375rem;
	line-height: 1.6;
	color: #cbd5e1;
}

.colvert-cookie-consent__text a {
	color: #38bdf8;
	text-decoration: underline;
	text-underline-offset: 2px;
}

.colvert-cookie-consent__text a:hover {
	color: #7dd3fc;
}

.colvert-cookie-consent__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
	justify-content: flex-end;
}

.colvert-cookie-consent__btn {
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 44px;
	padding: 0.625rem 1.25rem;
	font-size: 0.875rem;
	font-weight: 600;
	border-radius: 8px;
	border: 2px solid transparent;
	transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.colvert-cookie-consent__btn--reject {
	background: transparent;
	color: #e2e8f0;
	border-color: #475569;
}

.colvert-cookie-consent__btn--reject:hover {
	background: rgba(148, 163, 184, 0.15);
	border-color: #64748b;
}

.colvert-cookie-consent__btn--accept {
	background: #2563eb;
	color: #fff;
	border-color: #2563eb;
}

.colvert-cookie-consent__btn--accept:hover {
	background: #1d4ed8;
	border-color: #1d4ed8;
}

.colvert-cookie-consent__btn:focus-visible {
	outline: 2px solid #38bdf8;
	outline-offset: 2px;
}
