input[type="file"][data-upload] {
    display: block;
    width: 100%;
    min-width: 0;
    max-width: 100%;
    box-sizing: border-box;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

input[type="file"][data-upload]::file-selector-button {
    margin-inline-end: .8em;
    padding: .65em 1em;
    border: 1px solid #acbcc765;
    border-radius: 8px;
    background: linear-gradient(#29343c, #192229);
    color: #f2f8fa;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
}

input[type="file"][data-upload]:not(:disabled):hover::file-selector-button,
input[type="file"][data-upload]:focus-visible::file-selector-button {
    background: #34464f;
    border-color: #8be5e9;
}

input[type="file"][data-upload]:disabled::file-selector-button {
    opacity: .55;
    cursor: default;
}

.webly-upload-error {
    display: block;
    color: #ffabab;
    font-size: .85em;
    line-height: 1.4;
    white-space: normal;
}

.webly-upload-error:empty {
    display: none;
}
