.pagination-container {
  text-align: center;
  ul.pagination {
    display: inline-block;
  }
}
ul.pagination {

  li {
    margin-right: 8px;

    &.disabled {
      cursor: unset;
      padding: 0 12px;
      border: 2px solid #efefef;
      border-radius: 4px;
      span {
        display: block;
        padding: 8px 0;
      }
    }

    &.pagination-first,
    &.pagination-last {
      display: none;
      @include breakpoint(medium up) {
        display: inline-block;
      }
      a {
        padding: 8px 29px 8px 29px;
        background-color: $light-mint;
        width: auto;
      }
    }

    &.pagination-previous {
      margin-right: 16px;
      display: inline-block;
      a {
        width: auto;
        padding: 8px 29px 8px 22px;
      }

      a::before,
      &::before {
        display: none;
      }
    }

    a {
      border-radius: 4px;
      padding: 8px 0;
      width: 38px;
      text-align: center;
      border: 2px solid $light-mint;
      color: $dark-mint;

      &:hover {
        background-color: $light-mint;
      }
    }

    &.current {
      border-radius: 4px;
      text-align: center;
      background-color: $dark-mint;
      padding: 8px 0;
      width: 38px;
    }

    &.pagination-next {
      margin-left: 8px;
      display: inline-block;
      a {
        width: auto;
        padding: 8px 22px 8px 29px;
      }

      a::after,
      &::after {
        display: none;
    }
    }
  }
}
.disabled-pagination {
  border-color: $light-grey !important;
  color: $light-grey !important;
  background: $off-white !important;
  pointer-events: none !important;
}
.mobile-pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  border: 1px solid $dark-mint;
  border-radius: 40px;
  box-shadow: 0 0 12px rgba(0,0,0,0.1);
  .pagination-cell {
    color: $dark-mint;
    background-color: white;
    padding: 2px 0;
    line-height: 40px;
    width: 40px;
    height: 40px;
    &:not(:first-child) {
      border-left: 1px solid $dark-mint;
    }
    &.active {
      color: white;
      background-color: $dark-mint;
    }
    &.disabled {
      color: $light-grey;
      background-color: white;
      border-color: $light-grey;
    }
    &.first {
      border-top-left-radius: 40px;
      border-bottom-left-radius: 40px;
      .material-icons {
        &:last-child {
          margin-left: -12px;
        }
      }
    }
    &.last {
      border-top-right-radius: 40px;
      border-bottom-right-radius: 40px;
      .material-icons {
        &:last-child {
          margin-left: -12px;
        }
      }
    }
    &.navigable {
      a {
        width: 100%;
        padding: 0;
        height: 100%;
        color: $dark-mint;
      }
    }
  }
}