/* Notice Banners – frontend */

.notice-banners {
	position: relative;
	z-index: 9990;
	width: 100%;
	margin: 0;
	padding: 0;
}

.notice-banners--top-sticky {
	position: -webkit-sticky;
	position: sticky;
	top: 0;
}

.admin-bar .notice-banners--top-sticky {
	top: 32px;
}

@media screen and (max-width: 782px) {
	.admin-bar .notice-banners--top-sticky {
		top: 46px;
	}
}

@media screen and (max-width: 600px) {
	.admin-bar .notice-banners--top-sticky {
		top: 0;
	}
}

.notice-banners--bottom {
	position: fixed;
	right: 0;
	bottom: 0;
	left: 0;
}

.notice-banner {
	position: relative;
	box-sizing: border-box;
	background: var(--nb-bg, #b91c1c);
	color: var(--nb-fg, #ffffff);
	font-family: inherit;
	font-size: 15px;
	line-height: 1.45;
	text-align: center;
}

.notice-banner[hidden] {
	display: none !important;
}

.notice-banner + .notice-banner {
	box-shadow: inset 0 1px 0 rgba(0, 0, 0, 0.12);
}

.notice-banners--bottom .notice-banner:first-child {
	box-shadow: 0 -2px 12px rgba(0, 0, 0, 0.15);
}

.notice-banner__inner {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 6px 16px;
	box-sizing: border-box;
	max-width: 1200px;
	margin: 0 auto;
	padding: 10px 16px;
}

.notice-banner--dismissible .notice-banner__inner {
	padding-right: 52px;
	padding-left: 52px;
}

.notice-banner__text {
	min-width: 0;
}

.notice-banner .notice-banner__text p {
	margin: 0;
	padding: 0;
	color: inherit;
	font-size: inherit;
	line-height: inherit;
}

.notice-banner .notice-banner__text p + p {
	margin-top: 0.35em;
}

.notice-banner .notice-banner__text a {
	color: inherit;
	text-decoration: underline;
}

.notice-banner .notice-banner__button,
.notice-banner .notice-banner__button:visited {
	display: inline-block;
	padding: 5px 14px;
	border: 0;
	border-radius: 999px;
	background: var(--nb-fg, #ffffff);
	color: var(--nb-bg, #b91c1c);
	font-size: 14px;
	font-weight: 600;
	line-height: 1.3;
	text-decoration: none;
	white-space: nowrap;
	transition: opacity 0.15s ease;
}

.notice-banner .notice-banner__button:hover,
.notice-banner .notice-banner__button:focus {
	color: var(--nb-bg, #b91c1c);
	text-decoration: none;
	opacity: 0.85;
}

.notice-banner .notice-banner__button:focus-visible,
.notice-banner .notice-banner__text a:focus-visible {
	outline: 2px solid currentColor;
	outline-offset: 2px;
}

.notice-banner .notice-banner__button[hidden],
.notice-banner .notice-banner__close[hidden] {
	display: none;
}

.notice-banner .notice-banner__close {
	all: unset;
	position: absolute;
	top: 50%;
	right: 8px;
	display: flex;
	align-items: center;
	justify-content: center;
	box-sizing: border-box;
	width: 36px;
	height: 36px;
	border-radius: 50%;
	color: inherit;
	cursor: pointer;
	opacity: 0.85;
	transform: translateY(-50%);
}

.notice-banner .notice-banner__close::before {
	content: "";
	position: absolute;
	inset: 0;
	border-radius: inherit;
	background: currentColor;
	opacity: 0;
	transition: opacity 0.15s ease;
}

.notice-banner .notice-banner__close:hover {
	opacity: 1;
}

.notice-banner .notice-banner__close:hover::before {
	opacity: 0.15;
}

.notice-banner .notice-banner__close:focus-visible {
	outline: 2px solid currentColor;
	outline-offset: 1px;
}

.notice-banner .notice-banner__close svg {
	position: relative;
	display: block;
	width: 18px;
	height: 18px;
	pointer-events: none;
}

@media screen and (max-width: 600px) {
	.notice-banner {
		font-size: 14px;
	}

	.notice-banner__inner {
		padding: 9px 14px;
	}

	.notice-banner--dismissible .notice-banner__inner {
		justify-content: flex-start;
		padding-right: 48px;
		padding-left: 14px;
		text-align: left;
	}

	.notice-banner .notice-banner__close {
		right: 4px;
	}
}

@media print {
	.notice-banners,
	.notice-banners-spacer {
		display: none !important;
	}
}
