/* LSQ Ebooks Hub — pagination + hub helpers */
#top #row-recent-regular-ebooks .lsq-ebooks-hub__empty {
  margin: 30px 0;
  text-align: center;
  font-size: 18px;
  color: #535660;
}

#top #row-recent-regular-ebooks .lsq-ebooks-pagination--loading {
  opacity: 0.55;
  pointer-events: none;
}

#top #row-recent-regular-ebooks .lsq-ebooks-pagination {
  width: 100%;
  display: flex;
  justify-content: center;
  margin: 30px 0;
  box-sizing: border-box;
  max-width: 100%;
  clear: both;
}

#top #row-recent-regular-ebooks .lsq-ebooks-pagination__list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: 12px;
  width: max-content;
  max-width: none;
}

#top #row-recent-regular-ebooks .lsq-ebooks-pagination__item {
  display: flex;
  align-items: center;
  margin: 0 !important;
  padding: 0 !important;
  list-style: none !important;
}

#top #row-recent-regular-ebooks .lsq-ebooks-pagination__item::before {
  content: none !important;
  display: none !important;
}

#top #row-recent-regular-ebooks .lsq-ebooks-pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 10px;
  border-radius: 10px;
  font-family: Graphik, Arial, sans-serif;
  font-weight: 600;
  font-size: 20px;
  line-height: 1;
  color: #0033b6;
  text-decoration: none !important;
  border: 1px solid transparent;
  background: transparent;
  min-width: 40px;
  min-height: 40px;
  box-sizing: border-box;
  transition: color 0.2s ease, background-color 0.2s ease;
}

#top #row-recent-regular-ebooks .lsq-ebooks-pagination a.page-numbers:hover,
#top #row-recent-regular-ebooks .lsq-ebooks-pagination a.page-numbers:focus {
  color: #0033b6;
  background: rgba(0, 51, 182, 0.08);
  outline: none;
}

#top #row-recent-regular-ebooks .lsq-ebooks-pagination .page-numbers.dots {
  min-width: auto;
  min-height: auto;
  padding: 0 6px;
  border: 0;
  border-radius: 0;
  font-weight: 400;
  font-size: 20px;
  color: #535660;
  position: relative;
  top: -2px;
}

#top #row-recent-regular-ebooks .lsq-ebooks-pagination .page-numbers.current {
  border: 1px solid #e4e7ef;
  color: #000;
  background: #fff;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
  cursor: default;
}

#top #row-recent-regular-ebooks .lsq-ebooks-pagination .prev,
#top #row-recent-regular-ebooks .lsq-ebooks-pagination .next {
  min-width: auto;
  width: auto;
  padding: 0 8px;
  border: 0;
  font-size: 34px;
  line-height: 1;
  color: #8b8f9a;
}

#top #row-recent-regular-ebooks .lsq-ebooks-pagination a.prev.page-numbers,
#top #row-recent-regular-ebooks .lsq-ebooks-pagination a.next.page-numbers {
  position: relative;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 0;
  background-color: transparent;
  background-image: url(/wp-content/uploads/2024/11/top-arrow.svg);
  background-repeat: no-repeat;
  background-position: center;
  background-size: 17px 17px;
  color: transparent !important;
  text-indent: -9999px;
  overflow: hidden;
}

#top #row-recent-regular-ebooks .lsq-ebooks-pagination a.prev.page-numbers {
  transform: rotate(-90deg);
}

#top #row-recent-regular-ebooks .lsq-ebooks-pagination a.next.page-numbers {
  transform: rotate(90deg);
}

#top #row-recent-regular-ebooks .lsq-ebooks-pagination a.prev.page-numbers:hover,
#top #row-recent-regular-ebooks .lsq-ebooks-pagination a.next.page-numbers:hover,
#top #row-recent-regular-ebooks .lsq-ebooks-pagination a.prev.page-numbers:focus,
#top #row-recent-regular-ebooks .lsq-ebooks-pagination a.next.page-numbers:focus {
  background-color: rgba(0, 51, 182, 0.08);
}

#top #row-recent-regular-ebooks .lsq-ebooks-pagination__error {
  width: 100%;
  margin: 0 0 16px;
  padding: 12px 16px;
  border-radius: 8px;
  background: #fff4f4;
  color: #b42318;
  font-size: 14px;
  line-height: 1.4;
  text-align: center;
}

@media only screen and (max-width: 991px) {
  #top #row-recent-regular-ebooks .lsq-ebooks-pagination {
    justify-content: center;
    margin-left: 0;
    margin-right: 0;
    padding: 0 4px 6px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-x: contain;
    scrollbar-width: thin;
  }

  #top #row-recent-regular-ebooks .lsq-ebooks-pagination__list {
    gap: 10px;
  }

  #top #row-recent-regular-ebooks .lsq-ebooks-pagination .page-numbers {
    font-size: 17px;
    padding: 0 8px;
    border-radius: 10px;
  }

  #top #row-recent-regular-ebooks .lsq-ebooks-pagination .page-numbers.dots {
    font-size: 17px;
    padding: 0 4px;
    top: -1px;
  }

  #top #row-recent-regular-ebooks .lsq-ebooks-pagination .prev,
  #top #row-recent-regular-ebooks .lsq-ebooks-pagination .next {
    font-size: 26px;
    padding: 0 6px;
  }

  #top #row-recent-regular-ebooks .lsq-ebooks-pagination a.prev.page-numbers,
  #top #row-recent-regular-ebooks .lsq-ebooks-pagination a.next.page-numbers {
    width: 40px;
    height: 40px;
    background-size: 16px 16px;
  }
}

@media only screen and (max-width: 479px) {
  #top #row-recent-regular-ebooks .lsq-ebooks-pagination {
    padding: 0 2px 8px;
  }

  #top #row-recent-regular-ebooks .lsq-ebooks-pagination__list {
    gap: 6px;
  }

  #top #row-recent-regular-ebooks .lsq-ebooks-pagination .page-numbers {
    font-size: 15px;
    padding: 0 6px;
    min-width: 36px;
    min-height: 36px;
    border-radius: 8px;
  }

  #top #row-recent-regular-ebooks .lsq-ebooks-pagination .page-numbers.dots {
    font-size: 15px;
    min-width: auto;
  }

  #top #row-recent-regular-ebooks .lsq-ebooks-pagination .prev,
  #top #row-recent-regular-ebooks .lsq-ebooks-pagination .next {
    font-size: 22px;
    padding: 0 4px;
  }
}
