/*
 * Container style
 */
.ps {
  overflow: scroll !important;
  overflow-anchor: none;
  -ms-overflow-style: none;
  touch-action: auto;
  -ms-touch-action: auto;
  position: relative;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: none;
	scrollbar-width: none;
	/* це ламало позиціонування підменю menu__submenuWrapper в scrollZone */
  /* contain: layout paint; */
}
.ps::-webkit-scrollbar {
  display: none
}

/*
 * Scrollbar rail styles
 */
.ps__rail-x {
  display: none;
  opacity: 0;
  transition: background-color .2s linear, opacity .2s linear;
  -webkit-transition: background-color .2s linear, opacity .2s linear;
  height: 10px;
  /* there must be 'bottom' or 'top' for ps__rail-x */
  bottom: 0px;
  /* please don't change 'position' */
  position: absolute;
  /* margin-bottom: -100vh; */
  z-index: 1000;
}

.ps__rail-y {
  display: none;
  opacity: 0;
  transition: background-color .2s linear, opacity .2s linear;
  -webkit-transition: background-color .2s linear, opacity .2s linear;
  width: 10px;
  /* there must be 'right' or 'left' for ps__rail-y */
  right: 0;
  /* please don't change 'position' */
  position: absolute;
  z-index: 1000;
  transform:translateY(-1px);
}

@media (max-width: 480px) {
  .ps__rail-x,
  .ps__rail-y {
    pointer-events: none;
  }
}
#content .ps__rail-y, #content .ps__rail-x {
  opacity: 1
}
body.animateSidebar #content .ps__rail-y, body.animateSidebar #content .ps__rail-x {
  opacity: 0
}
/*.menu .ps__rail-y {*/
/*  margin: 4px 0;*/
/*}*/
/*.modal .ps__rail-y {*/
/*  margin: 4px 0;*/
/*}*/
.menu {
  --scrollbar-margin: 4;
}
.modal {
  --scrollbar-margin: 10;
}
.menu .ps .ps__rail-y:hover,
.menu .ps .ps__rail-y:focus,
.menu .ps .ps__rail-y.ps--clicking {
  box-shadow:none;
  background: none;
}

.ps--active-x > .ps__rail-x,
.ps--active-y > .ps__rail-y {
  display: block;
  background-color: transparent;
}
.ps--active-x ~ .ps__rail-x,
.ps--active-y ~ .ps__rail-y {
  display: block;
  background-color: transparent;
}

.ps.ps-hover:hover > .ps__rail-x,
.ps.ps-hover:hover > .ps__rail-y,
.ps--focus > .ps__rail-x,
.ps--focus > .ps__rail-y,
.ps--scrolling-x > .ps__rail-x,
.ps--scrolling-y > .ps__rail-y {
  opacity: 1;
}
.ps.ps-hover:hover ~ .ps__rail-x,
.ps.ps-hover:hover ~ .ps__rail-y,
.ps--focus ~ .ps__rail-x,
.ps--focus ~ .ps__rail-y,
.ps--scrolling-x ~ .ps__rail-x,
.ps--scrolling-y ~ .ps__rail-y {
  opacity: 1;
}

.ps__rail-y:hover,
.ps__rail-y:focus,
.ps__rail-y.ps--clicking {
    box-shadow:-1px 0 var(--scroll-minor);
    background-color: var(--scroll-easy);
  opacity: 1;
}

.ps__rail-x:hover,
.ps__rail-x:focus,
.ps__rail-x.ps--clicking {
    box-shadow:0 -1px var(--scroll-minor);
    background-color: var(--scroll-easy);
  opacity: 1;
}

/*
 * Scrollbar thumb styles
 */
.ps__thumb-x {
  background-color: var(--scroll-minor);
  border-radius: 6px;
  transition: background-color .2s linear, height .2s ease-in-out;
  -webkit-transition: background-color .2s linear, height .2s ease-in-out;
  height: 6px;
  /* there must be 'bottom' for ps__thumb-x */
  bottom: 2px;
  /* please don't change 'position' */
  position: absolute;
}

.ps__thumb-y {
  background-color: var(--scroll-minor);
  border-radius: 6px;
  transition: background-color .2s linear, width .2s ease-in-out;
  -webkit-transition: background-color .2s linear, width .2s ease-in-out;
  width: 6px;
  /* there must be 'right' for ps__thumb-y */
  right: 2px;
  /* please don't change 'position' */
  position: absolute;
}

.ps .ps__rail-x:hover > .ps__thumb-x,
.ps__rail-x:focus > .ps__thumb-x,
.ps__rail-x.ps--clicking .ps__thumb-x {
  background-color: var(--scroll-minor);
  height: 6px;
}

.ps .ps__rail-y:hover > .ps__thumb-y,
.ps__rail-y:focus > .ps__thumb-y,
.ps__rail-y.ps--clicking .ps__thumb-y {
  background-color: var(--scroll-major);
  width: 6px;
}

/* MS supports */
@supports (-ms-overflow-style: none) {
  .ps {
    overflow: auto !important;
  }
}

@media screen and (-ms-high-contrast: active), (-ms-high-contrast: none) {
  .ps {
    overflow: auto !important;
  }
}
