/**
 * Consent banner. Deliberately small and unbranded beyond the palette:
 * it is compliance chrome, not a design element, and it must render the
 * same whatever the theme does. Ships hidden; the loader reveals it only
 * when no decision is stored (see assets/js/analytics.js).
 */

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

.sr-consent {
	position: fixed;
	left: 16px;
	right: 16px;
	bottom: 16px;
	z-index: 9999;
	display: flex;
	flex-wrap: wrap;
	gap: 14px 20px;
	align-items: center;
	justify-content: space-between;
	max-width: 880px;
	margin: 0 auto;
	padding: 16px 20px;
	border: 1px solid rgba(15, 43, 38, .12);
	border-radius: 12px;
	background: #FAFAF7;
	box-shadow: 0 10px 30px rgba(15, 43, 38, .18);
	color: #0F2B26;
	font-size: 14px;
	line-height: 1.5;
}

.sr-consent__text {
	flex: 1 1 320px;
	margin: 0;
}

.sr-consent__text a {
	color: #1D6A5A;
	text-decoration: underline;
}

.sr-consent__actions {
	display: flex;
	gap: 10px;
	flex: 0 0 auto;
}

/* The theme owns .btn; these two only guarantee the banner is usable even
   if it is ever dropped into a page that never loaded the theme styles. */
.sr-consent .btn {
	padding: 8px 18px;
	border: 0;
	border-radius: 8px;
	cursor: pointer;
	font: inherit;
	font-weight: 600;
}

.sr-consent .btn-amber {
	background: #F5A623;
	color: #0F2B26;
}

.sr-consent .btn-ghost {
	background: transparent;
	border: 1px solid rgba(15, 43, 38, .25);
	color: #0F2B26;
}

@media (max-width: 560px) {
	.sr-consent {
		flex-direction: column;
		align-items: stretch;
	}

	.sr-consent__actions {
		justify-content: flex-end;
	}
}
