/* Header notice. The adjustable media queries are added from validated ACF values. */
.schweng-topbar-layout {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	min-width: 0;
}
.schweng-topbar-layout__menu {
	flex: 0 0 100%;
	min-width: 0;
	max-width: 100%;
}
.schweng-topbar-layout__menu .nav-link { overflow-wrap: anywhere; }
.schweng-header-countdown {
	display: flex;
	flex: 0 1 auto;
	flex-wrap: wrap;
	align-items: center;
	gap: 2px 8px;
	min-width: 0;
	max-width: 100%;
	min-height: 40px;
	padding: 6px 15px;
	line-height: 1.35;
	overflow-wrap: anywhere;
}
body:not(.switch-header) :is(.image-area-slide, .image-area-slide-responsive) #masthead.header-logo-transition:not(.header-small) .schweng-header-countdown,
body.schweng-has-notice.header-transparent.has-image-area:not(.schweng-notice-enhanced):not(.switch-header) .schweng-header-countdown {
	color: #fff;
}
.schweng-header-countdown__time {
	font-variant-numeric: tabular-nums;
	white-space: nowrap;
}
.schweng-topbar--with-countdown .schweng-notice {
	flex: 1 1 18rem;
	min-width: min(18rem, 100%);
}
.schweng-notice {
	display: none;
	flex: 0 0 100%;
	align-items: center;
	min-width: 0;
	max-width: 100%;
	min-height: 40px;
	padding: 0 8px;
	gap: 8px;
	color: var(--schweng-notice-color, #fff);
	background: var(--schweng-notice-background, #1b1b1b);
	font-size: 16px;
	line-height: 1.5;
}
.schweng-notice__viewport { flex: 1 1 0; min-width: 0; }
body.schweng-notice-enhanced .schweng-notice:not(.is-running) .schweng-notice__viewport {
	max-height: min(50vh, 18rem);
	overflow: auto;
}
.schweng-notice__viewport:focus-visible { outline: 2px solid currentColor; outline-offset: -2px; }
.schweng-notice__track { display: block; }
.schweng-notice__content {
	padding: 8px 0;
	overflow-wrap: anywhere;
	text-align: center;
}
.schweng-notice__content strong, .schweng-notice__content b { font-weight: 700; }
.schweng-notice__toggle {
	display: inline-flex;
	flex: 0 0 36px;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	margin: 2px 0;
	padding: 0;
	border: 1px solid currentColor;
	border-radius: 3px;
	color: inherit;
	background: transparent;
	font: inherit;
	line-height: 1;
	cursor: pointer;
}
.schweng-notice__toggle[hidden] { display: none; }
.schweng-notice__toggle:hover { background: rgb(127 127 127 / 20%); }
.schweng-notice__toggle:focus-visible { outline: 2px solid currentColor; outline-offset: 2px; }
.schweng-notice.is-running .schweng-notice__viewport { overflow: hidden; }
.schweng-notice.is-running .schweng-notice__track {
	display: flex;
	width: max-content;
	animation: schweng-notice-scroll var(--schweng-notice-duration, 30s) linear infinite;
}
.schweng-notice.is-running .schweng-notice__content {
	flex: 0 0 auto;
	padding-inline-end: 48px;
	white-space: nowrap;
	overflow-wrap: normal;
}
.schweng-notice.is-running.is-single .schweng-notice__content { padding-inline-end: 0; }
.schweng-notice__content[data-notice-copy] { display: none; }
.schweng-notice.is-running .schweng-notice__content[data-notice-copy] { display: block; }
@keyframes schweng-notice-scroll {
	from { transform: translateX(var(--schweng-notice-start, 0px)); }
	to { transform: translateX(calc(-1 * var(--schweng-notice-distance, 0px))); }
}
/* Preserve the theme's breakpoint-dependent base padding; JS measures its actual value. */
body.schweng-notice-enhanced [data-schweng-notice-offset] {
	padding-top: calc(var(--schweng-notice-base-padding, 0px) + var(--schweng-notice-extra-height, 0px)) !important;
}
@media (prefers-reduced-motion: reduce) {
	.schweng-notice.is-running .schweng-notice__track { display: block; width: auto; animation: none; }
	.schweng-notice.is-running .schweng-notice__viewport { overflow: visible; }
	.schweng-notice.is-running .schweng-notice__content { white-space: normal; overflow-wrap: anywhere; padding-inline-end: 0; }
	.schweng-notice.is-running .schweng-notice__content[data-notice-copy], .schweng-notice__toggle { display: none; }
}
