when padding set scrollbar appera code example
Example: add padding to scrollbar
::-webkit-scrollbar {
width: 18px;
}
::-webkit-scrollbar-thumb {
background: red;
border-right: 13px white solid;
background-clip: padding-box;
}