.scrollbar-demo {
  user-select: none;
  position: relative;
  margin: 0 0 1.5em;
}

.scrollbar-demo__wrapper {
  border: 1px solid #777;
}

.scrollbar-demo--tight .scrollbar-demo__wrapper {
  max-width: 200px;
}

.scrollbar-demo--static {
  margin: 50px 0;
}

.scrollbar-demo input[type="range"] {
  vertical-align: middle;
}

.scrollbar-demo label {
  display: inline-block;
  margin-bottom: 10px;
}

.scrollbar-demo__note {
  border-radius: 50%;
  width: 7px;
  height: 7px;
  background: #cd511c;
  position: absolute;
  top: -2px;
  left: -2px;
}

.scrollbar-demo__note-document {
  left: 25%;
  top: 12px;
}

.scrollbar-demo__note::after {
  content: "";
  border-left: 1px solid #cd511c;
  height: 20px;
  position: absolute;
  left: 3px;
  bottom: 7px;
}

.scrollbar-demo__note-middle {
  left: 50%;
  top: 50%;
  transform: translate(-2px, -2px);
}

.scrollbar-demo__note-bottom::after {
  bottom: auto;
  top: 7px;
}

.scrollbar-demo__note__title {
  font-size: 0.8rem;
  color: #cd511c;
  line-height: 1;
  left: 0;
  bottom: 30px;
  text-align: center;
  position: absolute;
}

.scrollbar-demo__note-bottom .scrollbar-demo__note__title {
  bottom: auto;
  top: 30px;
}

.scrollbar-demo__track {
  font-size: 80%;
  height: 20px;
  line-height: 20px;
  color: #333;
  background: #bbb;
  text-align: center;
  position: relative;
}

.scrollbar-demo__track > i {
  position: absolute;
  top: 2px;
  left: 0;
  width: 0;
  bottom: 2px;
  overflow: hidden;
  border-left: 1px solid #cd511c;
}

.scrollbar-demo__grip {
  box-sizing: border-box;
  border-radius: 1px;
  height: 20px;
  line-height: 16px;
  position: absolute;
  left: 0;
  top: 0;
  border: 2px solid #cd511c;
  background: rgba(205, 81, 28, 0.2);
  color: #cd511c;
  cursor: default;
  z-index: 1;
}

.scrollbar-demo__grip--internal {
  border: none;
  background: rgba(205, 81, 28, 0.5);
}

.scrollbar-demo__grip--overhang::after {
  content: "||";
  color: rgba(255, 255, 255, 0.5);
  font-size: 10px;
  position: absolute;
  left: 50%;
  top: 100%;
  transform: translate(-50%, 0);
  background: #cd511c;
  width: 30px;
  height: 16px;
  line-height: 16px;
  border-radius: 3px;
}

.scrollbar-demo--static .scrollbar-demo__grip {
  width: 100px;
}

.scrollbar-demo__container,
.scrollbar-demo__document {
  overflow: hidden;
  font-size: 0;
  cursor: default;
  white-space: nowrap;
}

.scrollbar-demo__document {
  padding: 0 10px 0 0;
}

.scrollbar-demo__document > i {
  display: inline-block;
  width: 8px;
  height: 35px;
  margin: 5px 0 5px 10px;
  background: #777;
}

.scrollbar-demo__document > [data-mark] {
  background: #cd511c;
}

.scrollbar-demo__document > i:nth-child(2n) {
  height: 20px;
}

.scrollbar-demo__document > i:nth-child(3n + 1) {
  height: 10px;
}

.scrollbar-demo__document > i:nth-child(5n) {
  height: 40px;
}

.scrollbar-demo__document > i:nth-child(4n + 2) {
  height: 30px;
}

.scrollbar-numbers {
  display: flex;
}
