.harley-topbar {
	position: fixed;
	top: auto;
	right: auto;
	bottom: 16px;
	left: 16px;
	z-index: 20;
	display: flex;
	align-items: center;
	gap: 0.5rem;
	pointer-events: none;
}

.harley-topbar > * {
	pointer-events: auto;
}

.harley-topbar-hidden {
	display: none !important;
}

.harley-lang-switcher {
	display: flex;
	align-items: center;
	margin: 0.45rem 0.65rem 0.7rem;
	flex-shrink: 0;
	position: relative;
	z-index: 1;
}

.body-sidebar .harley-lang-btn,
.desk-sidebar .harley-lang-btn {
	width: 100%;
	justify-content: flex-start;
}

.harley-lang-btn {
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
	min-height: 2rem;
	padding: 0.25rem 0.7rem;
	border: 1px solid var(--border-color, #d1d8dd);
	border-radius: 0.5rem;
	background: var(--control-bg, #fff);
	color: var(--text-color, #36414c);
	font-size: 0.8125rem;
	line-height: 1.2;
	cursor: pointer;
	white-space: nowrap;
	box-shadow: var(--shadow-sm, 0 1px 2px rgba(0, 0, 0, 0.08));
}

.harley-lang-btn:hover {
	background: var(--subtle-fg, var(--control-bg));
}

.harley-lang-btn:focus,
.harley-lang-btn:focus-visible {
	outline: 2px solid var(--primary, #2490ef);
	outline-offset: 2px;
}

.harley-lang-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 1.5rem;
	height: 1.35rem;
	padding: 0 0.25rem;
	border-radius: 0.3rem;
	background: var(--bg-color, rgba(127, 127, 127, 0.15));
	font-size: 0.7rem;
	font-weight: 700;
	letter-spacing: 0.03em;
	line-height: 1;
}

.harley-lang-current {
	max-width: 9rem;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

#harley-lang-menu {
	min-width: 9rem;
	z-index: 2100;
}

#harley-lang-menu .dropdown-item.active {
	font-weight: 600;
	background: var(--bg-light-gray, #f5f7fa);
}

img.harley-app-logo {
	width: 22px;
	height: 22px;
	object-fit: contain;
	display: block;
}

/* Never sit on Guardar / page actions */
.page-head .harley-lang-switcher,
.desktop-navbar .harley-lang-switcher,
.page-actions .harley-lang-switcher,
.standard-actions .harley-lang-switcher {
	display: none !important;
}

.page-head .page-actions,
.page-head .standard-actions,
.form-page .standard-actions {
	position: relative;
	z-index: 50;
}

#language-switcher {
	position: relative;
	z-index: 1;
	margin-left: 0.75rem;
	flex: 0 0 auto;
}

.sr-only {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

@media (max-width: 768px) {
	.harley-lang-current {
		display: none;
	}

	.harley-topbar {
		left: 12px;
		bottom: 12px;
		right: auto;
		top: auto;
	}
}
