.lang-switcher-dropdown-wrap {
  margin: 0 0 1rem;
  position: relative;
  text-align: left;
  z-index: 10;
}

.lang-switcher-dropdown {
  position: relative;
}

.lang-switcher-dropdown[open] {
  z-index: 101;
}

.lang-switcher-trigger {
  align-items: center;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: 999px;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.16);
  color: #111;
  cursor: pointer;
  display: inline-flex;
  gap: 0.625rem;
  list-style: none;
  padding: 0.5rem 0.75rem;
}

.lang-switcher-trigger::-webkit-details-marker {
  display: none;
}

.lang-switcher-label {
  color: #111;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  margin: 0;
  text-transform: uppercase;
}

.lang-switcher-flag {
  background-color: #f1f1f1;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  border-radius: 2px;
  display: inline-block;
  flex: 0 0 auto;
  height: 0.875rem;
  overflow: hidden;
  width: 1.25rem;
}

.lang-switcher-current {
  color: #111;
  font-size: 0.875rem;
  line-height: 1.2;
  min-width: 8rem;
}

.lang-switcher-menu {
  background: rgba(255, 255, 255, 0.98);
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: 1rem;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.18);
  left: 0;
  margin-top: 0.5rem;
  min-width: 100%;
  padding: 0.375rem;
  position: absolute;
  top: 100%;
}

.lang-switcher-option-form {
  margin: 0;
}

.lang-switcher-option {
  align-items: center;
  background: transparent;
  border: 0;
  border-radius: 0.75rem;
  color: #111;
  cursor: pointer;
  display: flex;
  gap: 0.625rem;
  padding: 0.45rem 0.625rem;
  text-align: left;
  width: 100%;
}

.lang-switcher-option:hover,
.lang-switcher-option:focus {
  background: rgba(0, 0, 0, 0.05);
  outline: none;
}

.lang-switcher-option.is-active {
  background: rgba(0, 0, 0, 0.08);
}

.lang-switcher-option-text {
  font-size: 0.875rem;
  line-height: 1.2;
}

@media (max-width: 767px) {
  .lang-switcher-dropdown-wrap {
    margin-bottom: 0.75rem;
  }

  .lang-switcher-trigger {
    gap: 0.5rem;
    padding: 0.45rem 0.65rem;
  }

  .lang-switcher-label {
    font-size: 0.625rem;
  }

  .lang-switcher-flag {
    height: 0.75rem;
    width: 1.0625rem;
  }

  .lang-switcher-current,
  .lang-switcher-option-text {
    font-size: 0.8125rem;
  }

  .lang-switcher-current {
    min-width: 6.5rem;
  }
}
