/* Cookie banner — fixed bottom bar in the footer palette. Fixed position, so
   showing it never moves page content (no layout shift). */
.wa-consent {
	position: fixed;
	left: 16px;
	right: 16px;
	bottom: 16px;
	z-index: 990;
	max-width: 1120px;
	margin: 0 auto;
	max-height: calc(100vh - 32px);
	overflow-y: auto;
	background: #F5F5EF;
	color: #263728;
	border: 1px solid #DCE0D6;
	border-radius: 16px;
	box-shadow: 0 8px 32px rgba(16, 24, 16, .16);
	font-size: 14px;
	line-height: 21px;
}

.wa-consent[hidden] { display: none; }

.wa-consent__inner {
	display: grid;
	grid-template-columns: 1fr auto;
	gap: 16px 32px;
	align-items: center;
	padding: 20px 24px;
}

.wa-consent__title {
	margin: 0 0 4px;
	font-size: 15px;
	line-height: 22px;
	font-weight: 600;
	color: #263728;
}

.wa-consent__text { margin: 0; color: #535B51; }

.wa-consent__text a { color: #263728; font-weight: 500; text-decoration: underline; text-underline-offset: 2px; }
.wa-consent__text a:hover { color: #4F7A21; }

.wa-consent__prefs {
	grid-column: 1 / -1;
	margin: 0;
	padding: 12px 0 0;
	border: 0;
	border-top: 1px solid #DCE0D6;
	display: grid;
	gap: 10px;
}

.wa-consent__prefs[hidden] { display: none; }

.wa-consent__legend {
	position: absolute;
	width: 1px; height: 1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
}

.wa-consent__opt {
	display: flex;
	gap: 10px;
	align-items: flex-start;
	color: #535B51;
	cursor: pointer;
}

.wa-consent__opt strong { color: #263728; font-weight: 600; }

.wa-consent__opt input {
	flex: none;
	width: 18px;
	height: 18px;
	margin: 2px 0 0;
	accent-color: #4F7A21;
}

.wa-consent__actions {
	display: flex;
	gap: 8px;
	flex-wrap: wrap;
	justify-content: flex-end;
}

/* One style for every choice: equal prominence. */
.wa-consent__btn {
	min-height: 44px;
	padding: 10px 20px;
	border: 1px solid #263728;
	border-radius: 9999px;
	background: #263728;
	color: #fff;
	font: inherit;
	font-weight: 600;
	font-size: 14px;
	cursor: pointer;
	white-space: nowrap;
	transition: background .15s ease;
}

.wa-consent__btn:hover { background: #335015; border-color: #335015; }

.wa-consent__btn:focus-visible,
.wa-consent__opt input:focus-visible,
.site-footer__consent:focus-visible {
	outline: 2px solid #ACDC79;
	outline-offset: 2px;
}

.wa-consent__btn[hidden] { display: none; }

/* Footer reopen link (button styled as a footer link). */
.site-footer__consent {
	padding: 0;
	border: 0;
	background: none;
	color: inherit;
	font: inherit;
	text-decoration: underline;
	text-underline-offset: 2px;
	cursor: pointer;
}

.site-footer__consent:hover { color: #4F7A21; }

@media (max-width: 760px) {
	.wa-consent {
		left: 8px;
		right: 8px;
		bottom: calc(8px + env(safe-area-inset-bottom));
		max-height: calc(100vh - 16px - env(safe-area-inset-bottom));
	}
	.wa-consent__inner { grid-template-columns: 1fr; padding: 16px; gap: 12px; }
	.wa-consent__actions { display:grid; grid-template-columns:1fr 1fr; gap:8px; }
	.wa-consent__btn { padding:10px 8px; white-space:normal; }
	.wa-consent__btn[data-consent-action="settings"], .wa-consent__btn[data-consent-action="save"] { grid-column:1 / -1; }
	.wa-consent__btn { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
	.wa-consent__btn { transition: none; }
}
