.mention-menu {
  position: absolute;
  z-index: 90;
  margin: 0;
  padding: 6px;
  list-style: none;
  background: #fff;
  border: 1px solid #e4eaf2;
  border-radius: 12px;
  box-shadow: 0 12px 28px rgba(28, 55, 90, 0.12);
  max-height: 280px;
  overflow: auto;
}

.mention-menu__empty {
  padding: 10px 12px;
  color: #8b93a0;
  font-size: 13px;
}

.mention-menu__item {
  width: 100%;
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 8px 10px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  cursor: pointer;
  text-align: left;
  font: inherit;
}

.mention-menu__item:hover,
.mention-menu__item.is-on {
  background: #f3f7ff;
}

.mention-menu__av {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #e8efff;
  color: var(--blue, #2f6bff);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  flex: none;
}

.mention-menu__item strong,
.mention-menu__item em {
  display: block;
}

.mention-menu__item em {
  font-style: normal;
  font-size: 12px;
  color: #8b93a0;
}

.mention-link {
  display: inline;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--blue, #2f6bff);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}

.mention-link:hover {
  text-decoration: underline;
}

.is-mention-flash {
  animation: mention-flash 1.6s ease;
}

@keyframes mention-flash {
  0%,
  35% {
    background: #eaf1ff;
  }
  100% {
    background: transparent;
  }
}

.msg-mention {
  margin-top: 2px;
  max-width: 320px;
  padding: 12px 14px;
  border: 1px solid #d7e4ff;
  border-radius: 14px;
  background: #f7faff;
}

.msg-mention__tag {
  display: inline-flex;
  align-items: center;
  height: 20px;
  margin-bottom: 8px;
  padding: 0 8px;
  border-radius: 999px;
  background: #eaf1ff;
  color: var(--blue, #2f6bff);
  font-size: 11px;
  font-weight: 700;
}

.msg-mention__text {
  margin: 0;
  color: #334155;
  font-size: 13.5px;
  line-height: 1.55;
  white-space: pre-wrap;
}

.msg-mention__go {
  display: inline-flex;
  margin-top: 10px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--blue, #2f6bff);
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

.msg-mention__go:hover {
  text-decoration: underline;
}

@media (max-width: 640px) {
  .mention-menu {
    min-width: 0 !important;
    right: 16px;
    left: 16px !important;
    width: auto;
  }
}
