/* Nishi2 Alert: 上部固定バー（半透明・小さめ） */
html.n2alert-active { padding-top: 34px; }

.n2alert-bar {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	z-index: 99999;
	display: flex;
	align-items: center;
	gap: 8px;
	height: 34px;
	padding: 0 12px;
	font-size: 13px;
	line-height: 1.2;
	color: #fff;
	text-decoration: none;
	-webkit-backdrop-filter: blur(2px);
	backdrop-filter: blur(2px);
	box-shadow: 0 1px 6px rgba( 0, 0, 0, .25 );
	white-space: nowrap;
	overflow: hidden;
}

/* レベル別カラー（後ろが透ける半透明） */
.n2alert-advisory { background: rgba( 230, 160, 10, .82 ); }
.n2alert-warning  { background: rgba( 211, 47, 47, .82 ); }
.n2alert-special  { background: rgba( 106, 27, 154, .86 ); }

.n2alert-bar .n2alert-ico { font-size: 15px; flex: 0 0 auto; }
.n2alert-bar .n2alert-txt {
	flex: 1 1 auto;
	overflow: hidden;
	text-overflow: ellipsis;
	font-weight: 500;
}
.n2alert-bar .n2alert-txt b { font-weight: 700; }
.n2alert-bar .n2alert-cta {
	flex: 0 0 auto;
	font-weight: 700;
	background: rgba( 255, 255, 255, .22 );
	border-radius: 999px;
	padding: 3px 10px;
	font-size: 12px;
}
.n2alert-bar[aria-disabled="true"] { cursor: default; }

/* ログイン時：WP管理バー（編集バー）の下に出して重なりを防ぐ */
body.admin-bar .n2alert-bar { top: 32px; }
@media screen and ( max-width: 782px ) {
	body.admin-bar .n2alert-bar { top: 46px; }
}

@media ( min-width: 768px ) {
	.n2alert-bar { font-size: 14px; }
}
