XML 50 R38.htm IDEA: XBRL DOCUMENT v3.22.1
Long-term Debt (Tables)
3 Months Ended
Mar. 31, 2022
Debt Disclosure [Abstract]  
Schedule of convertible debt The following table summarizes the carrying value of the long-term convertible debt as of March 31, 2022 and December 31, 2021 (in thousands):
 March 31, 2022December 31, 2021
2024 Notes
Carrying value$114,672 $89,361 
Unamortized debt discount and issuance costs2,379 27,690 
Principal amount$117,051 $117,051 
Remaining amortization period (years)2.72.9
Fair value(1)
$209,973 $195,445 
2025 Notes
Carrying value$167,926 $126,315 
Unamortized debt discount and issuance costs4,574 46,185 
Principal amount$172,500 $172,500 
Remaining amortization period (years)3.53.8
Fair value(1)
$203,648 $177,251 
————————
(1)Fair values for notes are derived from available trading prices closest to the respective balance sheet date.