/* IranStores Persian file picker */

.fa-file-picker {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    min-height: 52px;
    padding: 7px;
    border: 1px solid #d8dce5;
    border-radius: 12px;
    background: #fff;
    direction: rtl;
}

.fa-file-native {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

.fa-file-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    min-height: 38px;
    padding: 8px 14px;
    border: 0;
    border-radius: 9px;
    background: linear-gradient(135deg, #7c3aed, #5b21b6);
    color: #fff;
    font-family: inherit;
    font-size: 12px;
    font-weight: 900;
    cursor: pointer;
}

.fa-file-button:hover {
    background: linear-gradient(135deg, #6d28d9, #4c1d95);
}

.fa-file-status {
    display: block;
    min-width: 0;
    overflow: hidden;
    color: #64748b;
    font-size: 12px;
    font-weight: 700;
    text-align: right;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.fa-file-picker.has-file {
    border-color: #a78bfa;
    background: #faf8ff;
}

.fa-file-picker.has-file .fa-file-status {
    color: #5b21b6;
}

.fa-file-picker:focus-within {
    border-color: #8b5cf6;
    box-shadow: 0 0 0 4px rgba(124, 58, 237, .12);
}

html[data-theme="dark"] .fa-file-picker {
    border-color: #493c54;
    background: #15111a;
}

html[data-theme="dark"] .fa-file-status {
    color: #aaa0b0;
}

html[data-theme="dark"] .fa-file-picker.has-file {
    border-color: #8b5cf6;
    background: #211a27;
}

html[data-theme="dark"] .fa-file-picker.has-file .fa-file-status {
    color: #ddd6fe;
}

@media (max-width: 575.98px) {
    .fa-file-picker {
        align-items: stretch;
        flex-direction: column;
        gap: 7px;
    }

    .fa-file-button {
        width: 100%;
    }

    .fa-file-status {
        width: 100%;
        padding: 4px 6px;
        text-align: center;
    }
}
