.pwv-vertical-scrollbar,
.pwv-horizontal-scrollbar {
  cursor: default !important;
  z-index: 7;
  position: absolute;
  background-color: $scrollBar__BackgroundColor;
  & > div {
    position: absolute;
  }
}

.pwv-scrollbar-handle {
  background-color: $scrollHandle__BackgroundColor;
  transition: background-color 0.5s;
}

.pwv-horizontal-scrollbar {
  bottom: 0;
  right: 0;
  left: 0;
  height: $scrollBar__Size;
  border-left: $scrollBar__ExpandedSize solid transparent;
  border-right: $scrollBar__ExpandedSize solid transparent;
  transition: height 0.5s;
  .pwv-scrollbar-handle {
    height: 100%;
  }
}

.pwv-vertical-scrollbar {
  width: $scrollBar__Size;
  top: 0;
  bottom: 0;
  right: 0;
  border-top: $scrollBar__ExpandedSize solid transparent;
  border-bottom: $scrollBar__ExpandedSize solid transparent;
  transition: width 0.5s;
  .pwv-scrollbar-handle {
    width: 100%;
  }
}

.pwv-scrollbar-hover,
.pwv-scrollbar-dragging {
  &.pwv-vertical-scrollbar {
    width: $scrollBar__ExpandedSize;
    transition: width 0.5s;
  }
  &.pwv-horizontal-scrollbar {
    height: $scrollBar__ExpandedSize;
    transition: height 0.5s;
  }
  .pwv-scrollbar-handle {
    background-color: $scrollHandle__ActiveBackgroundColor !important;
    transition: background-color 0.5s;
  }
}

.pwv-scrollbar-scrolling {
  .pwv-scrollbar-handle {
    background-color: $scrollHandle__ActiveBackgroundColor;
    transition: background-color 0.5s;
  }
}
