$aui-pager-color: $aui-color-gray40 !default;
$aui-pager-color-active: $aui-color-black !default;

.aui-pager {
  list-style: none;
  padding-left: 0;
  font-weight: $aui-font-weight-normal;
  color: $aui-pager-color;

  &__item {
    display: inline-block;
  }

  &__current {
    color: $aui-pager-color-active;
  }

  &__next,
  &__prev {
    transition: color .15s linear;
  }

  &__prev {
    margin-right: 1em;
  }

  &__next {
    margin-left: 1em;
  }

  &__next-icon,
  &__prev-icon {
    display: inline-block;
    width: .5em;
    height: .8125em;
    text-indent: 100%;
    overflow: hidden;
    transition: transform .15s cubic-bezier(0.75, 0.02, 0.5, 1);
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;

    svg {
      @include icon;
    }
  }

  &__prev-icon {
    transform: translateY(em(1)) rotate(180deg);
  }

  &__next:hover:not(.is-disabled),
  &__prev:hover:not(.is-disabled) {
    color: $aui-pager-color-active;
  }

  &__prev:hover:not(.is-disabled) {
    .aui-pager__prev-icon {
      transform: translateX(-4px) translateY(em(1)) rotate(180deg);
    }
  }

  &__next:hover:not(.is-disabled) {
    .aui-pager__next-icon {
      transform: translateX(4px);
    }
  }

  &__next,
  &__prev {
    &.is-disabled {
      cursor: not-allowed;
      opacity: .30;
      pointer-events: none;
    }
  }
}
