.sl-i18n-selector {
  position: relative;
  flex: 0 0 auto;
  color: var(--text-main);
  font-family: 'Nunito', sans-serif;
}

.navbar.sl-i18n-menu-open {
  z-index: 100;
}

.sl-i18n-trigger {
  min-height: 40px;
  max-width: 178px;
  padding: 0 11px;
  border: 1px solid rgba(255, 138, 61, 0.3);
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.86);
  color: var(--text-main);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font: inherit;
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

.sl-i18n-trigger:hover,
.sl-i18n-selector.is-open .sl-i18n-trigger {
  border-color: var(--brand);
  background: rgba(255, 138, 61, 0.08);
  color: var(--brand-dark);
}

.sl-i18n-active {
  overflow: hidden;
  text-overflow: ellipsis;
}

.sl-i18n-chevron {
  font-size: 9px;
  transition: transform 0.18s ease;
}

.sl-i18n-selector.is-open .sl-i18n-chevron {
  transform: rotate(180deg);
}

.sl-i18n-menu {
  position: absolute;
  z-index: 30;
  top: calc(100% + 9px);
  right: 0;
  width: max-content;
  min-width: 210px;
  padding: 7px;
  border: 1px solid var(--sora-border);
  border-radius: 16px;
  background: #ffffff;
  box-shadow: 0 18px 46px rgba(71, 44, 25, 0.18);
}

.sl-i18n-menu[hidden] {
  display: none;
}

.sl-i18n-option {
  width: 100%;
  min-height: 40px;
  padding: 8px 11px;
  border: 0;
  border-radius: 11px;
  background: transparent;
  color: var(--text-main);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 9px;
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  text-align: left;
}

.sl-i18n-option::before {
  width: 8px;
  height: 8px;
  flex: 0 0 8px;
  border: 2px solid rgba(255, 138, 61, 0.45);
  border-radius: 999px;
  content: '';
}

.sl-i18n-option:hover,
.sl-i18n-option.is-active {
  background: rgba(255, 138, 61, 0.1);
  color: var(--brand-dark);
}

.sl-i18n-option.is-active::before {
  border-color: var(--brand);
  background: var(--brand);
  box-shadow: inset 0 0 0 2px #ffffff;
}

.sl-i18n-trigger:focus-visible,
.sl-i18n-option:focus-visible {
  outline: 3px solid rgba(255, 138, 61, 0.34);
  outline-offset: 2px;
}

@media (max-width: 1120px) and (min-width: 961px) {
  .sl-i18n-trigger {
    max-width: 46px;
  }

  .sl-i18n-active {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
  }
}

@media (max-width: 960px) {
  .nav-links .sl-i18n-selector {
    order: 20;
  }

  .sl-i18n-trigger {
    width: 100%;
    max-width: none;
    min-height: 46px;
    justify-content: space-between;
    padding: 0 14px;
    background: var(--field-bg);
  }

  .sl-i18n-menu {
    position: static;
    width: 100%;
    margin-top: 7px;
    box-shadow: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .sl-i18n-chevron {
    transition: none;
  }
}
