
.maha-comments {
  padding: 0.4em 0;
  &.message {
    text-align: center;
    color: fadeout(@black, 60);
    i {
      font-size: 1.5em;
    }
  }
  .maha-composer {
    border: 1px solid fadeout(@black, 90);
    border-radius: 0.5em;
    flex: 1;
    .maha-composer-chat {
      flex: 0 0 2em;
    }
  }
}

@media (max-width: 768px) {
  .maha-comment-link-image {
    flex: 0 0 50px;
    img {
      height: 50px;
    }
  }
  .maha-comment-link-details {
    padding: 0.4em;
  }
  .maha-comment-link-description {
    display: none;
  }
  .maha-comment-link-title {
    font-size: 0.8em;
  }
}
@media (min-width: 769px) {
  .maha-comment-link-image {
    flex: 0 0 100px;
    img {
      height: 100px;
    }
  }
  .maha-comment-link-details {
    padding: 0.4em 0.8em;
  }
}

.maha-comment-link {
  width: 100%;
  max-width: 400px;
  display: flex;
  background-color: @white;
  margin: 0.4em 0 0;
  border-radius: 0.5em;
  overflow: hidden;
}
.maha-comment-link-image {
  overflow: hidden;
  position: relative;
  img {
    position: absolute;
    left: 50%;
    .translateX(-50%);
  }
}
.maha-comment-link-details {
  flex: 1;
}
.maha-comment-link-title {
  color: @black;
  font-weight: bold;
}
.maha-comment-link-description {
  font-size: 0.8em;
  line-height: 1.6em;
  color: fadeout(@black, 20);
}
.maha-comment-link-domain {
  font-size: 0.7em;
  text-transform: uppercase;
  color: fadeout(@black, 60);
  font-weight: bold;
}

.maha-comments .maha-comment:last-child {
  margin-bottom: 0;
}
.maha-comments-summary {
  margin-top: -0.8em;
  border-bottom: 1px solid fadeout(@black, 90);
  padding: 0.8em;
}
.maha-comments-more {
  margin-bottom: 1em;
  color: fadeout(@black, 70);
  cursor: pointer;
  background-color: fadeout(@black, 95);
  padding: 0.5em;
  border-radius: 0.5em;
  text-align: center;
  font-size: 0.8em;
  text-transform: uppercase;
  &:hover {
    background-color: fadeout(@black, 90);
  }
}
.maha-comment {
  display: flex;
  position: relative;
  &:hover {
    .maha-comment-actions {
      visibility: visible;
    }
  }
}
.maha-comment-typing {
  color: fadeout(@black, 50);
  line-height: 2.4em;
  &:after {
    overflow: hidden;
    display: inline-block;
    vertical-align: bottom;
    -webkit-animation: ellipsis steps(4,end) 900ms infinite;
    animation: ellipsis steps(4,end) 900ms infinite;
    content: "\2026";
    width: 0px;
  }
  @keyframes ellipsis {
    to {
      width: 1.25em;
    }
  }
  @-webkit-keyframes ellipsis {
    to {
      width: 1.25em;
    }
  }
  .maha-avatar {
    width: 1.6em;
    display: inline-block;
    margin-right: 5px;
    height: 1.3em;
  }
}
.maha-comment-user {
  flex: 0 0 3.2em;
  padding: 0.4em 0 0.4em 0.8em;
}
.maha-comment-bubble {
  flex: 1;
  position: relative;
  padding: 0.4em 0.8em;
  overflow: hidden;
  .maha-composer {
    background-color: @white;
  }
  .maha-composer-editor {
    padding: 0.5em;
  }
  .maha-composer-emoji,
  .maha-composer-paperclip {
    .fa {
      margin: 0.5em auto;
    }
  }
}
.maha-comment-text {
  font-size: 0.9em;
  line-height: 1.5em;
}
.maha-comment-field {
  display: flex;
  .maha-richtextfield {
    flex: 1;
  }
  .maha-comment-text-button {
    flex: 0 0 1.6em;
    color: @red;
    display: flex;
    cursor: pointer;
    i {
      margin: 0.7em 0 auto auto;
    }
  }
}
.maha-comment-cancel {
  font-size: 0.8em;
  color: fadeout(@black, 40);
  span {
    .hover(text-decoration, underline);
    color: fadeout(@blue, 40);
    cursor: pointer;
  }
}
.maha-comment-author {
  font-weight: bold;
  color: @black;
  display: inline-block;
  margin-right: 5px;
}
.maha-comment-timestamp {
  color: fadeout(@black, 60);
  font-size: 0.8em;
  display: inline-block;
  margin-right: 5px;
}

.maha-comment-actions {
  .translateY(-50%);
  visibility: hidden;
  position: absolute;
  top: 50%;
  right: 0.8em;
  display: flex;
  background-color: @white;
  border-radius: 5px;
  border: 1px solid fadeout(@black, 90);
  .chat-message-action {
    border-right: 1px solid fadeout(@black, 90);
    &:last-child {
      border: none;
    }
  }
}
.maha-comment-action {
  flex: 1;
  color: fadeout(@black, 70);
  cursor: pointer;
  padding: 0.2em;
  display: flex;
  &:hover {
    background-color: fadeout(@black, 97);
  }
  i {
    margin: auto;
  }
}
.maha-comment-add {
  color: @blue;
  font-size: 0.8em;
  cursor: pointer;
}
.maha-comment-composer {
  padding: 0.4em 0.8em;
}
