/* Bannière cookies sur la page de l'estimateur, servie hors thème : mêmes règles que le thème (lorem.css), valeurs du theme.json. */
.li-cookies {
	position: fixed;
	right: 1rem;
	bottom: 1rem;
	z-index: 60;
	display: grid;
	gap: 1rem;
	box-sizing: border-box;
	width: min(360px, calc(100vw - 2rem));
	padding: 1rem 1.5rem 1.5rem;
	font-family: var(--font-texte, "DM Sans Variable", system-ui, sans-serif);
	font-size: 0.875rem;
	line-height: 1.5;
	color: #ebebeb;
	background: #18171d;
	border: 1px solid #2c2935;
	border-radius: 16px;
	box-shadow: 0 1px 2px rgb(0 0 0 / 30%), 0 12px 32px rgb(0 0 0 / 35%);
}

.li-cookies[hidden] {
	display: none;
}

.li-cookies p {
	margin: 0;
}

.li-cookies .li-cookies-titre {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	margin-bottom: 0.5rem;
	font-family: var(--font-display, "Fraunces Variable", Georgia, serif);
	font-size: 1rem;
	font-weight: 700;
	color: #fff;
}

.li-cookies a {
	color: #fff;
	font-weight: 600;
	text-decoration: underline;
	text-underline-offset: 3px;
	white-space: nowrap;
}

.li-cookies-icone {
	flex: none;
	color: #ffb700;
}

.li-cookies-boutons {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 0.5rem;
}

.li-cookies-bouton {
	min-height: 44px;
	padding: 0.5rem 1rem;
	font: inherit;
	font-weight: 700;
	color: #fff;
	background: #7826ff;
	border: 2px solid #7826ff;
	border-radius: 999px;
	cursor: pointer;
	transition: background 0.2s cubic-bezier(0.2, 0.8, 0.2, 1), border-color 0.2s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.li-cookies-bouton:hover {
	background: #4600b9;
	border-color: #4600b9;
}

.li-cookies-bouton.is-contour {
	background: transparent;
	border-color: rgb(255 255 255 / 55%);
}

.li-cookies-bouton.is-contour:hover {
	border-color: #fff;
}

.li-cookies-bouton:focus-visible {
	outline: 3px solid #a47cff;
	outline-offset: 3px;
}

@media (prefers-reduced-motion: no-preference) {
	.li-cookies:not([hidden]) {
		animation: li-cookies 0.35s cubic-bezier(0.2, 0.8, 0.2, 1) both;
	}
}

@keyframes li-cookies {
	from {
		opacity: 0;
		transform: translateY(12px);
	}
}

@media (max-width: 560px) {
	.li-cookies {
		left: 8px;
		right: 8px;
		bottom: 8px;
		width: auto;
		max-height: calc(100dvh - 16px);
		overflow-y: auto;
		padding: 12px 14px;
		gap: 8px;
		font-size: 0.82rem;
		line-height: 1.4;
	}

	.li-cookies .li-cookies-titre {
		font-size: 0.95rem;
		margin: 0;
	}

	.li-cookies .li-cookies-bouton {
		padding: 6px 12px;
	}
}

@media print {
	.li-cookies {
		display: none;
	}
}
