:host {
  display: block;
  --hb-scrollbar-bg-color: var(--hb-fill-color-light, #f5f7fa);
  --hb-scrollbar-thumb-color: var(--hb-fill-color, #c0c4cc);
  --hb-scrollbar-thumb-hover-color: var(--hb-fill-color-dark, #a0a4ac);
}

.hb-scrollbar {
  position: relative;
  height: 100%;
  overflow: hidden;
}

.hb-scrollbar__wrap {
  overflow: auto;
  height: 100%;
  scrollbar-width: thin;
  scrollbar-color: var(--hb-scrollbar-thumb-color) var(--hb-scrollbar-bg-color);
}

.hb-scrollbar__wrap::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

.hb-scrollbar__wrap::-webkit-scrollbar-track {
  background: var(--hb-scrollbar-bg-color);
  border-radius: 3px;
}

.hb-scrollbar__wrap::-webkit-scrollbar-thumb {
  background: var(--hb-scrollbar-thumb-color);
  border-radius: 3px;
}

.hb-scrollbar__wrap::-webkit-scrollbar-thumb:hover {
  background: var(--hb-scrollbar-thumb-hover-color);
}

.hb-scrollbar--native .hb-scrollbar__wrap {
  overflow-y: auto;
}

.hb-scrollbar__view {
  width: 100%;
}

.hb-scrollbar__bar {
  position: absolute;
  right: 2px;
  bottom: 2px;
  z-index: 1;
  border-radius: 4px;
  opacity: 0;
  transition: opacity 0.12s ease-out;
}

.hb-scrollbar:hover .hb-scrollbar__bar {
  opacity: 1;
}

.hb-scrollbar__bar--vertical {
  width: 6px;
  top: 2px;
}

.hb-scrollbar__bar--vertical > div {
  width: 100%;
}

.hb-scrollbar__thumb {
  position: relative;
  display: block;
  width: 100%;
  height: 0;
  cursor: pointer;
  border-radius: inherit;
  background-color: var(--hb-scrollbar-thumb-color);
  transition: background-color 0.3s;
}

.hb-scrollbar__thumb:hover {
  background-color: var(--hb-scrollbar-thumb-hover-color);
}

