/* ==========================================================================
   WOW! Site Alert — one notice bar at the top of every page.
   Colours arrive as custom properties on the element itself, set from the
   preset chosen at Settings -> WOW Alert.
   ========================================================================== */

.wow-alert {
	background: var(--wow-alert-bg, #402A5F);
	color: var(--wow-alert-fg, #ffffff);
	position: relative;
	z-index: 100;
	font-size: 0.95rem;
	line-height: 1.45;
}

.wow-alert__inner {
	max-width: 1200px;
	margin: 0 auto;
	padding: 12px 48px 12px 24px;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 8px 18px;
	text-align: center;
}

.wow-alert__message {
	margin: 0;
	color: inherit;
}

.wow-alert__message a {
	color: inherit;
	text-decoration: underline;
	text-underline-offset: 2px;
}

.wow-alert__link {
	flex: none;
	display: inline-block;
	background: var(--wow-alert-fg, #ffffff);
	color: var(--wow-alert-bg, #402A5F) !important;
	text-decoration: none;
	padding: 6px 20px;
	border-radius: 50px;
	font-size: 0.85rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.02em;
	white-space: nowrap;
	transition: opacity 0.2s ease;
}

.wow-alert__link:hover {
	opacity: 0.85;
}

.wow-alert__dismiss {
	position: absolute;
	top: 50%;
	right: 12px;
	transform: translateY(-50%);
	background: none;
	border: 0;
	padding: 4px 10px;
	font-size: 1.5rem;
	line-height: 1;
	color: inherit;
	opacity: 0.7;
	cursor: pointer;
}

.wow-alert__dismiss:hover,
.wow-alert__dismiss:focus-visible {
	opacity: 1;
}

.wow-alert__dismiss:focus-visible {
	outline: 2px solid var(--wow-alert-fg, #fff);
	outline-offset: 2px;
	border-radius: 4px;
}

@media (max-width: 600px) {
	.wow-alert__inner {
		padding: 12px 44px 12px 16px;
		font-size: 0.9rem;
	}
}

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