.bb-file-upload-wrapper {
    display: flex;
    gap: 0.75rem;
    align-items: stretch;
    flex-wrap: wrap;
    width: 100%;

    @media (max-width: 767px) {
        flex-direction: column;
    }

    .bb-file-input {
        display: none;
    }

    .bb-file-label {
        flex: 1;
        display: flex !important;
        align-items: center;
        gap: 1rem;
        padding: 0.75rem 1rem;
        background-color: #f8f9fa;
        border: 2px dashed #dee2e6;
        border-radius: 0.5rem;
        cursor: pointer;
        transition: all 0.3s ease;
        position: relative;
        min-height: 56px;
        margin-bottom: 0;

        &:hover {
            background-color: rgba(var(--primary-rgb), 0.05);
            border-color: var(--primary-color);

            .bb-file-icon {
                color: var(--primary-color);
                transform: translateY(-2px);
            }

            .bb-file-button {
                background-color: var(--primary-color);
                color: #fff;
            }
        }

        .bb-file-icon {
            flex-shrink: 0;
            width: 32px;
            height: 32px;
            display: flex;
            align-items: center;
            justify-content: center;
            color: #6c757d;
            transition: all 0.3s ease;

            svg {
                width: 32px;
                height: 32px;
            }
        }

        .bb-file-text {
            flex: 1;
            display: flex;
            flex-direction: column;
            gap: 0.25rem;
            min-width: 0;

            .bb-file-placeholder {
                color: #6c757d;
                font-size: 0.875rem;
            }

            .bb-file-name {
                font-weight: 500;
                color: #212529;
                white-space: nowrap;
                overflow: hidden;
                text-overflow: ellipsis;
                display: none;
            }
        }

        .bb-file-button {
            flex-shrink: 0;
            padding: 0.5rem 1rem;
            background-color: #e9ecef;
            color: #495057;
            border-radius: 0.375rem;
            font-weight: 500;
            font-size: 0.875rem;
            transition: all 0.3s ease;
            text-align: center;
        }

        &.has-file {
            border-color: var(--primary-color);
            background-color: rgba(var(--primary-rgb), 0.05);

            .bb-file-icon {
                color: var(--primary-color);
            }

            .bb-file-placeholder {
                display: none;
            }

            .bb-file-name {
                display: block;
            }
        }
    }

    .bb-upload-submit {
        flex-shrink: 0;
        display: inline-flex;
        align-items: center;
        gap: 0.5rem;
        padding: 0.75rem 1.5rem;
        white-space: nowrap;

        @media (max-width: 767px) {
            width: 100%;
            justify-content: center;
        }

        svg {
            width: 1.25rem;
            height: 1.25rem;
        }
    }
}

.bb-payment-proof-card-upload {
    .bb-file-upload-wrapper {
        margin-bottom: 0.5rem;
    }
}
