
/* Hide the old 1px custom scrollbar */
html body #va-desktop-scrollbar {
  display: none !important;
}

/* Desktop: hide native scrollbar */
@media (min-width: 782px) {
  html,
  body {
    scrollbar-width: none !important;
    -ms-overflow-style: none !important;
  }

  html::-webkit-scrollbar,
  body::-webkit-scrollbar {
    display: none !important;
    width: 0 !important;
    height: 0 !important;
  }

  /* New transparent track */
  html body #va-visible-scrollbar {
    position: fixed !important;
    top: 0 !important;
    right: 0 !important;

    width: 10px !important;
    height: 100vh !important;
    height: 100dvh !important;

    margin: 0 !important;
    padding: 0 !important;

    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;

    z-index: 2147483647 !important;
    pointer-events: auto !important;
  }

  /* Visible dark handle */
  html body #va-visible-scrollbar-thumb {
    position: absolute !important;
    top: 0 !important;
    right: 1px !important;

    width: 8px !important;
    min-height: 50px !important;

    background: #4b4b4b !important;
    border: 0 !important;
    border-radius: 999px !important;
    box-shadow: none !important;

    cursor: grab !important;
    pointer-events: auto !important;
    touch-action: none !important;

    transition: background-color 150ms ease !important;
    will-change: transform;
  }

  html body #va-visible-scrollbar-thumb:hover {
    background: #303030 !important;
  }

  html body #va-visible-scrollbar-thumb.is-dragging {
    background: #202020 !important;
    cursor: grabbing !important;
  }
}

/* Mobile: use the normal browser scrollbar */
@media (max-width: 781px) {
  html body #va-visible-scrollbar {
    display: none !important;
  }

  html,
  body {
    scrollbar-width: thin !important;
    scrollbar-color: #4b4b4b transparent !important;
  }
}
