/* Language switcher — Yieldario */
.lang-switcher {
  position: relative;
  z-index: 1002;
  flex-shrink: 0;
}

.header-toolbar {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.5rem;
  position: relative;
  z-index: 1002;
}

.lang-switcher__btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  height: 2.5rem;
  padding: 0 0.85rem;
  border: 1px solid rgba(0, 73, 56, 0.18);
  border-radius: 0.375rem;
  background: #fff;
  color: #004938;
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
  white-space: nowrap;
  transition: color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
}

.lang-switcher__btn:hover {
  background: #f3faf6;
  border-color: #004938;
  color: #004938;
}

.lang-switcher__btn[aria-expanded="true"] {
  border-color: #004938;
  color: #004938;
}

.lang-switcher__chevron {
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

.lang-switcher__btn[aria-expanded="true"] .lang-switcher__chevron {
  transform: rotate(180deg);
}

header .lang-switcher__list,
.lang-switcher__list {
  position: absolute;
  top: calc(100% + 0.4rem);
  right: 0;
  left: auto;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.15rem;
  width: max-content;
  min-width: 11.5rem;
  max-width: min(16rem, calc(100vw - 1.5rem));
  max-height: min(70vh, 22rem);
  overflow-x: hidden;
  overflow-y: auto;
  margin: 0;
  padding: 0.4rem;
  list-style: none;
  border: 1px solid rgba(0, 73, 56, 0.16);
  border-radius: 0.5rem;
  background: #fff;
  box-shadow: 0 8px 24px rgba(0, 73, 56, 0.12);
  z-index: 1003;
}

header .lang-switcher__list[hidden],
.lang-switcher__list[hidden] {
  display: none !important;
}

header .lang-switcher__list li,
.lang-switcher__list li {
  display: block;
  width: 100%;
  margin: 0;
  padding: 0;
  line-height: normal;
  border: 0;
}

header .lang-switcher__list a,
.lang-switcher__link {
  display: block;
  width: 100%;
  box-sizing: border-box;
  padding: 0.55rem 0.75rem;
  border-radius: 0.375rem;
  color: #0d121b;
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1.3;
  text-decoration: none;
  text-align: left;
  white-space: nowrap;
  writing-mode: horizontal-tb;
  direction: ltr;
  background: transparent;
  transition: background-color 0.15s ease, color 0.15s ease;
}

header .lang-switcher__list a:hover,
.lang-switcher__link:hover {
  background: #f3faf6;
  color: #004938;
}

header .lang-switcher__list a.lang-switcher__item--active,
.lang-switcher__item--active {
  background: rgba(0, 73, 56, 0.08);
  color: #004938;
  font-weight: 600;
  pointer-events: none;
}

.header-login {
  display: none;
  align-items: center;
  justify-content: center;
  height: 2.5rem;
  padding: 0 0.9rem;
  border-radius: 0.375rem;
  background: #004938;
  color: #fff !important;
  font-size: 0.8125rem;
  font-weight: 600;
  line-height: 1;
  text-decoration: none !important;
  white-space: nowrap;
  flex-shrink: 0;
}

.header-login:hover {
  background: #01382c;
  color: #fff !important;
}

.header,
.header > .container,
.header-row,
.header-col:last-child {
  overflow: visible;
}

.header-lang-mobile {
  display: none !important;
}

@media screen and (min-width: 992px) {
  .header .header-row {
    position: relative;
  }

  .header .header-col {
    flex-basis: auto;
    max-width: none;
  }

  .header .header-col:first-child {
    flex: 1 1 0;
    min-width: 0;
  }

  .header .header-col:nth-child(2) {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    flex: 0 0 auto;
    z-index: 1;
    text-align: center;
    pointer-events: none;
  }

  .header .header-col:nth-child(2) a {
    pointer-events: auto;
  }

  .header .header-col:last-child {
    flex: 1 1 0;
    flex-basis: auto;
    max-width: none;
    margin-left: auto;
    justify-content: flex-end;
  }
}

@media screen and (max-width: 991px) {
  .header .header-col {
    position: static;
    transform: none;
    pointer-events: auto;
  }

  .header .header-col:first-child {
    flex: 0 0 0;
    min-width: 0;
    max-width: 0;
    padding: 0;
  }

  .header .header-col:nth-child(2) {
    position: static;
    left: auto;
    top: auto;
    transform: none;
    flex: 1 1 auto;
    min-width: 0;
    text-align: left;
    z-index: auto;
    pointer-events: auto;
  }

  .header .header-col:last-child {
    flex: 0 0 auto;
    margin-left: 0;
  }

  .header-logo-name {
    display: none;
  }

  .header-logo-img {
    margin-right: 0;
  }

  .header-login {
    display: inline-flex;
  }

  .header-lang-mobile {
    display: block !important;
    border-bottom: 1px solid rgba(0, 73, 56, 0.1);
    padding: 0 0 12px !important;
    margin: 0 0 8px !important;
  }

  .header-menu .lang-switcher__list li,
  .header-menu .lang-switcher__list li:last-child {
    border-bottom: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  .header-menu .lang-switcher__list a,
  .header-menu .lang-switcher__list li:last-child a {
    padding: 0.55rem 0.75rem !important;
    border-radius: 0.375rem !important;
    background: transparent !important;
    color: #0d121b !important;
    font-weight: 500 !important;
    text-align: left !important;
  }

  .header-menu .lang-switcher__list a.lang-switcher__item--active,
  .header-menu .lang-switcher__list li:last-child a.lang-switcher__item--active {
    background: rgba(0, 73, 56, 0.08) !important;
    color: #004938 !important;
    font-weight: 600 !important;
  }

  .header-lang-mobile .lang-switcher--mobile {
    margin: 0;
    width: 100%;
  }

  .lang-switcher--mobile .lang-switcher__btn {
    width: 100%;
    justify-content: space-between;
  }

  header .lang-switcher--mobile .lang-switcher__list,
  .lang-switcher--mobile .lang-switcher__list {
    position: static;
    margin-top: 0.5rem;
    max-width: none;
    width: 100%;
    box-shadow: none;
  }

  .header-toolbar {
    z-index: 1002;
  }

  .lang-switcher__btn,
  .header-login {
    height: 2.25rem;
    padding: 0 0.65rem;
    font-size: 0.8125rem;
  }
}

@media screen and (min-width: 992px) {
  .header-lang-mobile {
    display: none !important;
  }
}
