.site-lang-switcher {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.site-lang-switcher > summary {
  list-style: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 32px;
  padding: 4px 10px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  font-size: 13px;
  line-height: 1.2;
  cursor: pointer;
  user-select: none;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.site-lang-switcher > summary::-webkit-details-marker {
  display: none;
}

.site-lang-switcher > summary::after {
  content: "";
  width: 0;
  height: 0;
  margin-left: 2px;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid currentColor;
  opacity: 0.85;
}

.site-lang-switcher[open] > summary,
.site-lang-switcher > summary:hover {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.34);
}

.site-lang-switcher__flag {
  width: 18px;
  height: 12px;
  object-fit: cover;
  border-radius: 2px;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.08);
  flex: 0 0 auto;
}

.site-lang-switcher__label {
  font-weight: 500;
  white-space: nowrap;
  color: inherit;
}

.site-lang-switcher--topbar > summary,
.tf-topbar .site-lang-switcher > summary,
.top-header .site-lang-switcher > summary {
  color: #ffffff;
}

.tf-topbar.topbar-white .site-lang-switcher > summary,
.tf-topbar.style-2.bg_white .site-lang-switcher > summary,
.tf-topbar.bg_white .site-lang-switcher > summary {
  color: #0f172a;
  border-color: rgba(15, 23, 42, 0.12);
  background: rgba(255, 255, 255, 0.92);
}

.tf-topbar.topbar-white .site-lang-switcher[open] > summary,
.tf-topbar.topbar-white .site-lang-switcher > summary:hover,
.tf-topbar.style-2.bg_white .site-lang-switcher[open] > summary,
.tf-topbar.style-2.bg_white .site-lang-switcher > summary:hover,
.tf-topbar.bg_white .site-lang-switcher[open] > summary,
.tf-topbar.bg_white .site-lang-switcher > summary:hover {
  background: #ffffff;
  border-color: rgba(15, 23, 42, 0.18);
}

.site-lang-switcher__menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 1200;
  min-width: 160px;
  margin: 0;
  padding: 6px;
  list-style: none;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.16);
  border: 1px solid rgba(15, 23, 42, 0.08);
}

.site-lang-switcher__menu a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 8px;
  color: #0f172a !important;
  text-decoration: none;
  font-size: 13px;
}

.site-lang-switcher__menu a:hover,
.site-lang-switcher__menu a.is-active {
  background: #f1f5f9;
}

.site-lang-switcher--navbar > summary {
  border-color: rgba(15, 23, 42, 0.12);
  background: rgba(255, 255, 255, 0.92);
  color: #0f172a;
}

.site-lang-switcher--navbar[open] > summary,
.site-lang-switcher--navbar > summary:hover {
  background: #fff;
  border-color: rgba(15, 23, 42, 0.18);
}

.tf-languages .image-select {
  display: none !important;
}

.tf-languages .site-lang-switcher {
  display: inline-flex;
}
