@layer uniform.components {
.u-pagination {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: var(--u-space-2);
}

.u-pagination > :is(a, button) {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: var(--u-size-control);
  height: var(--u-size-control);
  border: 1px solid var(--u-color-text-default);
  border-radius: var(--u-radius-pill);
  background: transparent;
  color: var(--u-color-text-default);
  cursor: pointer;
}

.u-pagination > :is(a, button):hover { background: var(--u-color-divider); }

.u-pagination > :is(a, button):is(:first-child, :last-child)::before {
  content: "";
  width: 20px;
  height: 20px;
  background: currentcolor;
  mask: url("/assets/uniform/icons/chevron-left-2cea9862.svg") center / contain no-repeat;
  forced-color-adjust: none;
}

.u-pagination > :is(a, button):last-child::before { mask-image: url("/assets/uniform/icons/chevron-right-2a1307f1.svg"); }

.u-pagination > :is(a, button):is([aria-disabled="true"], :disabled) {
  border-color: var(--u-color-border-input);
  background: transparent;
  color: var(--u-color-border-input);
  cursor: not-allowed;
}

.u-pagination > span {
  padding-inline: var(--u-space-2);
  font-family: var(--u-font-mono);
  font-size: var(--u-font-size-small);
  font-variant-numeric: tabular-nums;
  color: var(--u-color-text-default);
  white-space: nowrap;
}

@media (forced-colors: active) {
  .u-pagination > :is(a, button):is([aria-disabled="true"], :disabled) { border-style: dashed; }
}
}
