@import 'src/styles/variables';

.link {
  text-decoration: none;
  color: inherit;
}

.message {
  font: $font_14_regular;
  line-height: 1.3em;
  min-height: calc(1.3em * 3 + $gap);
  display: grid;
  grid-template-columns: 32px auto;
  column-gap: 0;
  position: relative;

  &.new::after {
    content: ' ';
    position: absolute;
    top: $gap;
    right: $gap;
    background: $color_danger;
    width: 8px;
    height: 8px;
    border-radius: 4px;
  }
}

.content {
  background: $content_bg;
  padding: 5px;
  border-radius: 0 $radius $radius $radius;
  position: relative;
  min-width: 0;

  &:before {
    content: ' ';
    position: absolute;
    top: 8px;
    right: 100%;
    @include arrow_left(8px, $content_bg);
  }
}

.text {
  @include clamp(2, 14px);
  text-overflow: ellipsis;
}

.title {
  font: $font_14_medium;
  margin-bottom: $gap / 2;
  display: flex;
  flex-direction: row;
  align-items: center;

  & > * {
    padding-right: 5px;
  }
}

.item_title {
  flex: 1;
  text-overflow: ellipsis;
  overflow: hidden;
  white-space: nowrap;
}

.item_image {
  flex: 0 0 16px;
  border-radius: 2px;
  margin-right: 5px;
}

.time {
  font: $font_10_regular;
  text-align: right;
  margin-top: 2px;
  color: $gray_75;
}

div.circle {
  border-radius: 4px 0 0 4px;
}
