toolbarview.undershoot-top    popover scrolledwindow:not(.undershoot-top) undershoot.top,
toolbarview.undershoot-bottom popover scrolledwindow:not(.undershoot-bottom) undershoot.bottom {
  background: none;
  box-shadow: none;
}

popover {
  &.background {
    background-color: transparent;
    font: initial;
  }

  > arrow,
  > contents {
    background-color: var(--popover-bg-color);
    color: var(--popover-fg-color);
    background-clip: padding-box;
    border: 1px solid if($contrast == 'high', $border_color, RGB(0 0 0 / 14%));
    box-shadow: 0 1px 5px 1px RGB(0 0 0 / 9%),
                0 2px 14px 3px RGB(0 0 0 / 5%);
  }

  > contents {
    padding: 8px;
    border-radius: $popover_radius;

    > list,
    > .view,
    > toolbar {
      border-style: none;
      background-color: transparent;
    }
  }

  .osd &,
  &.touch-selection,
  &.magnifier {
    background-color: transparent;

    > arrow,
    > contents {
      @extend %osd;

      border: 1px solid RGB(255 255 255 / 10%);
      box-shadow: none;
    }
  }

  --shade-color: var(--popover-shade-color);
}
