/**
 * RGPD — bandeau cookies, formulaire consentement.
 */

.o3w-cookie-banner {
	position: fixed;
	z-index: 9000;
	right: 24px;
	bottom: 24px;
	left: 24px;
	max-width: 520px;
	margin-left: auto;
	padding: 22px 24px 20px;
	background: #faf9f7;
	color: #1c1a18;
	border: 1px solid rgba(0, 0, 0, 0.08);
	border-radius: var(--o3w-radius);
	box-shadow: 0 12px 36px rgba(0, 0, 0, 0.08);
}

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

.o3w-cookie-banner__title {
	margin: 0 0 10px;
	font-family: var(--o3w-font-heading);
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: rgba(28, 26, 24, 0.55);
}

.o3w-cookie-banner__text {
	margin: 0 0 18px;
	font-family: var(--o3w-font-body);
	font-size: 14px;
	line-height: 1.6;
	color: rgba(28, 26, 24, 0.72);
}

.o3w-cookie-banner__text a {
	color: var(--o3w-vert, #2f4a3e);
	text-decoration: underline;
	text-underline-offset: 0.15em;
}

.o3w-cookie-banner__text a:hover {
	color: var(--o3w-vert-deep, #243d32);
}

.o3w-cookie-banner__actions {
	display: flex;
	flex-wrap: nowrap;
	align-items: center;
	gap: 10px 12px;
}

.o3w-cookie-banner .ed-footer__contact-cta {
	margin: 0;
	white-space: nowrap;
}

/* Préférences cookies (page dédiée — grille : legal-pages.css) */
.o3w-cookie-preferences__lead {
	margin: 0 0 1.25rem;
}

.o3w-cookie-preferences__fieldset {
	margin: 0;
	padding: 0;
	border: 0;
}

.o3w-cookie-preferences__legend {
	margin: 0 0 0.5rem;
	font-family: var(--o3w-font-heading);
	font-size: 0.8125rem;
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.o3w-cookie-preferences__hint {
	margin: 0 0 1rem;
	font-size: 0.9375rem;
	line-height: 1.55;
	color: var(--o3w-ink-muted, #5a5652);
}

.o3w-cookie-preferences__options {
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
	margin-bottom: 1.25rem;
}

.o3w-cookie-preferences__option {
	display: flex;
	gap: 0.65rem;
	align-items: flex-start;
	font-size: 0.9375rem;
	line-height: 1.5;
	cursor: pointer;
}

.o3w-cookie-preferences__option input {
	margin-top: 0.2em;
	flex-shrink: 0;
}

.o3w-cookie-preferences__submit {
	margin-top: 0.25rem;
}

.o3w-cookie-preferences .ed-footer__contact-cta {
	margin: 0;
}

.o3w-cookie-preferences__status {
	margin: 1rem 0 0;
	font-size: 0.875rem;
	line-height: 1.5;
	color: var(--o3w-vert, #2f4a3e);
}

.o3w-cookie-preferences__status[hidden] {
	display: none !important;
}

.ed-footer__legal-line {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem 1.25rem;
}

@media (max-width: 520px) {
	.o3w-cookie-banner {
		right: 16px;
		bottom: 16px;
		left: 16px;
		padding: 18px 18px 16px;
	}

	.o3w-cookie-banner__actions {
		flex-wrap: wrap;
	}

	.o3w-cookie-banner .ed-footer__contact-cta {
		white-space: normal;
		flex: 1 1 auto;
		min-width: calc(50% - 6px);
	}
}
