@use "../../foundations/helpers/forward.helpers.scss" as *;
@use "../../components/text-button/text-button";

.ds-pagination {
  background-color: $ds-color-surface-primary;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  width: 100%;
  padding: ds-spacing($ds-s-050 $ds-s-100);
  color: $ds-color-text-primary;
  box-sizing: border-box;

  &--simple {
    padding: ds-spacing($ds-s-100);
  }

  &__pages {
    display: flex;
  }
  &__page {
    margin: ds-spacing($ds-s-050);
    min-height: ds-px-to-rem(32);
    min-width: ds-px-to-rem(32);
    display: flex;
    align-items: center;
    justify-content: center;
    @include ds-typography($ds-typography-functional-body-md) {
      color: $ds-color-text-primary;
    }

    &--current {
      color: $ds-color-text-primaryinvert;
      background-color: $ds-color-surface-primaryinvert;
      border-radius: 100%;
    }

    &:not(.ds-pagination__page--current) {
      @include ds-link($ds-link-list);
    }
  }

  .invisible {
    visibility: hidden;
  }

  .ds-pagination__prev {
    margin-right: auto;
  }

  .ds-pagination__next {
    margin-left: auto;
  }
}
