:root {
	--tuwebmaster-topbar-admin-offset: 0px;
	--tuwebmaster-topbar-header-offset: 34px;
	--tuwebmaster-topbar-z-index: 999999;
}

.tuwebmaster-topbar {
	position: sticky;
	top: var(--tuwebmaster-topbar-admin-offset);
	left: auto;
	z-index: var(--tuwebmaster-topbar-z-index) !important;
	display: flex;
	box-sizing: border-box;
	align-items: center;
	justify-content: center;
	width: 100%;
	min-height: 34px;
	padding: 0 10px;
	overflow: hidden;
	flex-shrink: 0;
	background: #000;
	color: #fff;
	font-size: 14px;
	line-height: 1.2;
	text-align: center;
}

.tuwebmaster-topbar-offset-header {
	top: var(--tuwebmaster-topbar-header-offset) !important;
}

body.tuwebmaster-topbar-overlay-open .tuwebmaster-topbar {
	z-index: 1 !important;
}

.tuwebmaster-topbar__slide {
	display: none;
	white-space: nowrap;
}

.tuwebmaster-topbar__slide.is-active {
	display: block;
}

.tuwebmaster-topbar__viewport {
	width: 100%;
	overflow: hidden;
}

.tuwebmaster-topbar__track {
	display: inline-flex;
	align-items: center;
	gap: var(--tuwebmaster-topbar-gap, 40px);
	transform: translateX(0);
	animation: tuwebmaster-topbar-marquee var(--tuwebmaster-topbar-duration, 20s) linear infinite;
	will-change: transform;
}

.tuwebmaster-topbar__item {
	flex: 0 0 auto;
	white-space: nowrap;
}

.tuwebmaster-topbar__group {
	display: inline-flex;
	align-items: center;
	gap: var(--tuwebmaster-topbar-gap, 40px);
	flex: 0 0 auto;
}

.tuwebmaster-topbar--marquee:hover .tuwebmaster-topbar__track,
.tuwebmaster-topbar--marquee:focus-within .tuwebmaster-topbar__track {
	animation-play-state: paused;
}

@keyframes tuwebmaster-topbar-marquee {
	from {
		transform: translateX(0);
	}

	to {
		transform: translateX(var(--tuwebmaster-topbar-distance, -100%));
	}
}

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