/* Home Notify Banner – colors come from the inline --hnb-* variables. */

.hnb {
	position: absolute;
	top: 2px;
	left: 50%;
	z-index: 999;
	width: max-content;
	max-width: calc(100vw - 20px);
	transform: translateX(-50%);
}

.hnb[hidden],
.hnb [hidden] {
	display: none !important;
}

.hnb__label,
.hnb__label:hover,
.hnb__label:focus {
	display: block;
	margin: 0;
	padding: 5px 10px;
	border: var(--hnb-border, none);
	border-radius: 5px;
	background: var(--hnb-bg, #ff0fff);
	color: var(--hnb-fg, #000);
	font: inherit;
	font-size: 1rem;
	font-weight: 600;
	letter-spacing: 0.0333em;
	line-height: 1.25;
	text-align: center;
	text-decoration: none;
	text-transform: uppercase;
	cursor: pointer;
}

.hnb__label {
	animation: hnb-blink 5s linear infinite;
}

.hnb__label:focus-visible {
	outline: 2px solid currentColor;
	outline-offset: 2px;
	animation: none;
}

.hnb__panel {
	box-sizing: border-box;
	width: min(800px, calc(100vw - 20px));
	padding: 5px 10px;
	border-radius: 5px;
	background: #eee;
	color: #000;
	text-align: left;
}

.hnb__messages {
	margin: 0;
	padding-left: 1.25em;
}

.hnb__close,
.hnb__close:hover,
.hnb__close:focus {
	display: block;
	margin: 15px 0 5px auto;
	padding: 0;
	border: 0;
	background: none;
	color: #000;
	font: inherit;
	font-size: 20px;
	font-weight: 500;
	text-decoration: underline;
	cursor: pointer;
}

@keyframes hnb-blink {
	50% {
		opacity: 0;
	}
}

@media (prefers-reduced-motion: reduce) {
	.hnb__label {
		animation: none;
	}
}

/* Settings page preview: static and opened. */
.hnb--preview {
	position: static;
	width: auto;
	max-width: none;
	transform: none;
}

.hnb--preview .hnb__label {
	display: inline-block;
	margin-bottom: 10px;
	animation: none;
}

.hnb--preview .hnb__panel {
	max-width: 100%;
}
