@use 'sass:math';

.pwv-contextbar {
  cursor: default;
  z-index: 10;
  padding: 0;
  box-shadow: var(--pwv-drop-shadow-2);
  // background-color: $toolbar__BackgroundColor;

  .pwv-Toolbar {
    position: relative;
    z-index: 2;
    min-height: $toolbarItem__height * 0.9;
  }
  .pwv-ToolbarButton,
  .pwv-ToolbarItem {
    min-height: $toolbarItem__height * 0.9;
    > button {
      min-height: $toolbarItem__height * 0.9;
    }
  }

  &:after {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-8px) rotate(45deg);
    box-sizing: border-box;
    width: 16px;
    height: 16px;
    box-shadow: var(--pwv-drop-shadow-2);
    background-color: $toolbar__BackgroundColor;
    z-index: 1;
    display: none;
    .pwv-contextbar-bottom & {
      top: -8px;
      display: block;
    }
    .pwv-contextbar-top & {
      bottom: -8px;
      display: block;
    }
  }
}
