/* BOA Food cookie consent banner. Selectors are scoped under .boa-cc so theme/Elementor button styles don't leak in. */

.boa-cc {
	--boa-ink: #101010;
	--boa-muted: #555555;
	--boa-line: #e6e6e6;
	--boa-accent: #2f4737;
	--boa-link: #c62828;
	position: fixed;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 2147483000;
	padding: 16px;
	pointer-events: none;
	font-family: "Poppins", system-ui, -apple-system, "Segoe UI", sans-serif;
}

.boa-cc[hidden],
.boa-cc [hidden],
.boa-cc-manage[hidden] {
	display: none !important;
}

.boa-cc .boa-cc__card {
	pointer-events: auto;
	box-sizing: border-box;
	max-width: 720px;
	margin: 0 auto;
	padding: 20px 24px;
	background: #ffffff;
	color: var(--boa-ink);
	border-radius: 16px;
	box-shadow: 0 12px 40px rgba(0, 0, 0, 0.18), 0 2px 6px rgba(0, 0, 0, 0.08);
	animation: boa-cc-in 220ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

@keyframes boa-cc-in {
	from { opacity: 0; transform: translateY(12px); }
	to   { opacity: 1; transform: none; }
}

.boa-cc p {
	margin: 0;
	padding: 0;
}

.boa-cc .boa-cc__title {
	font-size: 16px;
	font-weight: 600;
	line-height: 1.4;
	margin-bottom: 6px;
}

.boa-cc .boa-cc__text {
	font-size: 14px;
	line-height: 1.6;
	color: var(--boa-muted);
}

.boa-cc .boa-cc__link,
.boa-cc .boa-cc__link:visited {
	color: var(--boa-link);
	text-decoration: underline;
	text-underline-offset: 2px;
}

.boa-cc .boa-cc__prefs {
	margin-top: 14px;
	border-top: 1px solid var(--boa-line);
}

.boa-cc .boa-cc__row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	padding: 12px 0;
	border-bottom: 1px solid var(--boa-line);
}

.boa-cc .boa-cc__row label {
	cursor: pointer;
	margin: 0;
}

.boa-cc .boa-cc__label {
	display: block;
	font-size: 14px;
	font-weight: 600;
	line-height: 1.4;
	color: var(--boa-ink);
}

.boa-cc .boa-cc__hint {
	display: block;
	font-size: 13px;
	line-height: 1.5;
	color: var(--boa-muted);
}

.boa-cc .boa-cc__always {
	flex: none;
	font-size: 13px;
	font-weight: 500;
	color: var(--boa-accent);
}

/* Toggle switch */
.boa-cc .boa-cc__switch {
	flex: none;
	appearance: none;
	-webkit-appearance: none;
	position: relative;
	width: 44px;
	height: 24px;
	margin: 0;
	border-radius: 999px;
	background: #c4c4c4;
	cursor: pointer;
	transition: background-color 160ms ease;
}

.boa-cc .boa-cc__switch::after {
	content: "";
	position: absolute;
	top: 3px;
	left: 3px;
	width: 18px;
	height: 18px;
	border-radius: 50%;
	background: #ffffff;
	box-shadow: 0 1px 2px rgba(0, 0, 0, 0.25);
	transition: transform 160ms ease;
}

.boa-cc .boa-cc__switch:checked {
	background: var(--boa-accent);
}

.boa-cc .boa-cc__switch:checked::after {
	transform: translateX(20px);
}

.boa-cc .boa-cc__switch:focus-visible {
	outline: 2px solid var(--boa-ink);
	outline-offset: 2px;
}

/* Buttons: "Tout refuser" and "Tout accepter" share one style on purpose (CNIL: refusing must be as easy as accepting). */
.boa-cc .boa-cc__actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
	margin-top: 16px;
}

.boa-cc .boa-cc__btn {
	box-sizing: border-box;
	margin: 0;
	min-height: 44px;
	padding: 10px 20px;
	border: 1px solid var(--boa-ink);
	border-radius: 999px;
	background: var(--boa-ink);
	color: #ffffff;
	font-family: inherit;
	font-size: 14px;
	font-weight: 500;
	line-height: 1.2;
	letter-spacing: 0;
	text-transform: none;
	text-decoration: none;
	cursor: pointer;
	transition: background-color 160ms ease, color 160ms ease, transform 120ms ease;
}

/* Hello Elementor's reset recolours button:hover/:focus; override just those properties. */
.boa-cc .boa-cc__btn:focus {
	background: var(--boa-ink);
	color: #ffffff;
	text-decoration: none;
}

.boa-cc .boa-cc__btn:hover {
	background: #2b2b2b;
	color: #ffffff;
	text-decoration: none;
}

.boa-cc .boa-cc__btn--ghost {
	margin-right: auto;
	background: transparent;
	color: var(--boa-ink);
}

.boa-cc .boa-cc__btn--ghost:focus {
	background: transparent;
	color: var(--boa-ink);
}

.boa-cc .boa-cc__btn--ghost:hover {
	background: #f2f2f2;
	color: var(--boa-ink);
}

.boa-cc .boa-cc__btn:active {
	transform: scale(0.97);
}

.boa-cc .boa-cc__btn:focus-visible {
	outline: 2px solid var(--boa-accent);
	outline-offset: 2px;
}

/* Floating "Gérer mes cookies" button (permanent way to change the choice, cookie policy §8).
   "button." raises the selectors above Hello Elementor's reset.css ([type="button"] has the same weight
   as one class and loads later, which turned it into a pink outlined square).
   --boa-cc-lift (consent.js) keeps it above the footer so it never sits on the footer links and icons. */
button.boa-cc-manage,
button.boa-cc-manage:hover,
button.boa-cc-manage:focus {
	position: fixed;
	left: 16px;
	bottom: calc(16px + var(--boa-cc-lift, 0px));
	z-index: 9990;
	display: flex;
	align-items: center;
	justify-content: center;
	box-sizing: border-box;
	width: 44px;
	height: 44px;
	margin: 0;
	padding: 0;
	border: 1px solid #e6e6e6;
	border-radius: 50%;
	background: #ffffff;
	color: #101010;
	box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15);
	cursor: pointer;
	transition: transform 160ms ease, box-shadow 160ms ease;
}

button.boa-cc-manage[hidden] {
	display: none;
}

button.boa-cc-manage:hover {
	transform: translateY(-2px);
	box-shadow: 0 6px 18px rgba(0, 0, 0, 0.2);
}

button.boa-cc-manage:focus-visible {
	outline: 2px solid #2f4737;
	outline-offset: 2px;
}

@media (max-width: 560px) {
	.boa-cc {
		padding: 10px;
	}

	.boa-cc .boa-cc__card {
		padding: 16px;
		border-radius: 14px;
	}

	.boa-cc .boa-cc__btn {
		flex: 1 1 calc(50% - 4px);
		padding: 10px 12px;
	}

	.boa-cc .boa-cc__btn--ghost {
		order: 3;
		flex-basis: 100%;
		margin-right: 0;
	}
}

@media (prefers-reduced-motion: reduce) {
	.boa-cc .boa-cc__card { animation: none; }
	.boa-cc .boa-cc__switch,
	.boa-cc .boa-cc__switch::after,
	.boa-cc .boa-cc__btn,
	button.boa-cc-manage { transition: none; }
}
