@include prefix(upload) {
  .upload-item {
    position: relative;

    .upload-item-inner {
      padding: 6px 9px;
      font-size: 14px;
      color: plv(text-2);
      position: relative;
      z-index: 2;
      height: 100%;
      box-sizing: border-box;
      display: flex;
      align-items: center;

      & > .#{componentName(icon)}:first-child {
        color: plv(text-2);
      }

      & > .#{componentName(icon)}, & > .#{componentName(loading)} {
        margin-right: 4px;
      }
    }

    .upload-item-progress {
      position: absolute;
      top: 2px;
      bottom: 2px;
      left: 2px;
      right: 2px;
      z-index: 1;

      .upload-item-progress-inner {
        transition: all 1s linear;
        height: 100%;
        background-color: plv(priamry-light-2);
        border-top-right-radius: 100px;
        border-bottom-right-radius: 100px;
        z-index: -1;
      }
    }

    .upload-item-content {
      display: inline-block;
    }

    & + .upload-item {
      margin-top: 8px;
    }

    &.upload-item-status-success {
      .upload-item-inner {
        &, & > .#{componentName(icon)} {
          color: plv(primary-6);
        }
      }
    }

    &.upload-item-status-error {
      .upload-item-inner {
        &, & > .#{componentName(icon)} {
          color: plv(error-6);
        }
      }
    }

    &.upload-item-status-ready {
      .upload-item-inner {
        &, & > .#{componentName(icon)} {
          color: plv(warn-6);
        }
      }
    }
  }

  &.upload-preview {
    .upload-item {
      .upload-item-content {
        &:hover {
          text-decoration: underline;
          color: plv(primary-6);
          cursor: pointer;
        }
      }
    }
  }

  &.upload-remove {
    .upload-item {
      .upload-item-inner {
        padding-right: 32px;
      }

      .upload-item-remove {
        width: 32px;
        position: absolute;
        top: 0;
        right: 0;
        bottom: 0;
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        color: plv(text-2);
        transition: all 300ms linear;

        &:hover {
          color: plv(primary-6);
        }
      }
    }
  }

  &.upload-single {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    justify-content: center;

    & > .#{componentName(button-group)}:first-child {
      & > .#{componentName(button)}:last-child {
        border-top-right-radius: 0;
        border-bottom-right-radius: 0;
      }
    }

    .upload-item {
      flex: 1;
      border: solid 1px plv(border-color);
      border-top-right-radius: 2px;
      border-bottom-right-radius: 2px;
    }

    &:not(.upload-disabled) {
      .upload-item {
        border-left: none;
      }
    }
  }

  &.upload-multiple {
    .upload-button {

    }

    .upload-list {
      margin-top: 8px;

      .upload-item {
        border: dashed 1px plv(border-color);
      }
    }

    .upload-drop-area {
      display: flex;
      flex-direction: column;
      padding: 12px;
      align-items: center;
      justify-content: center;
      border: dashed 1px plv(border-color);
      cursor: pointer;

      & > .#{componentName(icon)} {
        font-size: 32px;
        color: plv(primary-6);
        margin-bottom: 8px;
      }

      .upload-drop-upload-button {
        margin-left: 4px;
      }
    }

    &.upload-disabled {
      .upload-drop-area {
        color: plv(text-2);
        cursor: not-allowed;

        & > .#{componentName(icon)} {
          color: plv(text-2);
        }
      }
    }
  }
}
