@mixin mobile_panel {
  background: $mobile_panel-bg;
  height: 100%;
  transform-style: preserve-3d;
  transition: $transition;
  top: 0;
  z-index: $mobile-panel-z;
  overflow-x: hidden!important;
  flex-direction: column;
  will-change: transform;

  @include respond-to-up($ntrn_breakpoint) {
    position: relative;
    transform:none;
    overflow: visible!important;
  }
}

@mixin list_reset {
  list-style: none;
  margin: 0;
  padding: 0;
}

@mixin mobile_border {
  @if $mobile_menu_border == true {
    border-width: 1px;
  } @else {
    border-width: 0;
  }
}

@mixin inactive_panel {
  &:before {
    content: "";
    opacity: 0;
    position: absolute;
    top: 0;
    bottom:0;
    right: 0;
    left: 0;
    background: rgba(0,0,0,0.5);
    transition: $transition;
    will-change: opacity;
  }
}

@mixin link {
  @include mobile_border();
  display: block;
  position: relative;
  font-size: $mobile_link-font-size;
  padding: $mobile_link-padding;
  color: $mobile_link-colour;
  text-decoration: none;
  border-bottom: 1px solid $mobile_menu-border-color;

  @include respond-to-up($ntrn_breakpoint) {
    padding: 0;
    text-align: left;
    font-weight: 500;
    color: $desktop_link-colour;
    display: inline-block;
    border:none;

    &:hover {
      text-decoration: none;
      color: $desktop_link-colour-hover;
    }
  }
}
