.ntrn {
  @include mobile_panel();
  background: $mobile_panel-bg;
  float: none;
  position: fixed;
  overflow-x: hidden !important;
  overflow-y: hidden;
  width: calc(100% - 50px);
  display: none;
  transition: $transition;

  @include respond-to-up($ntrn_breakpoint) {
    background: $desktop_menu-bg;
    position: relative;
    overflow: visible !important;
    transform: translate(0);
    width: 100%;
    display: block;
  }

  > * {
    box-sizing: border-box;
  }

  &--active {
    display: flex;
  }
  &--scroll {
    overflow-y: scroll;
  }
  &--resized {
    transition: none !important;

    .ntrn__menu {
      transition: none !important;
      overflow: hidden !important;
    }
  }
  &__menu {
    @include list_reset();
    position: relative;
    display: flex;
    flex-direction: column;
    flex-grow: 1;

    @include respond-to-up($ntrn_breakpoint) {
      position: relative;
      margin: 0;
      display: flex;
      flex-direction: row;
      transition: $transition;
      line-height: normal;

      > li {
        position: static;
        transition: $transition;
      }
      > li:hover {
        background: $desktop_link-top-bg-hover;
      }
      > li:hover > .ntrn__link,
      > li:--active > .ntrn__link {
        text-decoration: none;
        color: $desktop_link-top-colour-hover;
      }

      > li:last-child > .ntrn__link:before {
        @if $desktop_link-top-separator == true {
          display: none;
        }
      }
    }

    > li > a {
      position: relative;

      &:hover {
        text-decoration: none;
      }

      @include respond-to-up($ntrn_breakpoint) {
        font-size: $desktop_link-top-font-size;
        text-align: center;
        padding: $desktop_link-top-padding;
        text-transform: capitalize;
        display: block;
        color: $desktop_link-top-colour;
        text-decoration: none;

        &:hover {
          color: $desktop_link-top-colour-hover;
        }

        @if $desktop_link-top-separator == true {
          &:before {
            content: "";
            display: block;
            position: absolute;
            top: 0;
            right: 0;
            background: $desktop_link-top-separator-color;
            width: 1px;
            height: 100%;
          }
        }
      }
    }
  }
  &__item {
    @include list_reset();
    padding: 0;

    &:last-child > .ntrn__link {
      border: 0 none;
    }

    &--hassub > .ntrn__link {
      @include ms-icon('chevron-right', 16px, after);

      &:after {
        float: right;
      }

      &:after {
        @include respond-to-up($ntrn_breakpoint) {
          display: none;
        }
      }
    }

    &--hassub.ntrn__item--top > .ntrn__link:hover .ntrn__text:after {
      @include respond-to-up($ntrn_breakpoint) {
        border-color: $desktop_arrow-colour-hover;
      }
    }
    &--hassub.ntrn__item--top > .ntrn__link .ntrn__text {
      @include respond-to-up($ntrn_breakpoint) {
        @if $desktop_arrow == true {
          @include ms-icon('chevron-down', 13px, after);

          &:after {
            position: relative;
            display: inline-block;
            color: $desktop_arrow-colour;
            top: auto;
            right: auto;
            margin: -5px 0 0 10px;
            height: 5px;
            width: 5px;
          }
        }
      }
    }
    &--hassub.ntrn__item--top.ntrn__item--active .ntrn__text:after {
      @include respond-to-up($ntrn_breakpoint) {
        border-color: $desktop_arrow-colour-hover;
      }
    }
  }
  &__link {
    @include link();
  }
  &__parentlink {
    @include link();
    @include ms-icon('chevron-right', 16px, before);
    font-weight: 600;

    &:before {
      position: relative;
      display: inline-block;
      right: 0;
      top: 0;
      margin: -4px 10px 0 0;
    }
  }
  &__opened .ntrn {
    transform: translate(0,0);
  }
}

