/* ── TranslatePress Language Switcher – dropdown variant ── */

.trp_custom_language_switcher {
  position: relative;
  display: inline-block;
  font-style: normal;
  font-weight: 300;
  text-transform: uppercase;
}

/* Toggle button */
button.trp-switcher__toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.25em;
  background: none;
border: none;
  padding: 5px 10px !important;
  margin: 0;
  cursor: pointer;
  font: inherit;
  font-size: inherit;
  text-transform: uppercase;
  color: inherit;
  line-height: 1;
}

.trp-switcher__toggle:focus-visible {
  outline: 1px solid currentColor;
  outline-offset: 1px;
  border-radius: 2px;
}

.trp-switcher__globe {
  display: flex;
  align-items: center;
}

.trp-switcher__chevron {
  display: flex;
  align-items: center;
  transition: transform 0.2s ease;
}

.trp-switcher--open .trp-switcher__chevron {
  transform: rotate(180deg);
}

/* Dropdown list */
.trp-switcher__dropdown {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  min-width: 100%;
  list-style: none !important;
  margin: 0;
  padding: 4px 0;
  background: #ffffff;
  color: #111111;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 4px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  z-index: 9999;

  /* Animate in */
  animation: trp-dropdown-in 0.15s ease both;
}

@keyframes trp-dropdown-in {
  from {
    opacity: 0;
    transform: translateY(-4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.trp-switcher__dropdown li {
  list-style: none !important;
}

.trp-switcher__dropdown a {
  display: block;
  padding: 6px 14px;
  text-decoration: none !important;
  color: #111111 !important;
  white-space: nowrap;
  transition: background 0.15s;
}

.trp-switcher__dropdown a:hover,
.trp-switcher__dropdown a:focus {
  background: rgba(0, 0, 0, 0.06);
  outline: none;
}

/* ── TranslatePress Language Switcher – inline variant (LV | EN | RU) ── */

.trp-switcher--inline {
  /* Adjust per site: */
  --trp-inline-gap: 0.6em;              /* space on each side of the divider */
  --trp-inline-divider-color: currentColor;
  --trp-inline-divider-opacity: 0.4;
  --trp-inline-link-opacity: 0.6;       /* inactive languages; set from the block's "Teksts" panel */
  --trp-inline-divider-height: 0.9em;
  --trp-inline-current-weight: inherit; /* active language is not bold */
  /* --trp-inline-font-size is set from the block's "Teksts" panel; falls back to inherited size */

  display: block;
  font-size: var(--trp-inline-font-size, inherit);
}

.trp-switcher--inline .trp-switcher__list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  list-style: none !important;
  margin: 0;
  padding: 0;
  line-height: 1;
}

.trp-switcher--inline .trp-switcher__item {
  display: flex;
  align-items: center;
  list-style: none !important;
  margin: 0;
  padding: 0;
}

/* Divider line between languages */
.trp-switcher--inline .trp-switcher__item + .trp-switcher__item::before {
  content: "";
  display: block;
  width: 1px;
  height: var(--trp-inline-divider-height);
  margin: 0 var(--trp-inline-gap);
  background: var(--trp-inline-divider-color);
  opacity: var(--trp-inline-divider-opacity);
}

.trp-switcher--inline .trp-switcher__link {
  display: inline-block;
  padding: 4px 0;
  color: var(--trp-inline-text-color, inherit) !important;
  text-decoration: none !important;
  text-transform: uppercase;
  white-space: nowrap;
  opacity: var(--trp-inline-link-opacity);
  transition: opacity 0.15s ease, color 0.15s ease;
}

.trp-switcher--inline a.trp-switcher__link:hover,
.trp-switcher--inline a.trp-switcher__link:focus-visible {
  opacity: 1;
  color: var(--trp-inline-hover-color, var(--trp-inline-text-color, inherit)) !important;
}

.trp-switcher--inline a.trp-switcher__link:focus-visible {
  outline: 1px solid currentColor;
  outline-offset: 2px;
  border-radius: 2px;
}

/* Active language */
.trp-switcher--inline .is-current .trp-switcher__link {
  opacity: 1;
  color: var(--trp-inline-active-color, var(--trp-inline-text-color, inherit)) !important;
  font-weight: var(--trp-inline-current-weight);
  cursor: default;
}
