/* ── Alert Bar ────────────────────────────────────────────────────────────── */

#wnmu-alert-bar {
	position: relative;
	background: var(--wnmu-bg, #b5451b);
	color: var(--wnmu-color, #fff);
	padding: 10px 52px 10px 20px;
	display: flex;
	align-items: center;
	justify-content: center;
	box-shadow: 0 2px 8px rgba(0, 0, 0, .3);
	overflow: hidden;
	max-height: 200px;
	transition: max-height .35s ease, opacity .3s ease, padding .3s ease;
}

#wnmu-alert-bar.wnmu-hiding {
	max-height: 0;
	opacity: 0;
	padding-top: 0;
	padding-bottom: 0;
}

.wnmu-alert-inner {
	display: flex;
	align-items: center;
	gap: 16px;
	flex-wrap: wrap;
	justify-content: center;
	max-width: 1200px;
	width: 100%;
}

.wnmu-alert-title {
	margin: 0;
	font-size: 15px;
	font-weight: 600;
	line-height: 1.4;
	color: var(--wnmu-color, #fff);
}

/* ── "More info" button ───────────────────────────────────────────────────── */

.wnmu-alert-btn {
	background: transparent;
	border: 2px solid currentColor;
	color: var(--wnmu-color, #fff);
	padding: 4px 16px;
	border-radius: 4px;
	cursor: pointer;
	font-size: .875em;
	font-weight: 600;
	white-space: nowrap;
	transition: background .15s;
	flex-shrink: 0;
}

.wnmu-alert-btn:hover,
.wnmu-alert-btn:focus-visible {
	background: rgba(255, 255, 255, .2);
	outline: 2px solid currentColor;
	outline-offset: 2px;
}

/* ── Close button ─────────────────────────────────────────────────────────── */

.wnmu-alert-close {
	position: absolute;
	right: 14px;
	top: 50%;
	transform: translateY(-50%);
	background: transparent;
	border: none;
	color: var(--wnmu-color, #fff);
	font-size: 22px;
	line-height: 1;
	cursor: pointer;
	padding: 4px 8px;
	opacity: .75;
	transition: opacity .15s;
}

.wnmu-alert-close:hover,
.wnmu-alert-close:focus-visible {
	opacity: 1;
	outline: 2px solid currentColor;
	outline-offset: 2px;
}

/* ── Modal overlay ────────────────────────────────────────────────────────── */

#wnmu-alert-overlay {
	position: fixed;
	inset: 0;
	z-index: 1000000;
	background: rgba(0, 0, 0, .55);
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 20px;
}

#wnmu-alert-overlay[hidden] {
	display: none;
}

/* ── Modal box ────────────────────────────────────────────────────────────── */

.wnmu-modal-box {
	background: #fff;
	color: #222;
	border-radius: 6px;
	max-width: 700px;
	width: 100%;
	max-height: 85vh;
	display: flex;
	flex-direction: column;
	box-shadow: 0 8px 32px rgba(0, 0, 0, .35);
	animation: wnmu-modal-in .2s ease;
}

@keyframes wnmu-modal-in {
	from { opacity: 0; transform: scale(.95); }
	to   { opacity: 1; transform: scale(1); }
}

.wnmu-modal-header {
	background: var(--wnmu-bg, #b5451b);
	color: var(--wnmu-color, #fff);
	padding: 16px 20px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	border-radius: 6px 6px 0 0;
	flex-shrink: 0;
}

.wnmu-modal-header h2 {
	margin: 0;
	font-size: 1.15rem;
	font-weight: 700;
	color: inherit;
	line-height: 1.3;
}

.wnmu-modal-close {
	background: transparent;
	border: none;
	color: inherit;
	font-size: 26px;
	line-height: 1;
	cursor: pointer;
	padding: 0 4px;
	opacity: .8;
	flex-shrink: 0;
	transition: opacity .15s;
}

.wnmu-modal-close:hover,
.wnmu-modal-close:focus-visible {
	opacity: 1;
	outline: 2px solid currentColor;
	outline-offset: 2px;
}

.wnmu-modal-body {
	padding: 24px 28px;
	overflow-y: auto;
	font-size: 16px;
	line-height: 1.65;
}

.wnmu-modal-body > *:first-child { margin-top: 0; }
.wnmu-modal-body > *:last-child  { margin-bottom: 0; }

/* ── Responsive ───────────────────────────────────────────────────────────── */

@media (max-width: 600px) {
	.wnmu-alert-inner {
		flex-direction: column;
		gap: 8px;
	}

	.wnmu-alert-title {
		font-size: 14px;
		text-align: center;
	}
}
