.a3w-pagination {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 16px;
  background: transparent;
  padding: 8px 4px;
}

.a3w-pagination__page-size-wrapper {
  position: relative;
  display: inline-flex;
  align-items: center;
  align-self: stretch;
}

.a3w-pagination__page-size {
  appearance: none;
  background-color: var(--md-background-primary);
  border: 1px solid var(--md-border-primary);
  border-radius: 4px;
  padding: 4px 24px 4px 8px;
  height: 100%;
  cursor: pointer;
}

.a3w-pagination__page-size-icon {
  position: absolute;
  right: 8px;
  pointer-events: none;
}

.a3w-pagination__controls {
  display: flex;
  gap: 0;
}

/* button reset and shared base */
.a3w-pagination__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 4px;
  background: transparent;
  padding: 4px 8px;
  font: inherit;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.a3w-pagination__btn--page {
  min-width: 32px;
}

.a3w-pagination__btn--direction {
  width: 32px;
  height: 32px;
  padding: 0;
}

.a3w-pagination__btn--boundary {
  padding: 4px 8px;
}

/* active state (actual pag.) */
.a3w-pagination__btn--page.active {
  background-color: var(--md-background-tertiary-inverse);
  color: var(--md-content-primary-inverse);
  font-weight: 700;
  cursor: default;
  pointer-events: none;
}

/* hover state */
.a3w-pagination__btn:hover:not(:disabled):not(.disabled) {
  background-color: var(--md-background-secondary-hover);
  color: var(--md-content-primary);
}

/* focus state */
.a3w-pagination__btn:focus-visible:not(:disabled):not(.disabled) {
  outline: 2px solid var(--md-border-focus);
  outline-offset: 2px;
}

/* disabled state - ng-disabled and ng-class */
.a3w-pagination__btn:disabled,
.a3w-pagination__btn.disabled {
  opacity: 0.4;
  cursor: not-allowed;
  pointer-events: none;
}
