/* ==========================================================================
   consent.css — bandeau de consentement
   Une carte, un biscuit, deux boutons de même poids. Aucun arrondi, aucune ombre.
   ========================================================================== */

.lune-cookie {
	position: fixed;
	left: 24px;
	bottom: 24px;
	z-index: 9997;
	width: 420px;
	max-width: calc(100vw - 48px);
	opacity: 0;
	transform: translateY(10px);
	transition: opacity .22s ease, transform .22s ease;
}

.lune-cookie.is-visible { opacity: 1; transform: translateY(0); }

/* Storefront habille tous les <button> : on repart de zéro dans le bandeau. */
.lune-cookie.lune-site button:not(.lune-btn) {
	background: transparent;
	border: 0;
	border-radius: 0;
	padding: 0;
	min-height: 0;
	box-shadow: none;
	text-transform: none;
	letter-spacing: 0;
}

.lune-cookie.lune-site [hidden] { display: none !important; }

.lune-cookie__panel {
	background: var(--lune-white);
	border: 1px solid var(--lune-ink);
	padding: 22px 22px 16px;
}

/* --- Tête ---------------------------------------------------------------- */

.lune-cookie__head { display: flex; gap: 14px; align-items: flex-start; }

.lune-cookie__icon {
	width: 30px;
	height: 30px;
	flex: none;
	margin-top: 1px;
	color: var(--lune-ink);
}

.lune-cookie__panel h2 {
	font-family: var(--lune-serif);
	font-size: 19px;
	font-weight: 400;
	line-height: 1.25;
	margin: 0 0 6px;
	color: var(--lune-ink);
}

.lune-cookie__panel p {
	font-size: 12.5px;
	line-height: 1.6;
	color: var(--lune-muted);
	margin: 0 0 8px;
	max-width: 38ch;
}

.lune-cookie__link {
	font-size: 11px;
	letter-spacing: .04em;
	color: var(--lune-ink);
	border-bottom: 1px solid var(--lune-line);
}

.lune-cookie__link:hover { color: var(--lune-accent); border-color: var(--lune-accent); }

/* --- Catégories ---------------------------------------------------------- */

.lune-cookie__cats {
	margin: 14px 0 2px;
	border-top: 1px solid var(--lune-line);
}

.lune-cookie__cat {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 14px;
	padding: 9px 0;
	border-bottom: 1px solid var(--lune-line);
	font-size: 12.5px;
	color: var(--lune-ink-2);
	cursor: pointer;
}

.lune-cookie__cat input[type="checkbox"] {
	appearance: none;
	width: 15px;
	height: 15px;
	margin: 0;
	border: 1px solid var(--lune-ink);
	background: var(--lune-white);
	position: relative;
	cursor: pointer;
	flex: none;
}

.lune-cookie__cat input[type="checkbox"]:checked { background: var(--lune-ink); }

.lune-cookie__cat input[type="checkbox"]:checked::after {
	content: "";
	position: absolute;
	left: 4px;
	top: 1px;
	width: 4px;
	height: 8px;
	border: solid var(--lune-white);
	border-width: 0 1.6px 1.6px 0;
	transform: rotate(42deg);
}

.lune-cookie__cat input[type="checkbox"]:disabled { opacity: .45; cursor: default; }

/* --- Actions ------------------------------------------------------------- */

.lune-cookie__actions {
	display: flex;
	gap: 10px;
	margin: 16px 0 0;
}

.lune-cookie__actions .lune-btn {
	flex: 1;
	border: 1px solid var(--lune-ink);
	padding: 12px 14px;
	font-size: 10px;
	letter-spacing: .14em;
	text-align: center;
}

.lune-cookie__actions .lune-btn--solid {
	background: var(--lune-ink);
	color: var(--lune-white);
}

.lune-cookie__reject {
	background: var(--lune-white);
	color: var(--lune-ink);
}

.lune-cookie__reject:hover { background: var(--lune-panel); }

/* --- Pied ---------------------------------------------------------------- */

.lune-cookie__foot {
	display: flex;
	justify-content: space-between;
	gap: 14px;
	margin-top: 14px;
}

.lune-cookie__foot .lune-tlink {
	display: inline-block;
	font-size: 10.5px;
	letter-spacing: .1em;
	padding-bottom: 2px;
	border-bottom: 1px solid var(--lune-ink);
	color: var(--lune-ink);
}

.lune-cookie__foot .lune-tlink:hover { color: var(--lune-accent); border-color: var(--lune-accent); }

/* --- Mobile -------------------------------------------------------------- */

@media (max-width: 560px) {
	.lune-cookie {
		left: 0;
		right: 0;
		bottom: 0;
		width: 100%;
		max-width: none;
	}

	.lune-cookie__panel {
		border-left: 0;
		border-right: 0;
		border-bottom: 0;
		padding: 18px 18px 14px;
	}

	.lune-cookie__actions .lune-btn { padding: 12px 8px; }
}
