.dropzone,
.dropzone * {
  box-sizing: border-box;
}
.dropzone {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  align-content: flex-start;
  padding: 13px;

  &.dz-clickable {
    cursor: pointer;

    * {
      cursor: default;
    }
    .dz-message {
      font-size: 26px;
      &,
      * {
        cursor: pointer;
      }
      .note {
        display: block;
        font-size: 16px;
      }
    }
  }

  &.dz-started {
    .dz-message {
      display: none;
    }
  }

  &.dz-drag-hover {
    .dz-message {
      opacity: 0.5;
    }
  }

  .dz-message {
    text-align: center;
    margin: 2em 0;
  }

  .dz-preview {
    position: relative;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    width: 70px;
    height: 150px;
    /* width: 140px;
    height: 210px; */
    margin: 0 13px 13px 0;
    border-radius: 6px;
    border: 1px solid rgba(0, 0, 0, 0.2);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);

    &.dz-complete.dz-error {
      order: 1;
    }

    .dz-remove {
      /* display: none; */
      position: absolute;
      top: 0;
      right: 0;
      bottom: auto;
      left: 0;
      padding: 0 0 13px 0;

      font-size: 13px;
      text-align: center;
      background-image: linear-gradient(#fff 0, #fff 21px, transparent 36px);
    }

    &.dz-complete.dz-error .dz-remove {
      display: block;
    }

    .dz-image {
      width: 140px;
      height: 210px;
      position: relative;
      display: block;
      overflow: hidden;

      img {
        display: block;
      }
    }

    &.dz-processing .dz-progress {
      opacity: 1;
      transition: all 0.2s linear;
    }

    &.dz-complete .dz-progress {
      opacity: 0;
      transition: opacity 0.4s ease-in;
    }

    .dz-progress {
      opacity: 1;
      z-index: 1000;

      pointer-events: none;
      position: absolute;
      height: 16px;
      left: 50%;
      top: 50%;
      margin-top: -8px;

      width: 80px;
      margin-left: -40px;

      background-color: rgba(255, 255, 255, 0.9);
      border: 1px solid;
      // Fix for chrome bug: https://code.google.com/p/chromium/issues/detail?id=157218
      -webkit-transform: scale(1);

      border-radius: 8px;

      overflow: hidden;

      .dz-upload {
        background: #333;
        background-image: linear-gradient(to bottom, #8bc34a, #689f38);
        position: absolute;
        top: 0;
        left: 0;
        bottom: 0;
        width: 0;
      }
    }

    .dz-error-message {
      @color: rgb(190, 38, 38);
      display: none;
      padding: 6px;
      line-height: 16px;
      font-size: 13px;

      background: linear-gradient(to bottom, @color, darken(@color, 5%));

      color: #fff;
    }
    &.dz-complete.dz-error .dz-error-message {
      display: block;
    }

    .dz-filename {
      font-size: 13px;
      padding: 6px;
      line-height: 16px;
      text-align: center;
    }
  }
}
