.container {
  display: flex;
  align-items: center;
  .attachment {
    display: flex;
    align-items: center;
    overflow: hidden;
    .attachmentIcon {
      margin-top: -2px;
      color: $ghost;
    }
    .name {
      flex: 1;
      margin-left: 8px;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
    }
    .deleteIcon {
      margin-left: 8px;
      color: $ghost;
      cursor: pointer;
      &:hover {
        color: $sunset-orange;
      }
    }
  }
  &.withError {
    .attachmentIcon, .name {
      color: $sunset-orange;
    }
  }
  .errorMessage {
    margin-left: 12px;
    font-size: 12px;
    color: $sunset-orange;
    white-space: nowrap;
  }
  .uploadingIndicator {
    margin-left: 16px;
    color: $green;
    &: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: 0;
    }
    @keyframes ellipsis {
      to {
        width: 1.25em;
      }
    }
    @-webkit-keyframes ellipsis {
      to {
        width: 1.25em;
      }
    }
  }
}
