:host {
  position: absolute;
}

.mention-menu {
  position: relative;
  z-index: 1000;
  top: 100%;
  left: 0;

  float: left;
  display: none;

  min-width: 11em;
  margin: 0.125em 0 0;
  padding: 0.5em 0;

  font-size: 1em;
  text-align: left;
  list-style: none;

  background-color: var(--color-gray-fff);
  background-clip: padding-box;
  border: 1px solid rgb(0 0 0 / 15%);
  border-radius: 0.25em;

  .noborder {
    padding: 6px 12px;
    font-weight: 400;
    color: var(--color-gray-aaa);
  }

  .mention-active {
    cursor: pointer;
    overflow: hidden; // we need this to prevent margin collapsing
    color: var(--default-color);

    &.selected {
      color: #fff;
      text-decoration: none;
      background-color: #337ab7;
      outline: 0;
    }

    &:not(:last-child) {
      .mention-active {
        margin-bottom: 0;
      }
    }
  }
}

.mention-item {
  clear: both;
  display: flex;
  flex-direction: row;

  padding: 0.2em 1.5em;

  font-weight: 300;
  line-height: 1.5em;
  text-align: inherit;
  white-space: nowrap;

  background-color: transparent;
  border: 0;
}

.scrollable-menu {
  overflow: auto;
  display: block;
  height: auto;
  max-height: 292px; /* fits 11 items with 14px font-size */
}

.mention-avatar {
  margin-right: 10px;
}
