XML 76 R61.htm IDEA: XBRL DOCUMENT v3.22.2.2
Borrowings - Summary (Details) - USD ($)
$ in Thousands
Sep. 30, 2022
Dec. 31, 2021
Schedule of Borrowings [Line Items]    
Total payments due $ 930,978 $ 709,787
Unamortized debt discount (12,061) (14,355)
Total borrowings 918,917 695,432
Warehouse credit facilities | Revolving Credit Facility    
Schedule of Borrowings [Line Items]    
Total payments due 269,728 48,030
Risk retention funding loan    
Schedule of Borrowings [Line Items]    
Total payments due 0 507
Convertible senior notes    
Schedule of Borrowings [Line Items]    
Total payments due $ 661,250 $ 661,250