/* RecoTac language switcher */
.header-content {
  position: relative;
}

.lang-switch {
  margin-left: auto;
  position: relative;
  z-index: 120;
}

.lang-switch-btn {
  appearance: none;
  border: 1px solid #ddd;
  background: #fff;
  color: #333;
  font-size: 0.9rem;
  line-height: 1.2;
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.lang-switch-btn::after {
  content: '';
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid #666;
  margin-left: 0.15rem;
}

.lang-switch.is-open .lang-switch-btn::after {
  transform: rotate(180deg);
}

.lang-switch-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 0.4rem);
  min-width: 180px;
  margin: 0;
  padding: 0.35rem 0;
  list-style: none;
  background: #fff;
  border: 1px solid #eaeaea;
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.lang-switch-menu[hidden] {
  display: none !important;
}

.lang-switch-menu li button {
  width: 100%;
  appearance: none;
  border: 0;
  background: transparent;
  text-align: left;
  padding: 0.55rem 0.9rem;
  font-size: 0.9rem;
  color: #333;
  cursor: pointer;
}

.lang-switch-menu li button:hover,
.lang-switch-menu li button.is-active {
  background: #f5f5f5;
  color: #000;
}

@media (max-width: 768px) {
  .header-content {
    flex-wrap: wrap;
    row-gap: 0.75rem;
  }

  .lang-switch {
    margin-left: 0;
    width: 100%;
    display: flex;
    justify-content: flex-end;
  }
}
