.pager__item--first a, .pager__item--previous a, .pager__item--next a, .pager__item--last a {
  display: var(--animate-underline--display, inline);
  line-height: 1;
  background-image: linear-gradient(0deg, var(--animate-underline--underline-color, currentColor) 0%, var(--animate-underline--underline-color, currentColor) 100%);
  background-size: var(--animate-underline--bg-size--width, 0%) var(--animate-underline--bg-size--thickness, 1px);
  background-repeat: no-repeat;
  background-position-y: var(--animate-underline--bg-position-y, 1.1em);
  background-position-x: var(--animate-underline--bg-position-x, right);
  transition: all 200ms ease-in-out;
}
.pager__item--first a:hover, .pager__item--previous a:hover, .pager__item--next a:hover, .pager__item--last a:hover, .pager__item--first a:focus-visible, .pager__item--previous a:focus-visible, .pager__item--next a:focus-visible, .pager__item--last a:focus-visible {
  --animate-underline--bg-size--width: var(--animate-underline--bg-size--width--active);
}

.pager__item--next a, .pager__item--last a {
  --animate-underline--bg-position-x: left;
  --animate-underline--bg-size--width: 0%;
  --animate-underline--bg-size--width--active: 100%;
}

.pager__item--first a, .pager__item--previous a {
  --animate-underline--bg-position-x: right;
  --animate-underline--bg-size--width--active: 100%;
  --animate-underline--bg-size--width: 0%;
}

.pager__item--page a {
  text-decoration-line: var(--_animate-text-decoration--line);
  text-decoration-thickness: var(--animate-text-decoration--thickness, 1px);
  text-underline-offset: var(--_animate-text-decoration--offset, 0.25em);
  text-decoration-color: var(--animation-text-decoration-color, currentColor);
}
.pager__item--page a {
  --_animate-text-decoration--line: none;
  --_animate-text-decoration--line--active: underline;
}

.pager__item.is-active a, .pager__item--page a:hover, .pager__item--page a:focus {
  text-decoration-line: var(--_animate-text-decoration--line--active, var(--_animate-text-decoration--line, underline));
  text-decoration-thickness: var(--animate-text-decoration--thickness--active, var(--animate-text-decoration--thickness, 1px));
  text-underline-offset: var(--_animate-text-decoration--offset--active, var(--_animate-text-decoration--offset, 0.125em));
}

.pager__items {
  align-items: center;
  display: flex;
  justify-content: center;
}
.pager__item--page a {
  --animate-text-decoration--thickness: 2px;
}
.pager__item + .pager__item {
  margin-left: 1rem;
}
