.pagination {
  $self: &;
  color: $pagination-color;
  margin-bottom: 0;
  align-content: center;
  align-items: center;
  font: {
    weight: normal;
  }
  img {
    margin: 0 10px;
  }
  li,
  a {
    color: #000;
    line-height: 1em;
    cursor: pointer;
    line-height: 1.5em;
    font-size: $pagination-font-size;
    &:hover {
      text-decoration: none;
    }
  }
  a {
    padding: 0px 6px;
    display: flex;
    align-items: center;
    line-height: 22px;
  }
  li {
    border-bottom: 1px solid transparent;
    margin: 0 5px;
    &[data-pagination="last"],
    &[data-pagination="first"],
    &[data-pagination="next"],
    &[data-pagination="prev"] {
      margin: 0 3px;
    }
    &[data-pagination="last"],
    &[data-pagination="first"] {
      a {
        padding: {
          left: 0;
          right: 0;
        }
      }
    }
    &[data-pagination="next"] {
      a {
        padding-right: 0;
      }
    }
    &[data-pagination="prev"] {
      a {
        padding-left: 0;
      }
    }

    &:last-child img {
      margin-right: 0;
    }

    &:first-child img {
      margin-left: 0;
    }
  }
  input,
  button {
    line-height: 1em;
    border: 1px solid $border-color;
    vertical-align: middle;
    width: 34px;
    text-align: center;
  }
  input {
    height: 24px;
    padding: 0;
    border-radius: 2px 0px 0px 2px;
    &::-webkit-inner-spin-button,
    &::-webkit-outer-spin-button {
      -webkit-appearance: none;
    }
  }
  button {
    height: 24px;
    background-color: $border-color;
    border-radius: 0px 2px 2px 0px;
    &:hover {
      background-color: $body-color;
      border-color: $body-color;
      cursor: pointer;
    }
    &:before {
      content: "";
      display: inline-block;
      border: {
        top: 5px solid transparent;
        bottom: 5px solid transparent;
        left: 10px solid white;
      }
    }
  }
  form {
    display: inline-block;
    vertical-align: middle;
    transform: translateY(-3px);
    margin-left: 5px;
  }
  .is-active {
    background-color: $pagination-active-bg;
    color: white;
    border-radius: 4px;
  }
  .is-disabled {
    opacity: 0.5;
  }
  .is-hidden {
    display: none;
  }
  .has-ellipsis {
    margin: 0;
    padding: 0;
    a {
      padding: 0;
    }
  }
  span {
    display: none;
    @include media-breakpoint-up(sm) {
      display: inline;
    }
  }
}
