// (C) Copyright 2020 Hewlett-Packard Enterprise Company, L.P.

.hp-flyout {
  position: absolute;
  @include box-sizing(border-box);
  padding: 20px;
  background-color: $primary-background;
  color: $primary-color;
  border: 1px solid $flyout-outline;
  z-index: $tooltip-z-index;
  @include box-shadow(0px, 5px, 6px, 0px, $dropdown-shadow);
  
  &:after {
    content: "";
    position: absolute;
    top: auto;
    bottom: -9px;
    left: 9px;
    right: auto;
    border-width: 9px 9px 0;
    border-color: $primary-background transparent;
    border-style: solid;
    display: block;
    width: 0;
  }
  
  &.hp-flyout-below:after {
    content: "";
    position: absolute;
    top: -9px;
    bottom: auto;
    left: 9px;
    right: auto;
    border-width: 0 9px 9px;
    border-color: $flyout-outline transparent;
    border-style: solid;
    display: block;
    width: 0;
  }
  
  &.hp-flyout-shifted, &.hp-flyout-overlap {
    &:after {
      content: "";
      display: none;
    }
  } 
  
  h1 {
    font-size: 16px;
    line-height: 18px;
    color: $primary-color;
  }
}
