/* LingoPress Pro — Language Switcher */

.lp-switcher {
  display: inline-flex;
  align-items: center;
}

/* ── List style ─────────────────────────────────────── */
.lp-switcher--list ul,
.lp-switcher--flags ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
}

.lp-switcher--list li,
.lp-switcher--flags li {
  margin: 0;
}

.lp-switcher--list a,
.lp-switcher--flags a {
  display: inline-flex;
  align-items: center;
  gap: .25rem;
  padding: .25rem .5rem;
  border-radius: 4px;
  text-decoration: none;
  color: inherit;
  transition: background-color .15s ease;
}

.lp-switcher--list a:hover,
.lp-switcher--flags a:hover {
  background-color: rgba(0, 0, 0, .07);
}

.lp-switcher--list .lp-current,
.lp-switcher--flags .lp-current {
  display: inline-flex;
  align-items: center;
  gap: .25rem;
  padding: .25rem .5rem;
  font-weight: 600;
  opacity: .9;
}

/* ── Dropdown style ─────────────────────────────────── */
.lp-switcher--dropdown {
  position: relative;
}

.lp-dropdown {
  position: relative;
}

.lp-dropdown__trigger {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  padding: .35rem .75rem;
  background: transparent;
  border: 1px solid currentColor;
  border-radius: 4px;
  cursor: pointer;
  font: inherit;
  color: inherit;
}

.lp-dropdown__arrow {
  font-size: .7em;
  line-height: 1;
  transition: transform .15s ease;
}

.lp-dropdown[data-open] .lp-dropdown__arrow {
  transform: rotate(180deg);
}

.lp-dropdown__list {
  display: none;
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  min-width: 100%;
  list-style: none;
  margin: 0;
  padding: .25rem 0;
  background: var(--wp--preset--color--background, #fff);
  border: 1px solid rgba(0, 0, 0, .15);
  border-radius: 4px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, .1);
  z-index: 9999;
}

.lp-dropdown[data-open] .lp-dropdown__list {
  display: block;
}

.lp-dropdown__list li {
  margin: 0;
}

.lp-dropdown__list a {
  display: flex;
  align-items: center;
  gap: .4rem;
  padding: .45rem 1rem;
  text-decoration: none;
  color: inherit;
  white-space: nowrap;
}

.lp-dropdown__list a:hover,
.lp-dropdown__list [aria-selected="true"] a {
  background-color: rgba(0, 0, 0, .06);
}

/* ── Shared ─────────────────────────────────────────── */
.lp-flag {
  font-size: 1.2em;
  line-height: 1;
}

.lp-name {
  font-size: .9em;
}
