.pager {
  --tpg-pager-ink: #07143d;
  --tpg-pager-muted: #65718b;
  --tpg-pager-border: #d8dee8;
  --tpg-pager-shadow: 0 4px 12px rgba(7, 20, 61, 0.08);
  --tpg-pager-blue: #0f55d8;
  --tpg-pager-blue-dark: #073ca7;
  clear: both;
  margin: 28px 0 16px;
}

.pager__items {
  align-items: center;
  display: flex;
  flex-wrap: nowrap;
  gap: 8px;
  justify-content: center;
  list-style: none;
  margin: 0;
  padding: 0;
}

.pager__item {
  color: var(--tpg-pager-ink);
  display: inline-flex;
  font-family: "Open Sans", Arial, sans-serif;
  font-size: 15px;
  font-weight: 700;
  line-height: 1;
  margin: 0;
  padding: 0;
}

.pager__item > a,
.pager__item.is-active,
.pager__item--active {
  align-items: center;
  background: #ffffff;
  border: 1px solid var(--tpg-pager-border);
  border-radius: 8px;
  box-shadow: var(--tpg-pager-shadow);
  box-sizing: border-box;
  color: var(--tpg-pager-ink);
  display: inline-flex;
  height: 42px;
  justify-content: center;
  min-width: 42px;
  padding: 0;
  text-decoration: none;
  transition: background-color 180ms ease, border-color 180ms ease, color 180ms ease, box-shadow 180ms ease;
}

.pager__item > a:hover,
.pager__item > a:focus-visible {
  border-color: #9fb3d6;
  box-shadow: 0 5px 14px rgba(7, 20, 61, 0.13);
  color: var(--tpg-pager-blue-dark);
  text-decoration: none;
}

.pager__item > a:focus-visible {
  outline: 3px solid var(--tpg-color-focus);
  outline-offset: 2px;
}

.pager__item.is-active,
.pager__item--active {
  background: linear-gradient(180deg, var(--tpg-pager-blue) 0%, var(--tpg-pager-blue-dark) 100%);
  border-color: transparent;
  box-shadow: 0 6px 14px rgba(15, 85, 216, 0.2);
  color: #ffffff;
}

.pager__item.is-active > a,
.pager__item--active > a {
  background: transparent;
  border: 0;
  box-shadow: none;
  color: inherit;
}

.pager__item--first {
  display: none;
}

.pager__item--previous > a,
.pager__item--next > a,
.pager__item--last > a {
  gap: 9px;
  min-width: 88px;
  padding: 0 14px;
}

.pager__item--last > a {
  min-width: 76px;
}

.pager__item--previous > a > span,
.pager__item--next > a > span,
.pager__item--last > a > span {
  display: none !important;
}

.pager__item--previous > a::after {
  content: "Previous";
}

.pager__item--next > a::before {
  content: "Next";
}

.pager__item--last > a::before {
  content: "Last";
}

.pager__item--previous > a::before,
.pager__item--next > a::after,
.pager__item--last > a::after {
  border-color: currentColor;
  border-style: solid;
  border-width: 2px 2px 0 0;
  content: "";
  height: 9px;
  width: 9px;
}

.pager__item--previous > a::before {
  transform: rotate(-135deg);
}

.pager__item--next > a::after {
  transform: rotate(45deg);
}

.pager__item--last > a::after {
  background: currentColor;
  border: 0;
  height: 14px;
  mask: url("data:image/svg+xml,%3Csvg viewBox='0 0 16 16' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M3 3l5 5-5 5M8 3l5 5-5 5' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 14px 14px no-repeat;
  transform: none;
  width: 14px;
  -webkit-mask: url("data:image/svg+xml,%3Csvg viewBox='0 0 16 16' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M3 3l5 5-5 5M8 3l5 5-5 5' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 14px 14px no-repeat;
}

.pager__item--ellipsis {
  align-items: center;
  color: var(--tpg-pager-ink);
  font-size: 20px;
  justify-content: center;
  letter-spacing: 0;
  min-width: 30px;
}

:root[data-theme="dark"] .pager {
  --tpg-pager-ink: #e8eefc;
  --tpg-pager-muted: #a8b5cf;
  --tpg-pager-border: #26334a;
  --tpg-pager-shadow: 0 5px 14px rgba(0, 0, 0, 0.24);
}

:root[data-theme="dark"] .pager__item > a {
  background: #101a2e;
}

:root[data-theme="dark"] .pager__item.is-active > a,
:root[data-theme="dark"] .pager__item--active > a {
  background: transparent;
  border-color: transparent;
  box-shadow: none;
  color: #ffffff;
}

@media (max-width: 1199px) {
  .pager__item > a,
  .pager__item.is-active,
  .pager__item--active {
    height: 40px;
    min-width: 40px;
  }

  .pager__item--previous > a,
  .pager__item--next > a,
  .pager__item--last > a {
    min-width: 84px;
    padding: 0 12px;
  }
}

@media (max-width: 900px) {
  .pager__items > li:nth-child(n+8):not(.is-active):not(.pager__item--active):not(.pager__item--next):not(.pager__item--last):not(.pager__item--ellipsis):not(.pager__item--last-page) {
    display: none;
  }
}

@media (max-width: 767px) {
  .pager {
    margin-top: 24px;
  }

  .pager::after {
    color: var(--tpg-pager-muted);
    content: attr(data-page-summary);
    display: block;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.2;
    margin-top: 16px;
    text-align: center;
  }

  .pager__items {
    gap: 8px;
    justify-content: flex-start;
    max-width: 100%;
    overflow-x: auto;
    padding: 2px 8px 8px;
    scrollbar-width: none;
  }

  .pager__items::-webkit-scrollbar {
    display: none;
  }

  .pager__item {
    flex: 0 0 auto;
  }

  .pager__item--previous > a,
  .pager__item--next > a {
    min-width: 92px;
  }

  .pager__item--last {
    display: none;
  }

  .pager__items > li:nth-child(n+6):not(.is-active):not(.pager__item--active):not(.pager__item--next):not(.pager__item--ellipsis):not(.pager__item--last-page) {
    display: none;
  }
}
