// Import any global variables from "../../variables/*.scss"
@import "../../variables/spacing.scss";
@import "../../variables/colors.scss";
@import "../../variables/fonts.scss";

.pagerButtonGroup {
  display: flex;
}

.pagerButton {
  flex-grow: 0;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  height: 40px;
  min-width: 40px;
  padding-left: 16px;
  padding-right: 16px;
  background-color: #fff;
  border: 1px solid $midnightTransparent20;
  border-radius: 4px;
  font-family: $fontBase;
  font-size: 14px;
  font-weight: bold;
  color: $midnight;
  cursor: pointer;
  user-select: none;

  // The first and last buttons have a radius on them, this gives the whole assembly a "pill" shape.
  // &:first-child {
  //   border-right: 0;
  //   border-top-right-radius: 0;
  //   border-bottom-right-radius: 0;
  // }
  // &:last-child {
  //   border-left: 0;
  //   border-top-left-radius: 0;
  //   border-bottom-left-radius: 0;
  // }

  &:hover {
    color: $blue;
    background-color: $blueLight;
    border-color: $blueLight;
  }

  &:active,
  &:focus {
    color: $gray500;
    border-color: $blue;
    box-shadow: 0 0 0 1px $blue;
  }

}

.pagerButtonPrevStart {
  margin-right: 2px;
}

.pagerButtonNext {
  margin-left: 8px;
  margin-right: 2px;
}

.pagerButtonDisabled {
  background-color: $gray200;
  border-color: $gray200;
  color: $gray400;
  opacity: 0.5;
  cursor: not-allowed;
  
  
  &:hover {
    background-color: $gray200;
    color: $gray400;
  }

  &:active {
    color: $gray400;
  }
}
