.l-pagination {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  color: var(--td-text-color-primary);
  font-size: var(--td-font-size-body-medium);
  font-family: var(--td-font-family);
  list-style: none;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  white-space: nowrap;
  color: var(--td-text-color-secondary);
  user-select: none;
}
.l-pagination.l-is-disabled {
  color: var(--td-text-color-disabled);
}
.l-pagination__total {
  font: var(--td-font-body-medium);
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.l-pagination .l-select__wrap {
  width: auto;
}
.l-pagination__select {
  flex-shrink: 0;
  margin-right: 16px;
  height: 32px;
  font-size: var(--td-font-size-body-medium);
  color: var(--td-text-color-secondary);
}
.l-pagination__btn {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  flex-shrink: 0;
  cursor: pointer;
  color: var(--td-text-color-secondary);
  border-radius: var(--td-radius-default);
  font: var(--td-font-body-large);
  width: 32px;
  height: 32px;
  line-height: 32px;
}
.l-pagination__btn:hover {
  background-color: var(--td-bg-color-secondarycontainer-hover);
  transition: all 0.2s cubic-bezier(0.82, 0, 1, 0.9);
}
.l-pagination__btn:active {
  background-color: var(--td-bg-color-secondarycontainer-active);
}
.l-pagination__btn.l-is-disabled,
.l-pagination__btn.l-is-disabled:hover,
.l-pagination__btn.l-is-disabled:active {
  background: none;
  color: var(--td-text-color-disabled);
}
.l-pagination__btn.l-is-disabled {
  cursor: not-allowed;
}
.l-pagination__btn-prev {
  margin-right: 8px;
}
.l-pagination__btn-next {
  margin-left: 8px;
}
.l-pagination__btn + .l-pagination__select {
  margin-right: 0;
}
.l-pagination__pager {
  flex-shrink: 0;
  display: inline-flex;
  vertical-align: middle;
  margin: 0;
  padding: 0;
  list-style: none;
}
.l-pagination__pager li:not(:last-child) {
  margin-right: 8px;
}
.l-pagination__number {
  display: inline-block;
  border: 1px solid var(--td-component-border);
  text-align: center;
  border-radius: var(--td-radius-default);
  cursor: pointer;
  background-color: var(--td-bg-color-container);
  box-sizing: border-box;
  height: 32px;
  min-width: 32px;
  line-height: 30px;
  font-size: var(--td-font-body-medium);
  padding-left: 4px;
  padding-right: 4px;
}
.l-pagination__number:hover {
  color: var(--td-brand-color-hover);
  border-color: var(--td-brand-color-hover);
  transition: all 0.2s cubic-bezier(0.82, 0, 1, 0.9);
}
.l-pagination__number:active {
  background-color: var(--td-brand-color);
  color: var(--td-text-color-anti);
  border-color: var(--td-brand-color);
}
.l-pagination__number.l-is-current {
  background-color: var(--td-brand-color);
  color: var(--td-text-color-anti);
  border-color: var(--td-brand-color);
}
.l-pagination__number.l-is-current.l-is-disabled,
.l-pagination__number.l-is-current.l-is-disabled:hover,
.l-pagination__number.l-is-current.l-is-disabled:active {
  background-color: var(--td-brand-color-focus);
  color: var(--td-text-color-anti);
  border-color: var(--td-brand-color-focus);
}
.l-pagination__number.l-is-disabled {
  cursor: auto;
  background-color: var(--td-bg-color-component-disabled);
  color: var(--td-text-color-disabled);
}
.l-pagination__number.l-is-disabled:hover,
.l-pagination__number.l-is-disabled:active {
  background-color: var(--td-bg-color-component-disabled);
  color: var(--td-text-color-disabled);
  border-color: var(--td-component-border);
}
.l-pagination__number--more {
  border: 0 none;
  padding: 0;
}
.l-pagination__number--more:hover {
  color: var(--td-text-color-primary);
  background-color: var(--td-bg-color-secondarycontainer-hover);
  transition: all 0.2s cubic-bezier(0.82, 0, 1, 0.9);
}
.l-pagination__number--more:active {
  color: var(--td-text-color-primary);
  background-color: var(--td-bg-color-secondarycontainer-active);
}
.l-pagination__number--more.l-is-disabled,
.l-pagination__number--more.l-is-disabled:hover,
.l-pagination__number--more.l-is-disabled:active {
  background: none;
}
.l-pagination__number--more .l-icon-more {
  transform: rotate(90deg);
  color: var(--td-text-color-disabled);
}
.l-pagination__jump {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  margin-left: 8px;
  font-size: var(--td-font-body-medium);
  gap: 4px;
}
.l-pagination .l-input-number {
  width: 48px;
}
.l-pagination.l-size-small .l-pagination__total {
  font: var(--td-font-body-small);
}
.l-pagination.l-size-small .l-pagination__select {
  height: 24px;
  font-size: var(--td-font-size-body-small);
}
.l-pagination.l-size-small .l-pagination__number {
  border: 0 none;
  height: 24px;
  min-width: 24px;
  line-height: 24px;
  font-size: var(--td-font-body-small);
  padding-left: 2px;
  padding-right: 2px;
}
.l-pagination.l-size-small .l-pagination__number:hover:not(.l-pagination.l-size-small .l-pagination__number.l-is-current) {
  color: var(--td-text-color-primary);
  background-color: var(--td-bg-color-secondarycontainer-hover);
  transition: all 0.2s cubic-bezier(0.82, 0, 1, 0.9);
}
.l-pagination.l-size-small .l-pagination__number:active:not(.l-pagination.l-size-small .l-pagination__number.l-is-current) {
  color: var(--td-text-color-primary);
  background-color: var(--td-bg-color-secondarycontainer-active);
}
.l-pagination.l-size-small .l-pagination__number.l-is-disabled {
  background: none;
  color: var(--td-text-color-disabled);
}
.l-pagination.l-size-small .l-pagination__number.l-is-current.l-is-disabled {
  background-color: var(--td-brand-color-focus);
  color: var(--td-text-color-anti);
  border-color: var(--td-brand-color-focus);
}
.l-pagination.l-size-small .l-pagination__btn {
  border: 0 none;
  background: none;
  width: 24px;
  height: 24px;
  line-height: 24px;
}
.l-pagination.l-size-small .l-pagination__btn:hover {
  background-color: var(--td-bg-color-secondarycontainer-hover);
  transition: all 0.2s cubic-bezier(0.82, 0, 1, 0.9);
}
.l-pagination.l-size-small .l-pagination__btn:active {
  background-color: var(--td-bg-color-secondarycontainer-active);
}
.l-pagination.l-size-small .l-pagination__btn.l-is-disabled,
.l-pagination.l-size-small .l-pagination__btn.l-is-disabled:hover,
.l-pagination.l-size-small .l-pagination__btn.l-is-disabled:active {
  background: none;
  color: var(--td-text-color-disabled);
}
