.Comments {
  padding: 0;
  margin: 0 0 auto;
  overflow-x: hidden;
  flex-grow: 1;
  flex-shrink: 1;
  min-height: 0;

  &List {
    flex-grow: 1;
    height: 100%;
    overflow-y: scroll;
    left: 0;
    padding: 16px 12px;
    position: absolute;
    width: calc(100% - var(--spacing-xs));
    background-color: var(--color-light);
  }
}

.CaptionBlock {
  touch-action: manipulation;
}

.Caption {
  margin-left: -12px;
  margin-right: 0;
  padding: 12px 16px;
  padding-bottom: var(--spacing-m);
  width: auto;
  overflow: hidden;
  margin-top: -5px;
  word-wrap: break-word;

  &Wrapper {
    flex-direction: row;
    align-items: flex-start;
    width: 100%;

    .MobileTools {
      display: none;
    }

    @media (max-width: 830px) {
      .MobileTools {
        display: block;
        right: -15px;
        top: -8px;
        height: 100%;
      }
    }
  }

  &User {
    cursor: pointer;
    display: block;
    flex: none;
    align-self: flex-start;
    margin: 0 18px 0 0;
    outline: 0;
  }

  &Avatar {
    display: block;
    width: 32px;
    height: 32px;
    flex: 0 0 auto;
    overflow: hidden;
    position: relative;
    border-radius: 50%;
    background-color: var(--color-bg);

    img {
      width: 100%;
      height: 100%;
    }
  }

  &Text {
    display: inline-block;
    flex-shrink: 1;
    min-width: 0;

    h2 {
      display: inline-flex;
      align-items: center;
    }
  }

  &Username {
    margin-right: var(--spacing-xxs);
    flex: 0 0 auto;
    justify-content: flex-start;
    align-items: stretch;
    align-content: stretch;

    a {
      color: var(--color-main)!important;
      font-weight: 600;
    }
  }
}

.Editable {
  outline: 0;
  padding-right: var(--spacing-xs);
  border: 2px solid var(--color-accent);
  line-height: 25px;
}
