@use '../../_global/styles/mixins' as *;
@use '../../_global/styles/vars' as *;

.pagination {
  --pagination-button-margin: 5px;

  @media(max-width: 767px) {
    --pagination-button-margin: 3px;
  }

  ul {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    padding: 0;
    margin: 0 calc(var(--pagination-button-margin) * -1);
    width: 100%;
  }

  .btn {
    margin: var(--pagination-button-margin);
    padding-left: 5px;
    padding-right: 5px;

    &.current {
      --button-bg-color: var(--color-button-tertiary-background);
      --button-text-color: var(--color-button-tertiary-text);

      &::after {
        display: none;
      }
    }
  }
}
