@import "mixins/mixins";
@import "common/var";
@import "./popper";

@include b(popover) {
  position: absolute;
  background: $--popover-background-color;
  min-width: 150px;
  border-radius: 4px;
  border: 1px solid $--popover-border-color;
  padding: $--popover-padding;
  z-index: $--index-popper;
  color: $--popover-title-font-color;
  line-height: 26px;
  text-align: justify;
  font-size: $--popover-font-size;
  font-weight: $--font-weight-primary;
  box-shadow: $--box-shadow-light;
  word-break: break-all;

  @include m(plain) {
    // padding: $--popover-padding-large;
    padding: $--popover-padding;
  }

  @include e(title) {
    font-family: $--font-family-XBS;
    color: $--popover-title-font-color;
    font-size: $--popover-title-font-size;
    font-weight: $--font-weight-primary;
    line-height: 24px;
    margin-bottom: 12px + 6px;
    position: relative;
    
    &:after {
        content: '';
        display: block;
        position: absolute;
        left: -16px;
        right: -16px;
        bottom: -6px;
        height: 1px;
        background-color: $--color-black-6;
    }
  }

  @include e(reference) {
    &:focus:not(.focusing), &:focus:hover {
      outline-width: 0;
    }
  }

  &:focus:active, &:focus {
    outline-width: 0;
  }
}
