/**
 * Sticky Bar — horizontal nav; high z-index above carousels (below theme modals).
 */
.wdt-sticky-bar {
	--wdt-sticky-bar-bg: #fff;
	--wdt-sticky-bar-border: rgba(0, 0, 0, 0.08);
	--wdt-sticky-bar-highlight-bg: #e53935;
	--wdt-sticky-bar-highlight-color: #fff;
	--wdt-sticky-bar-z-index: 500;
	position: relative;
	z-index: auto;
}

.wdt-sticky-bar--fixed {
	z-index: var(--wdt-sticky-bar-z-index);
}

.wdt-sticky-bar__placeholder {
	min-height: 1px;
}

.wdt-sticky-bar__inner {
	display: flex;
	align-items: center;
	gap: 24px;
	padding: 12px 20px;
	background: var(--wdt-sticky-bar-bg);
	border-block: 1px solid var(--wdt-sticky-bar-border);
	box-shadow: 0 1px 0 var(--wdt-sticky-bar-border);
}

.wdt-sticky-bar--fixed .wdt-sticky-bar__inner {
	position: fixed;
	inset-inline: 0;
	z-index: var(--wdt-sticky-bar-z-index);
	box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

.wdt-sticky-bar__title {
	flex: 0 0 auto;
	font-weight: 600;
	font-size: 16px;
	line-height: 1.3;
	white-space: nowrap;
}

.wdt-sticky-bar__nav {
	display: flex;
	flex: 1 1 auto;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
	min-width: 0;
}

.wdt-sticky-bar__link {
	display: inline-flex;
	align-items: center;
	padding: 8px 14px;
	border-radius: 4px;
	color: inherit;
	text-decoration: none;
	font-size: 13px;
	line-height: 1.3;
	white-space: nowrap;
	transition: background-color 0.2s ease, color 0.2s ease;
}

.wdt-sticky-bar__link:is(:hover, :focus, :active) {
	text-decoration: none;
	opacity: 0.85;
}

.wdt-sticky-bar__link--highlighted {
	background-color: var(--wdt-sticky-bar-highlight-bg);
	color: var(--wdt-sticky-bar-highlight-color);
}

.wdt-sticky-bar__link--highlighted:is(:hover, :focus, :active) {
	text-decoration: none;
	opacity: 1;
	color: var(--wdt-sticky-bar-highlight-color);
}

@media (max-width: 767.98px) {
	.wdt-sticky-bar__inner {
		gap: 0;
		padding: 10px 0;
	}

	.wdt-sticky-bar__title {
		display: none;
	}

	.wdt-sticky-bar__nav {
		flex-wrap: nowrap;
		gap: 6px;
		padding-inline: 16px;
		overflow-x: auto;
		overflow-y: hidden;
		-webkit-overflow-scrolling: touch;
		scrollbar-width: none;
	}

	.wdt-sticky-bar__nav::-webkit-scrollbar {
		display: none;
	}

	.wdt-sticky-bar__link {
		flex: 0 0 auto;
	}
}
