.pagy {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.75rem;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 0.5rem;
  font-size: 0.875rem;
  font-weight: 400;
  line-height: 1.5;
  color: #6b7280;
}

.pagy > :not([hidden]) ~ :not([hidden]) {
  margin-inline-start: 0;
}

.pagy a:not([role="separator"]) {
  display: inline-block;
  text-decoration: none;
  color: inherit;
  padding: 0.125rem 0.375rem;
  border-radius: 0.25rem;
  min-width: 1.5rem;
  text-align: center;
}

.pagy a[href]:hover {
  color: #111827;
  background: #f3f4f6;
}

.pagy a:not([href]) {
  cursor: default;
  opacity: 0.5;
}

.pagy a[aria-current="page"] {
  color: #111827;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.pagy a[role="separator"] {
  color: #9ca3af;
  cursor: default;
  padding: 0 0.125rem;
}

.pagy label {
  white-space: nowrap;
  display: inline-block;
  padding: 0.125rem 0.375rem;
  color: inherit;
  font-size: inherit;
}

.pagy label input {
  all: unset;
  width: 2rem;
  text-align: center;
  border-bottom: 1px solid #e5e7eb;
}

.pagy-limit-form {
  position: relative;
  min-width: 3.5rem;
  min-height: 2.5rem;
  border-radius: 0.75rem;
}

.pagy-limit-form .pagy-limit-select {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  appearance: none;
  -webkit-appearance: none;
  border: none;
  border-radius: inherit;
  background: transparent;
  padding: 0;
  font: inherit;
  color: inherit;
  cursor: pointer;
  text-align: center;
}

.pagy-limit-form .pagy-limit-select:hover {
  background: #f3f4f6;
  color: #111827;
}

.pagy-limit-form .pagy-limit-select:focus {
  outline: none;
}

.pagy-prev-next {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.pagy-prev-next a {
  display: inline-block;
  padding: 0.375rem 0.75rem;
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1.5;
  text-decoration: none;
  color: #374151;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 0.375rem;
  box-shadow: 0 1px 2px 0 rgb(0 0 0 / 0.05);
}

.pagy-prev-next a[href]:hover {
  color: #111827;
  background: #f9fafb;
  border-color: #d1d5db;
  box-shadow: 0 1px 3px 0 rgb(0 0 0 / 0.08);
}

.pagy-prev-next a:not([href]) {
  color: #9ca3af;
  cursor: default;
  box-shadow: none;
}
