XML 70 R61.htm IDEA: XBRL DOCUMENT v3.22.2
Borrowings - Summary (Details) - USD ($)
$ in Thousands
Jun. 30, 2022
Dec. 31, 2021
Schedule of Borrowings [Line Items]    
Total payments due $ 869,373 $ 709,787
Unamortized debt discount (12,818) (14,355)
Total borrowings 856,555 695,432
Warehouse credit facilities | Revolving Credit Facility    
Schedule of Borrowings [Line Items]    
Total payments due 208,123 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