/*
 * Bewusst zurückhaltend: erbt Schrift, Farbe und Rahmenstil vom umgebenden
 * Formular, damit das Feld nicht aus dem Theme fällt. Wer eigene Radien oder
 * Farben hat, überschreibt die Variablen im Theme-Stylesheet.
 */
.nc-upload {
    --nc-border: currentColor;
    --nc-radius: 3px;
}

.nc-upload__input {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    border: 0;
}

.nc-upload__dropzone {
    padding: 1.25em 1em;
    text-align: center;
    cursor: pointer;
    border: 1px dashed var(--nc-border);
    border-radius: var(--nc-radius);
    opacity: .8;
}

.nc-upload__dropzone:focus-visible,
.nc-upload__dropzone.is-dragover {
    opacity: 1;
    outline: 2px solid currentColor;
    outline-offset: 2px;
}

.nc-upload__browse {
    padding: 0;
    font: inherit;
    color: inherit;
    text-decoration: underline;
    cursor: pointer;
    background: none;
    border: 0;
}

.nc-upload__list {
    margin: .5em 0 0;
    padding: 0;
    list-style: none;
}

.nc-upload__item {
    display: flex;
    gap: .75em;
    align-items: center;
    padding: .4em 0;
    border-bottom: 1px solid var(--nc-border);
}

.nc-upload__name {
    flex: 1 1 auto;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.nc-upload__size {
    flex: 0 0 auto;
    font-size: .85em;
    opacity: .7;
}

.nc-upload__bar {
    flex: 0 0 6em;
    height: .4em;
    overflow: hidden;
    border: 1px solid var(--nc-border);
    border-radius: var(--nc-radius);
}

.nc-upload__bar > span {
    display: block;
    height: 100%;
    background: currentColor;
    transition: width .2s;
}

.nc-upload__remove {
    flex: 0 0 auto;
    font: inherit;
    font-size: .85em;
    color: inherit;
    text-decoration: underline;
    cursor: pointer;
    background: none;
    border: 0;
}

.nc-upload__message {
    margin: .5em 0 0;
    font-size: .9em;
}
