.pagination {
  clear: both;
  list-style: none;
  display: flex;
  width: 100%;
  text-align: center;
  justify-content: center;
  padding: 30px 40px 25px;
  top: -1px;
  position: relative;
  z-index: 99;
  border-bottom: 1px solid var(--grid-borders);
}
.collection__holder .pagination {
  border-bottom: none;
}
.pagination:before, .pagination:after {
  content: "";
  position: absolute;
  top: 1px;
  left: 0;
  width: calc(100% + 15px);
  height: 1px;
}
.pagination:before {
  background: var(--main-background);
  z-index: 8;
}
.pagination:after {
  background: var(--grid-borders);
  z-index: 9;
}
.pagination > * {
  width: 40px;
  height: 40px;
  display: flex;
  text-align: center;
  justify-content: center;
  align-items: center;
}
.pagination > *.current {
  font-weight: var(--font-weight-body-bold);
}
.pagination > *.next span, .pagination > *.prev span, .pagination > * svg {
  height: 13px;
  display: block;
}
html[dir=rtl] .pagination svg {
  transform: rotate(180deg);
}
.pagination svg * {
  fill: var(--main-text);
}
@media screen and (max-width: 480px) {
  .pagination {
    padding: 15px;
  }
}
.pagination--small {
  padding: 15px 0;
  margin-top: 25px;
  margin-inline-start: 0 !important;
  border-bottom: 0;
  justify-content: flex-start;
}
.pagination--small > *:first-child {
  margin-inline-start: -10px;
}