/* WPNB Notification Bars - public styles (v1.0.0) */

.wpnb-bar {
	width: 100%;
	overflow: hidden;
	padding: 8px 12px;
	box-sizing: border-box;
	text-align: center;
	line-height: 1.5;
}

.wpnb-track {
	display: inline-block;
	white-space: nowrap;
	max-width: 100%;
}

.wpnb-chunk {
	display: inline-block;
}

.wpnb-sep {
	padding: 0 .75em;
	opacity: .7;
}

/* Embedded PDF viewer ([pdf_view] shortcode). */
.wpnb-pdf-view {
	max-width: 100%;
}

/* Static, blink and fade bars wrap normally; only scroll stays on one line. */
.wpnb-anim-none .wpnb-track,
.wpnb-anim-blink .wpnb-track,
.wpnb-anim-fade .wpnb-track {
	white-space: normal;
}

/* Scroll (marquee). The track holds the messages twice so the loop is seamless. */
.wpnb-anim-scroll .wpnb-track {
	animation: wpnb-scroll-rtl 15s linear infinite;
}

.wpnb-dir-left-to-right.wpnb-anim-scroll .wpnb-track {
	animation-name: wpnb-scroll-ltr;
}

@keyframes wpnb-scroll-rtl {
	from { transform: translateX(0); }
	to { transform: translateX(-50%); }
}

@keyframes wpnb-scroll-ltr {
	from { transform: translateX(-50%); }
	to { transform: translateX(0); }
}

/* Blink: hard on/off, no fading. */
.wpnb-anim-blink .wpnb-track {
	animation: wpnb-blink 1.4s linear infinite;
}

@keyframes wpnb-blink {
	0%, 49% { opacity: 1; }
	50%, 100% { opacity: 0; }
}

/* Fade: one message at a time, rotated by wpnb-public.js. */
.wpnb-anim-fade .wpnb-msg {
	display: none;
}

.wpnb-anim-fade .wpnb-msg.wpnb-active {
	display: inline;
	animation: wpnb-fadein .6s ease;
}

@keyframes wpnb-fadein {
	from { opacity: 0; }
	to { opacity: 1; }
}

/* Site-wide top / bottom bars (position setting). */
.wpnb-fixed-top {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	z-index: 99999;
}

.wpnb-fixed-bottom {
	position: fixed;
	bottom: 0;
	left: 0;
	right: 0;
	z-index: 99999;
}

/* Respect reduced-motion preferences: show the bar still, without movement. */
@media (prefers-reduced-motion: reduce) {
	.wpnb-anim-scroll .wpnb-track,
	.wpnb-anim-blink .wpnb-track {
		animation: none;
	}
}
