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

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

  @include e(title) {
    color: $--popover-title-font-color;
    font-size: $--popover-title-font-size;
    line-height: 20px;
    font-weight: 500;
    padding: 8px 16px;
    border-bottom: 1px solid $--border-color-cut;
  }

  @include e(content) {
    padding: 8px 16px;
    line-height: 20px;
    @include m(large) {
      padding: $--popover-padding
    }
  }

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

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