:root {
  --y-popover-overlay-shadow: var(--y-shadow);
  --y-popover-overlay-radius: var(--y-radius);
  --y-popover-overlay-padding: 12px 16px;
}

.y-popover {
  position: relative;
  cursor: pointer;
  display: inline-block;
}
.y-popover-overlay {
  position: absolute;
  background: #fff;
  display: inline-block;
  visibility: hidden;
  opacity: 0;
  box-shadow: var(--y-popover-overlay-shadow);
  border-radius: var(--y-popover-overlay-radius);
  padding: var(--y-popover-overlay-padding);
  max-height: 300px;
  z-index: -1;
  width: fit-content;
  transition: all 200ms 100ms;
  transform: scaleY(0.85);
}
.y-popover-overlay-visible {
  z-index: 999;
  transform: scaleY(1);
  visibility: visible;
  opacity: 1;
}
.y-popover-overlay::before {
  content: "";
  position: absolute;
  width: 10px;
  height: 10px;
  display: block;
  background-color: #fff;
  transform: rotate(45deg);
}
.y-popover-overlay-placement-top {
  transform-origin: bottom center;
}
.y-popover-overlay-placement-top::before {
  bottom: -5px;
  box-shadow: 4px 4px 6px rgba(0, 0, 0, 0.08);
}
.y-popover-overlay-placement-bottom {
  transform-origin: top center;
}
.y-popover-overlay-placement-bottom::before {
  top: -5px;
  box-shadow: -4px -4px 10px rgba(0, 0, 0, 0.08);
}
.y-popover-overlay::-webkit-scrollbar-thumb {
  background: #e4dfdf;
  border-radius: 100px;
}
.y-popover-overlay::-webkit-scrollbar-thumb:hover {
  background: #cdcdcd;
}
.y-popover-overlay::-webkit-scrollbar {
  background: transparent;
  width: 8px;
}