/* Themed Thin Scrollbars for Every Scroll Container (colours from the --scrollbar-* tokens in theme.css).
   Containers that hide their bar (scrollbar-width: none) keep it hidden: a class selector outranks these. */

* {
  scrollbar-width: thin;
  scrollbar-color: var(--scrollbar-thumb) var(--scrollbar-track);
}

/* WebKit and Safari (Chrome uses the standard properties above and ignores these) */
::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

::-webkit-scrollbar-track,
::-webkit-scrollbar-corner {
  background: var(--scrollbar-track);
}

::-webkit-scrollbar-thumb {
  background-color: var(--scrollbar-thumb);
  background-clip: padding-box;
  border: 2px solid var(--scrollbar-track);
  border-radius: var(--scrollbar-thumb-radius);
}

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

::-webkit-scrollbar-button {
  display: none;
}
