.languageSearch-wrapper {
  overflow: hidden;
  vertical-align: middle;
  padding: 5px;
  text-align: right;
  -webkit-transition: all 0.3s;
  -moz-transition: all 0.3s;
  transition: all 0.3s;
  @media screen and (min-width: 40.000em) {
    padding: 0.4em 1em 0;
    text-align: left;
  }
  @include for-size(tablet-landscape-up) {
    padding: 0;
    order: 3;
  }
  @include for-size(desktop-up) {
    z-index: -9999999999;
   }
}

.languages {
  $block: unquote("#{&}");
  display: inline-block;
  text-transform: uppercase;
  overflow: auto;
  vertical-align: top;
  @include for-size(tablet-portrait-up) {
    margin: 0 1em 0 0;
  }
  @include for-size(desktop-up) {}
  &__anchor {
    color: #fff;
    display: inline-block;
    font-size: $font-x-medium;
    vertical-align: middle;
    text-decoration: underline;
    text-underline-position: under;
    &:hover {
      color: $color-cyan_shade1;
    }
  }
  &__active {
    color: $color-cyan_shade1;
  }
  &-wrapper {
    background: #fff;
    color: $color-cyan_shade1;
    font-size: $font-x-medium;
    text-align: left;
    padding: 1em;
    @include fly-by();
    @include for-size(tablet-portrait-up) {
      @include fly-byEnhanced();
      padding: 2em;
    }
    @include for-size(tablet-landscape-up) {
      padding: 3em $spacer-inner;
    }
  }
  &-accordion {
    &__label {
      color: #fff;
      cursor: pointer;
      display: inline-block;
      font-size: $font-x-medium;
      padding: 0 5px;
      @include for-size(tablet-landscape-up) {
        padding: 1.4em 1em 1em;
      }
      span {
        display: none;
        visibility: hidden;
        @include for-size(tablet-landscape-up) {
          display: inline-block;
          visibility: visible;
        }
      }
      &:before {
        background-image: url('/static/img/icons/ninyampinga/header-icons.png');
        background-repeat: no-repeat;
        background-position: 0 -3.7em;
        background-size: 40px;
        content: "";
        display: inline-block;
        height: 40px;
        vertical-align: middle;
        width: 45px;
        margin: 0 0.5em 0 0;
      }
      &:active, &:hover, &:focus {
        span {
          text-decoration: underline;
          text-underline-position: under;
        }
      }
    }
  }
  &-list {
    margin: 0;
    padding: 0;
    @include for-size(tablet-portrait-up) {
      text-align: center;
    }
    &__item {
      display: inline-block;
      vertical-align: middle;
      padding: 0 1em 0 0;
      @include for-size(desktop-up) {
        padding: 0.35em $spacer-small 0;
      }
    }
    &__label {
      color: #000;
      padding: 0 2em 0 0;
      &:before {
        content: " ";
        display: inline-block;
        background-image: url('/static/img/icons/ninyampinga/header-icons.png');
        background-repeat: no-repeat;
        background-position: 0 -3.7em;
        background-size: 40px;
        vertical-align: middle;
        height: 40px;
        width: 45px;
      }
    }
    &__title {
      display: inline-block;
      padding: 0 0 0 0.313em;
      font-size: $font-large;
      @include for-size(tablet-portrait-up) {
        padding: 0 0 0 0.313em;
      }
    }
    &__anchor {
      color: $color-pink-bright;
      display: inline-block;
      font-size: $font-x-medium;
      padding-left: 0.313em;
      font-weight: bold;
      opacity: 1;
      text-decoration: underline;
      text-underline-position: under;
      -webkit-transition: all 0.3s;
      -moz-transition: all 0.3s;
      transition: all 0.3s;
      &:active, &:hover, &:focus {
        color: $color-pink-bright;
        opacity: 0.7;
        text-decoration: underline;
        text-underline-position: under;
      }
      &[hreflang="English"] {
        &:before {
          content: "";
          background: url('/static/img/icons/ninyampinga/iconsSprite.png') no-repeat 0 73.5%/ 70px;
          display: inline-block;
          vertical-align: middle;
          height: 40px;
          width: 40px;
        }
      }
      &[hreflang="Kinyarwanda"] {
        &:before {
          content: "";
          background: url('/static/img/icons/ninyampinga/iconsSprite.png') no-repeat 0 69.5%/ 70px;
          display: inline-block;
          vertical-align: middle;
          height: 40px;
          width: 40px;
        }
      }
    }
    &__active {
      color: $color-gray;
      opacity: 0.7;
    }
    #{$block}__anchor {
      color: #fff;
      font-size: $font-x-medium;
    }
  }
  .languageSearch-wrapper__label-inner {
    @include for-size(tablet-landscape-up) {
      display: inline-block;
      visibility: visible;
    }
  }
  .open {
    background-color: #fff;
    color: $color-pink-bright;
    border-top-right-radius: 3px;
    &:before {
      background-position: 0 -8.9em;
      background-size: 35px;
    }
  }
  &--footer {
    font-size: $font-x-medium;
    padding: 0 5% 0 0;
    margin: 0;
    @include for-size(tablet-portrait-up) {
      padding: 0 1em 0 0;
    }
    @include for-size(tablet-landscape-up) {
      padding: 0 5% 0 0;
    }
    #{$block}__label {
      margin: 0;
      padding: 0 .313em 0 0;
      display: inline-block;
      vertical-align: middle;
    }
    #{$block}__anchor {
      padding: 0 .313em 0 0;
    }
  }
}
