XML 83 R66.htm IDEA: XBRL DOCUMENT v3.22.4
Borrowings - Summary (Details) - USD ($)
$ in Thousands
Dec. 31, 2022
Dec. 31, 2021
Schedule of Borrowings [Line Items]    
Total payments due $ 997,702 $ 709,787
Unamortized debt discount (11,308) (14,355)
Total borrowings 986,394 695,432
Warehouse credit facilities | Revolving Credit Facility    
Schedule of Borrowings [Line Items]    
Total payments due 336,452 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