.comment-textarea {
  &.focus {
    padding-bottom: 45px;

    + .ph-comment-form-controls {
      display: flex;
    }
  }
}

.ph-upload {
  cursor: pointer;
  color: #999999;
}

.ph-attachment-container,
.ph-comment-attachment-container {
  display: flex;
  flex-wrap: wrap;
  margin: 0 -7px;
}

.ph-file-attachment-thumbnail {
  max-width: 50px;
  margin: 10px 7px 5px;

  svg {
    fill: currentColor;
  }

  .ph-loading-image {
    transform: scale(0.5);
  }

  .thumb-icon {
    width: 50px;
    height: 50px;
    margin-bottom: 10px;
    border-radius: 3px;
    border: 1px solid #a8acaf;
    background-color: #f3f3f3;
    box-shadow: 0 0 10px rgba(#191d22, 0.1);
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .ph-close-icon {
    position: absolute !important;
    top: -7px;
    right: -7px;
    background: #51595f;
    color: #fff;
    line-height: 0;
    border-radius: 99px;
    padding: 3px;
    cursor: pointer;
    z-index: 9;
  }

  .ph-download {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    border-radius: 3px;
    bottom: 0;
    color: #fff;
    background: #191d22;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.35s ease;
    color: #fff !important;
    cursor: pointer;

    &:hover {
      opacity: 0.75;
    }
  }

  .ph-attachment-title {
    font-size: 10px;
    line-height: 15px;
    min-height: 15px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;

    &:focus:after,
    &:hover:after {
      content: attr(data-text);
      font-size: 12px;
      overflow: visible;
      text-overflow: inherit;
      background: #fff;
      position: absolute;
      left: auto;
      top: auto;
      width: auto;
      max-width: 20rem;
      border-radius: 3px;
      padding: 4px 8px;
      box-shadow: 0 2px 11px 0 rgba(#191d22, 0.1);
      white-space: normal;
      word-wrap: break-word;
      display: block;
      color: black;
      margin-top: -1.2rem;
      margin-left: -6px;
    }
  }

  .ph-generic-attachment-icon {
    font-weight: bold;
    font-size: 12px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    padding: 0 5px;
  }

  .ph-upload-progress {
    position: absolute;
    bottom: 3px;
    left: 3px;
    right: 3px;
    height: 3px;
    border-radius: 999px;
    overflow: hidden;

    .ph-upload-progress-indicator {
      height: 100%;
      width: 0%;
      background: #6e7b89;
      border-radius: 999px;
      transition: width 0.35s ease;
    }
  }
}
