.pagination {
  color: var(--color-text-muted);
}

.page-item {
  margin: 0 5px;
  font-size: 0.75rem;
  color: var(--color-text-muted);
  .page-link {
    color: var(--color-text-muted);
  }
}

.page-item.active .page-link {
  background-color: var(--color-brand-primary);
  font-weight: 700;
  color: var(--color-bg-surface);
}

.page-link {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 1.5rem;
  height: 1.5rem;
  padding: 0;
  border: 0;
  border-radius: 2px;
  outline: 0;
  background: transparent;
  box-shadow: none;
  font-size: 0.75rem;
  font-weight: 400;
  text-decoration: none;
  appearance: none;
}

.page-link:focus {
  outline: 0;
  -webkit-box-shadow: none;
  box-shadow: none;
}

.page-link:not(span):hover {
  background: rgba(29, 63, 131, 0.1);
  color: inherit;
}

.page-link--button {
  background: var(--color-bg-surface);
  color: var(--color-text-muted);
}

/* Mobile */
@media (max-width: 767px) {
  .page-item {
    margin: 0 3px;
  }

  .pagination .page-item:not(:nth-child(-n+2)):not(:nth-last-child(-n+2)):not(.active):not(:has(+ .active)):not(.active + .page-item) {
    display: none;
  }
}