/**
 * GEMKIBO — switcher języka (TranslatePress). Nagłówek = dropdown, drawer = lista pozioma.
 */
.gk-lang { position: relative; }
.gk-lang--header { display: inline-flex; }

.gk-lang__current {
	all: unset; box-sizing: border-box;
	display: inline-flex; align-items: center; gap: 5px;
	padding: 7px 10px; border-radius: 9999px; cursor: pointer;
	color: #1F3D14; font-size: 12.5px; font-weight: 700; line-height: 1;
	transition: background .15s ease;
}
.gk-lang__current:hover { background: rgba(31, 61, 20, .06); }
.gk-lang__current:focus-visible { outline: 2px solid #5DA935; outline-offset: 2px; }
.gk-lang__globe { flex-shrink: 0; }
.gk-lang__code { letter-spacing: .02em; }
.gk-lang__chev { transition: transform .2s ease; opacity: .65; }
.gk-lang.is-open .gk-lang__chev { transform: rotate(180deg); }

.gk-lang__menu {
	position: absolute; top: calc(100% + 8px); right: 0;
	min-width: 158px; margin: 0; padding: 6px; list-style: none;
	background: #FFFFFF; border: 1px solid rgba(15, 30, 15, .08); border-radius: 14px;
	box-shadow: 0 16px 40px rgba(31, 61, 20, .14);
	opacity: 0; visibility: hidden; transform: translateY(-6px);
	transition: opacity .18s ease, transform .18s ease, visibility .18s;
	z-index: 240;
}
.gk-lang.is-open .gk-lang__menu { opacity: 1; visibility: visible; transform: translateY(0); }
.gk-lang__menu li { margin: 0; }
.gk-lang__menu a {
	display: flex; align-items: center; gap: 9px;
	padding: 9px 11px; border-radius: 9px; text-decoration: none;
	color: #1F3D14; font-size: 13px; font-weight: 600;
	transition: background .15s ease, color .15s ease;
}
.gk-lang__menu a:hover { background: #F3F6F0; }
.gk-lang__menu a.is-active { background: #1F3D14; }
/* Aktywny język = biała czcionka na ciemnym tle. !important bije globalną regułę
   headera (.gk-header link → color: var(--gk-color-text) = #1a1c1c), która przez
   równą specyficzność i późniejszy load nadpisywała biel → ciemne na ciemnym. */
.gk-lang__menu a.is-active,
.gk-lang__menu a.is-active .gk-lang__menu-code,
.gk-lang__menu a.is-active .gk-lang__menu-name { color: #FFFFFF !important; }
.gk-lang__menu-code { font-weight: 800; font-size: 11px; min-width: 22px; opacity: .85; }

/* Wariant DRAWER — bez triggera, lista pozioma PL/EN/DE jako przyciski */
.gk-lang--drawer { width: 100%; }
.gk-lang--drawer .gk-lang__current { display: none; }
.gk-lang--drawer .gk-lang__menu {
	position: static; opacity: 1; visibility: inherit; transform: none;
	/* transition: none — zapobiega visibility .18s transition z reguły bazowej */
	transition: none;
	box-shadow: none; border: 0; padding: 0; min-width: 0;
	display: flex; gap: 8px;
}
.gk-lang--drawer .gk-lang__menu li { flex: 1; }
.gk-lang--drawer .gk-lang__menu a {
	justify-content: center; border: 1.5px solid rgba(15, 30, 15, .12);
	padding: 11px 8px;
}
.gk-lang--drawer .gk-lang__menu-name { display: none; }
.gk-lang--drawer .gk-lang__menu-code { min-width: 0; font-size: 13px; }
