/* Custom scrollbar structure that clips native scrollbars out of view. */
.custom-scrollbar-host {
  position: relative;
  overflow: hidden;
  --custom-scrollbar-width: 16px;
  --custom-scrollbar-height: 16px;
}

.custom-scrollbar-mask {
  position: relative;
  overflow: hidden;
  width: 100%;
  height: 100%;
}

.custom-scrollbar-content-wrapper {
  position: relative;
  overflow: scroll;
  width: calc(100% + var(--custom-scrollbar-width));
  height: calc(100% + var(--custom-scrollbar-height));
  margin: 0;
  padding-right: var(--custom-scrollbar-width);
  padding-bottom: var(--custom-scrollbar-height);
  box-sizing: border-box;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.custom-scrollbar-content-wrapper::-webkit-scrollbar {
  width: 0;
  height: 0;
}

.custom-scrollbar-content {
  width: 100%;
  max-width: 100%;
  min-width: 100%;
  min-height: 100%;
  box-sizing: border-box;
}

.custom-scrollbar-track {
  position: absolute;
  background: transparent;
  pointer-events: auto;
  z-index: 10;
}

.custom-scrollbar-track-y {
  top: 0;
  right: 0;
  width: 6px;
}

.custom-scrollbar-track-x {
  left: 0;
  bottom: 0;
  height: 6px;
}

.custom-scrollbar-thumb {
  position: absolute;
  background-color: var(--primary);
  border-radius: 0;
  cursor: pointer;
  touch-action: none;
}

.custom-scrollbar-track-y .custom-scrollbar-thumb {
  width: 3px;
  left: 1.5px;
}

.custom-scrollbar-track-x .custom-scrollbar-thumb {
  height: 3px;
  top: 1.5px;
}
