/* ==========================================================
   GoTran — Language Switcher Styles
   ========================================================== */

/* --- Switcher container --- */
.gotran-lang-switcher { position: relative; display: inline-flex; align-items: center; }

/* --- Toggle button --- */
/* Higher-specificity selectors + !important override the theme/Elementor
   global <button> styles (1px solid #cc3366 border, and a white text colour
   on hover that would make the currentColor globe icon disappear). */
.gotran-lang-switcher .gotran-lang-toggle,
.site-header .gotran-lang-toggle {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	background: none !important;
	border: 0 !important;
	border-radius: 4px !important;
	cursor: pointer;
	padding: 8px;
	color: var(--text, #2C1810) !important;
	font-family: inherit;
	font-size: 13px;
	font-weight: 500;
	transition: background 0.2s ease, color 0.2s ease;
	line-height: 1;
}
/* Keep the icon dark on hover (theme flips button text to white otherwise). */
.gotran-lang-switcher .gotran-lang-toggle:hover,
.site-header .gotran-lang-toggle:hover {
	background: rgba(44, 24, 16, 0.06) !important;
	color: var(--primary, #B71C1C) !important;
}
.gotran-lang-toggle:focus-visible { outline: 2px solid var(--primary, #B71C1C); outline-offset: 2px; }

.gotran-lang-globe { flex-shrink: 0; }
.gotran-lang-current { letter-spacing: 0.3px; }
.gotran-lang-arrow { flex-shrink: 0; transition: transform 0.2s ease; }
.gotran-lang-toggle[aria-expanded="true"] .gotran-lang-arrow { transform: rotate(180deg); }

/* --- Dropdown --- */
.gotran-lang-dropdown {
	position: absolute;
	top: 100%;
	right: 0;
	z-index: 1000;
	min-width: 160px;
	margin-top: 4px;
	padding: 6px 0;
	background: #fff;
	border: 1px solid rgba(44, 24, 16, 0.1);
	border-radius: 6px;
	box-shadow: 0 8px 24px rgba(44, 24, 16, 0.12);
	list-style: none;
	opacity: 0;
	visibility: hidden;
	transform: translateY(-4px);
	transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
}
.gotran-lang-dropdown.open {
	opacity: 1;
	visibility: visible;
	transform: translateY(0);
}

/* --- Language option --- */
.gotran-lang-option {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 10px 16px;
	color: var(--text, #2C1810);
	text-decoration: none;
	font-size: 14px;
	transition: background 0.15s ease, color 0.15s ease;
	white-space: nowrap;
}
.gotran-lang-option:hover { background: rgba(183, 28, 28, 0.06); color: var(--primary, #B71C1C); }
.gotran-lang-option:focus-visible { outline: 2px solid var(--primary, #B71C1C); outline-offset: -2px; }

.gotran-lang-option--active {
	color: var(--primary, #B71C1C);
	font-weight: 600;
}
.gotran-lang-option--active::after {
	content: '✓';
	margin-left: auto;
	font-size: 12px;
}

/* ==========================================================
   Desktop: inside nav bar, as an <li> just left of the shop CTA
   ========================================================== */
.gotran-lang-switcher--desktop { margin-left: 4px; }
/* The switcher is wrapped in <li class="nav-lang-item"> inside .nav-list */
.nav-list .nav-lang-item {
	display: flex;
	align-items: center;
	list-style: none;
	margin: 0;
	padding: 0;
}

/* ==========================================================
   Mobile: next to hamburger
   ========================================================== */
.gotran-lang-switcher--mobile { display: none; }

@media (max-width: 1185px) {
	.gotran-lang-switcher--desktop { display: none; }
	/* Switcher's auto margin pushes the switcher+hamburger group to the right. */
	.gotran-lang-switcher--mobile {
		display: inline-flex;
		margin-left: auto;
		margin-right: 0;
	}
	/* Hamburger sits directly after the switcher — override its own auto margin
	   (from the theme) so the two don't both push and center the switcher. */
	.gotran-lang-switcher--mobile + .mobile-menu-btn {
		margin-left: 4px !important;
	}
	.gotran-lang-switcher--mobile .gotran-lang-current { display: none; }
	.gotran-lang-switcher--mobile .gotran-lang-arrow { display: none; }
	.gotran-lang-switcher--mobile .gotran-lang-dropdown {
		right: 0;
		min-width: 150px;
	}
}
