.uf-files-plain {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.uf-files-plain__row {
    padding: 0.875rem 1rem;
    background: #f8fafc;
    border: 1px solid #e8edf2;
    border-radius: 6px;
}

.uf-files-plain__row--template {
    display: none;
}

.uf-files-plain__preview {
    margin-bottom: 0.75rem;
}

.uf-files-plain__preview a {
    font-weight: 600;
    color: #2c6ecb;
}

.uf-files-plain__preview img {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
}

.uf-files-plain__file-label {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.625rem 0.75rem;
    cursor: pointer;
}

.uf-files-plain__file-input {
    position: absolute;
    width: 0.1px;
    height: 0.1px;
    opacity: 0;
    overflow: hidden;
    z-index: -1;
}

.uf-files-plain__file-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    padding: 0 1rem;
    font-size: 0.9375rem;
    font-weight: 600;
    line-height: 1.2;
    color: #2c6ecb;
    background: #fff;
    border: 1px solid #c5d4e8;
    border-radius: 4px;
    transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.uf-files-plain__file-label:hover .uf-files-plain__file-btn,
.uf-files-plain__file-label:focus-within .uf-files-plain__file-btn {
    background: #f6f9fc;
    border-color: #2c6ecb;
    color: #1f4f9c;
}

.uf-files-plain__file-name {
    flex: 1 1 12rem;
    min-width: 0;
    font-size: 0.875rem;
    line-height: 1.4;
    color: #5a6c77;
    word-break: break-word;
}

.uf-files-plain__file-name:empty::before,
.uf-files-plain__file-name[data-empty="Y"]::before {
    content: attr(data-placeholder);
    color: #8a96a3;
    font-style: italic;
}

.uf-files-plain__actions {
    margin-top: 0.25rem;
}

.uf-files-plain__add-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    min-height: 42px;
    padding: 0 1.25rem;
    font-family: inherit;
    font-size: 0.9375rem;
    font-weight: 600;
    line-height: 1.2;
    color: #fff;
    background: linear-gradient(180deg, #3a7fd4 0%, #2c6ecb 100%);
    border: 1px solid #2459a8;
    border-radius: 4px;
    box-shadow: 0 1px 2px rgba(26, 54, 93, 0.12);
    cursor: pointer;
    transition: background 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease, transform 0.1s ease;
}

.uf-files-plain__add-btn:hover {
    background: linear-gradient(180deg, #4589dc 0%, #3276d4 100%);
    border-color: #2c6ecb;
    box-shadow: 0 2px 6px rgba(44, 110, 203, 0.22);
}

.uf-files-plain__add-btn:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(44, 110, 203, 0.35);
}

.uf-files-plain__add-btn:active {
    transform: translateY(1px);
    box-shadow: 0 1px 2px rgba(26, 54, 93, 0.15);
}

.uf-files-plain__add-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.25rem;
    height: 1.25rem;
    font-size: 1.125rem;
    font-weight: 700;
    line-height: 1;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
}

@media (max-width: 480px) {
    .uf-files-plain__file-label {
        flex-direction: column;
        align-items: stretch;
    }

    .uf-files-plain__file-btn,
    .uf-files-plain__add-btn {
        width: 100%;
    }
}
