.u-fileupload * {
  box-sizing: border-box;
}

.hidden {
  display: none;
}

.btn-upload-text {
  font-size: 18px;
  line-height: 18px;
  color: #189cc7;
}

.u-fileupload {
  position: relative;

  .ucloud-inline-block {
    display: inline-block;
    vertical-align: middle;
  }

  .uploader-list {
    .item {
      display: inline-block;
      position: relative;
      vertical-align: middle;
    }

    .file-readonly .filename {
      text-decoration: none;

      &:hover {
        text-decoration: underline;
      }
    }
    .file-readonly .filename-download{
      margin-left: 10px !important;
    }

    .file-readonly .file-info {
      border: 1px solid transparent;
      background: transparent;

      div {
        margin-right: -5px;
      }

      &:hover {
        border: 1px solid transparent;
        background: transparent;
      }
    }

    .progress {
      position: absolute;
      top: 18px;
      left: 0;
      height: 2px;
      margin-bottom: 10px;
      overflow: hidden;
      background-color: #f5f5f5;
      border-radius: 1px;
      -webkit-box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.1);
      box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.1);
      width: 100%;
      display: none;

      &.active {
        display: block;
      }
    }

    .progress-bar {
      float: left;
      width: 0;
      height: 100%;
      font-size: 12px;
      line-height: 10px;
      color: #fff;
      text-align: center;
      background-color: #428bca;
      -webkit-box-shadow: inset 0 -1px 0 rgba(0, 0, 0, .15);
      box-shadow: inset 0 -1px 0 rgba(0, 0, 0, .15);
      -webkit-transition: width .6s ease;
      -o-transition: width .6s ease;
      transition: width .6s ease;
    }

    /*file-info*/
    .file-info {
      vertical-align: middle;
      position: relative;
      padding: 2px 5px;
      width: 100%;
      height: 20px;
      border-radius: 2px;
      background: #ecf6fd;
      border: 1px solid #c3dff6;

      &:hover {
        border: 1px solid #6bcaea;
        background: #e9f7fc;
      }
      .filename-download span{
        position: relative;
        font-size: 12px;
        color: #4297dd;
        cursor: pointer;
        top: -2px;
      }
      .filename-download span:hover{
        font-weight: bolder;
        text-decoration: underline;
      }
      div {
        display: inline-block;
        vertical-align: top;
        margin-right: 20px;
      }
      .filename-download {
        margin-right: 10px;
        margin-left: -10px;
      }


      .fa {
        font-size: 12px;
        cursor: pointer;
      }

      .fa-paperclip {
        position: relative;
        top: -5px;
        color: #1983d7;
        transform: rotate(45deg);
        left: 2px;
      }

      .fa-remove {
        color: #1983d7;
        display: block;
        position: absolute;
        right: 2px;
        top: 4px;
      }

      p.state {
        font-size: 12px;
        margin: 5px 0;
        color: #999;
        position: absolute;
        top: 20px;
      }
    }

    .filename {
      max-width: 300px;
      overflow: hidden;
      text-overflow: ellipsis;
      height: 16px;
      font-size: 12px;
      line-height: 16px;
      cursor: pointer;
      text-decoration: underline;
      color: #1983d7;
      word-break: break-all;
    }
  }

  .btn-upload {
    display: inline-block;
    vertical-align: middle;
    background: #3ca7e2;
    border-radius: 2px;
    width: 60px;
    height: 20px;
    color: #ffffff;
    font-size: 14px;
    line-height: 32px;
    text-align: center;
    margin: 0px;
    cursor: pointer;

    &:hover {
      background-color: #2D93CA;
    }
  }

  /*webuploader fix*/
  .webuploader-container {
    position: relative;
  }

  .webuploader-element-invisible {
    position: absolute !important;
    clip: rect(1px 1px 1px 1px);
    /* IE6, IE7 */
    clip: rect(1px, 1px, 1px, 1px);
  }

  .webuploader-pick+div {
    width: 60px !important;
    height: 20px !important;
  }

  .webuploader-pick {
    position: relative;
    display: inline-block;
    cursor: pointer;
    background: transparent;
    padding: 5px 10px;
    color: #4b4242;
    text-align: center;
    border-radius: 3px;
    overflow: hidden;
  }

  .single .webuploader-pick {
    padding: 0;
    font-size: 12px;
    color: #FFF;
    top: -3px;
  }

  .webuploader-pick-hover {
    color: #00a2d4;
  }

  .webuploader-pick-disable {
    opacity: 0.6;
    pointer-events: none;
  }
}