/* Quiet custom scroll indicators used for the page and nested scroll regions. */
:root {
  --epv-scroll-brand: var(--green, var(--gold, #2b3d39));
}

html.epv-hide-scrollbar,
.epv-scrollable {
  scrollbar-width: none !important;
  -ms-overflow-style: none !important;
}

html.epv-hide-scrollbar::-webkit-scrollbar,
.epv-scrollable::-webkit-scrollbar {
  display: none !important;
  width: 0 !important;
  height: 0 !important;
}

.epv-scroll-progress {
  position: fixed;
  z-index: 99999;
  top: 12px;
  right: 5px;
  bottom: 12px;
  width: 4px;
  border: 0;
  border-radius: 5px;
  padding: 0;
  background: rgba(43, 61, 57, .14);
  overflow: hidden;
  cursor: pointer;
  touch-action: none;
}

.epv-scroll-progress[hidden] {
  display: none !important;
}

.epv-scroll-progress::before {
  content: "";
  position: absolute;
  inset: -8px -8px;
}

.epv-scroll-progress-fill {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  background: var(--epv-scroll-brand);
  transform: scaleY(0);
  transform-origin: top;
  pointer-events: none;
}

.epv-scroll-progress:focus-visible {
  outline: 2px solid var(--epv-scroll-brand);
  outline-offset: 4px;
}

.epv-scroll-progress--nested {
  position: absolute;
  top: 8px;
  right: 5px;
  bottom: 8px;
  z-index: 5;
  width: 3px;
  background: rgba(43, 61, 57, .12);
}

.epv-scroll-progress--nested .epv-scroll-progress-fill {
  background: var(--epv-scroll-brand);
}

@media (max-width: 600px) {
  .epv-scroll-progress {
    top: 9px;
    right: 3px;
    bottom: 9px;
    width: 3px;
  }

  .epv-scroll-progress--nested {
    top: 6px;
    right: 3px;
    bottom: 6px;
    width: 2px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .epv-scroll-progress-fill {
    transition: none !important;
  }
}
