/* AVIDE Analytics: consent banner. Small on purpose: the site's own design
 * tokens (--navy-*, --space-*) are not guaranteed to exist for a plugin
 * loaded independently of the theme, so this uses plain, safe values and
 * only a handful of theme custom properties with a fallback each. */

.avide-consent-banner {
	position: fixed;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 100000;
	background: var(--navy-900, #0b1f33);
	color: var(--neutral-0, #fff);
	box-shadow: 0 -2px 12px rgba(0, 0, 0, 0.25);
	padding: 16px;
}

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

.avide-consent-banner__inner {
	max-width: 1240px;
	margin: 0 auto;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 16px;
	justify-content: space-between;
}

.avide-consent-banner__text {
	margin: 0;
	flex: 1 1 320px;
	font-size: 0.95rem;
	line-height: 1.5;
}

.avide-consent-banner__text a {
	color: inherit;
	text-decoration: underline;
}

.avide-consent-banner__actions {
	display: flex;
	gap: 12px;
	flex: 0 0 auto;
}

/* Accept and Reject read as two equally weighted choices: same size, same
 * border, only the fill differs. Neither is a quiet "manage settings" link
 * dressed down to nudge one outcome over the other. */
.avide-consent-banner__btn {
	appearance: none;
	border: 2px solid var(--neutral-0, #fff);
	border-radius: 6px;
	padding: 10px 20px;
	font-size: 0.95rem;
	font-weight: 600;
	cursor: pointer;
	min-height: 44px;
}

.avide-consent-banner__reject {
	background: transparent;
	color: var(--neutral-0, #fff);
}

.avide-consent-banner__accept {
	background: var(--neutral-0, #fff);
	color: var(--navy-900, #0b1f33);
}

.avide-consent-banner__btn:focus-visible {
	outline: 3px solid var(--tier-gold, #e0a83e);
	outline-offset: 2px;
}

@media (max-width: 640px) {
	.avide-consent-banner__inner {
		flex-direction: column;
		align-items: stretch;
	}
	.avide-consent-banner__actions {
		justify-content: stretch;
	}
	.avide-consent-banner__btn {
		flex: 1 1 0;
	}
}
