.dropzone {
  flex-direction: column;
  width: 100%;

  &,
  label,
  .label,
  .list {
    display: flex;
  }

  .remove-icon  {
    display: none;
    margin-left: auto;
    z-index: 2;
    position: relative;

    svg {
      width: 20px;
      height: 20px;
      max-height: 20px;
      vertical-align: middle;
      fill: #ccc;
    }
  }

  label,
  .label {
    align-items: center;
    border: 1px dashed #ccc;
    color: #ccc;
    width: 100%;
    position: relative;
    height: 50px;
    padding-left: 20px;
    padding-right: 10px;

    &.error {
      border-color: mix(red, $primary, 35%);

      .img {
        display: none;
      }
    }

    .img {
      position: relative;
      width: 20px;
      height: 20px;
      margin-right: 10px;
      flex-shrink: 0;

      svg {
        width: 100%;
        height: 100%;
        max-height: 100%;
        display: block;
      }
    }

    .text {
      font-weight: 300;
      font-size: 16px;
      line-height: 1.1;
      color: #ccc;
    }

    .errors {
      display: none;
      font-size: 16px;
      color: mix(red, $primary, 35%);
    }

    input {
      opacity: 0;
      position: absolute;
      width: 100%;
      height: 100%;
      top: 0;
      left: 0;
    }
  }

  .file-list {
    width: 100%;
    flex-direction: column;
    margin-top: 20px;
  }

  > input {
    opacity: 0;
    display: none;
  }

  .file {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    background-color: rgba(#fff, .2);
    padding-left: 10px;
    padding-right: 5px;
    border-radius: 3px;
    margin-bottom: 10px;
    height: 30px;
    overflow: hidden;
    position: relative;

    &.empty {
      display: none;
    }

    .title {
      max-width: 90%;
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap;
    }

    .close {
      padding-right: 5px;
      padding-left: 5px;
    }

    .progress-bar {
      background-color: $primary;
      position: absolute;
      height: 2px;
      bottom: 0;
      left: 0;
    }
  }
}
