.uploader {
    position: relative;
    isolation: isolate;
    width: 120px;
    height: 30px;
    box-sizing: border-box;
}

.uploader > textarea {
    display: none;
}

.uploader > input {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    z-index: 3;
}

.uploader > input[type=file], .uploader > input[type=file]::-webkit-file-upload-button:hover {
    cursor: pointer;
}

.uploader > a {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height:100%;
    display: inline-block;
    color: #fff;
    text-align: center;
    cursor: pointer;
    user-select: none;
    background-image: linear-gradient(180deg, rgba(255, 255, 255, 0.15), rgba(255, 255, 255, 0));
    background-color: #0d6efd;
    border: 1px solid #0d6efd;
    padding: 0.375rem 0.75rem;
    font-size: 1rem;
    border-radius: 0.25rem;
    transition: color .15s ease-in-out,background-color .15s ease-in-out,border-color .15s ease-in-out,box-shadow .15s ease-in-out;
    box-sizing: border-box;
    z-index: 2;
}

.uploader > a:before,
.uploader > a:after {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    margin-top: 3px;
}

.uploader > a:before {
    content: '\2601';
    font-size: 28px;
    line-height: 1;
}

.uploader > a:after {
    content: '\01F861';
    font-size: 20px;
    line-height: 1;
    color: #0d6efd;
}

.uploader.uploading > a:before {
    counter-reset: cnt var(--progress);
    content: counter(cnt) '%';
    font-size: 14px;
    margin-top: 1px;
    font-family: sans-serif;
}

.uploader.uploading a:after {
    content:'';
    background-image: linear-gradient(45deg,rgba(255,255,255,.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,.15) 50%,rgba(255,255,255,.15) 75%,transparent 75%,transparent);
    background-size: 1rem 1rem;
    animation: 1s linear infinite progress-bar-stripes;
    width: calc(var(--progress) * 1%);
    margin: 0;
}

.uploader.uploading a[style*="--progress:100"] {
    background-color:#198754;
}

@keyframes progress-bar-stripes{0%{background-position-x:1rem}}@keyframes progress-bar-stripes{0%{background-position-x:1rem}}