// Menu Language Switcher  
li.wpml-ls-item.wpml-ls-current-language {
  padding: 0 !important;
  height: 100%;
  margin-left: 0 !important;
  text-transform: uppercase;
  min-width: 40 !important;
}

li.wpml-ls-item.wpml-ls-current-language a {
  padding-top: calc(0.75rem - 1px) !important;
  padding-bottom: calc(0.75rem - 1px) !important;
  padding-left: 1rem;
  padding-right: 1.5rem;
  border: 1px solid black;
  border-radius: 8px;
  z-index: 5;
}

li.wpml-ls-current-language::after {
  position: absolute !important;
  right: 4px;
  width: 18px;
  height: 18px;
  border-top-width: 0 !important;
  border-left-width: 0 !important;
  border-right-width: 0 !important;
  background-repeat: no-repeat;
  background-image: url("../images/chevron-down.svg");
  -webkit-filter: invert(100%);
  filter: invert(100%);
  background-size: contain;
}

.wpml-ls-item ul.sub-menu {
  min-width: 0 !important;
  background-color: rgba(1, 1, 1, 0) !important;
  padding-top: 0 !important;
}

.wpml-ls-item ul.sub-menu a {
  background-color: #f6f6f6 !important;
  border-color: rgba(1, 1, 1, 0) !important;
}

.wpml-ls-item a,
.wpml-ls-item span {
  min-width: 20 !important;
}

// widget language switcher

.wpml-ls-legacy-dropdown a.wpml-ls-item-toggle::after {
  position: absolute !important;
  right: 4px;
  top: 4px;
  bottom: 0;
  width: 18px;
  height: 100%;
  border-top-width: 0 !important;
  border-left-width: 0 !important;
  border-right-width: 0 !important;
  background-repeat: no-repeat;
  background-image: url("../images/chevron-down.svg");
  -webkit-filter: invert(100%);
  filter: invert(100%);
  background-size: contain;
  background-position: center;
}

.wpml-ls-sidebars-language-switcher {
  & > ul {
    display: flex;
    flex-direction: row;
    justify-content: flex-end;
  }

  .wpml-ls-item {
    width: fit-content;
  }

  .wpml-ls-sub-menu {
    border-top: 0 !important;

    li {
      a {
        border: 0 !important;
        background-color: #f6f6f6 !important;
      }
    }
  }
}

#overlay-menu .wpml-ls-sidebars-language-switcher {
  & > ul {
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
    text-align: left !important;

    li {
      a {
        width: fit-content;

        ul.wpml-ls-sub-menu {
          margin-left: 0 !important;
          text-align: left !important;

          li {
            a {
              border-top: 0 !important;
              background-color: #f6f6f6 !important;
            }
          }
        }
      }
    }
  }
}

