Quarterly report pursuant to Section 13 or 15(d)

Quarterly report pursuant to Section 13 or 15(d)

Summary of Significant Accounting Policies (Details)

v3.21.1
Summary of Significant Accounting Policies (Details) - USD ($)
$ in Thousands
Mar. 31, 2021
Mar. 31, 2021
Mar. 31, 2021
Jan. 01, 2021
Dec. 31, 2020
May 04, 2020
Mar. 31, 2020
Dec. 31, 2019
New Accounting Pronouncements or Change in Accounting Principle [Line Items]                
Deferred income tax liabilities, net $ (1,744)       $ (5,415)      
Deferred tax assets, valuation allowance 9,300              
Convertible senior notes, net 530,378       168,120      
Accumulated deficit (843,714)       (694,294)   $ (505,043) $ (507,408)
Foreign Tax Authority                
New Accounting Pronouncements or Change in Accounting Principle [Line Items]                
Deferred tax assets, valuation allowance 3,000       2,600      
Accumulated Deficit                
New Accounting Pronouncements or Change in Accounting Principle [Line Items]                
Accumulated deficit 28,603       7,185   18,335 11,357
Additional Paid-in Capital                
New Accounting Pronouncements or Change in Accounting Principle [Line Items]                
Accumulated deficit $ (872,350)       (701,357)   $ (525,929) $ (520,278)
Cumulative Effect, Period of Adoption, Adjustment                
New Accounting Pronouncements or Change in Accounting Principle [Line Items]                
Deferred income tax liabilities, net       $ 6,600        
Deferred tax assets, valuation allowance       2,000        
Convertible senior notes, net       27,200        
Accumulated deficit         22,575      
Cumulative Effect, Period of Adoption, Adjustment | Accumulated Deficit                
New Accounting Pronouncements or Change in Accounting Principle [Line Items]                
Accumulated deficit       $ (2,700) (696)      
Cumulative Effect, Period of Adoption, Adjustment | Additional Paid-in Capital                
New Accounting Pronouncements or Change in Accounting Principle [Line Items]                
Accumulated deficit         $ 23,271      
1.25% Convertible Senior Notes due 2025 | Convertible Debt                
New Accounting Pronouncements or Change in Accounting Principle [Line Items]                
Stated interest rate (as a percent)   1.25% 1.25%     1.25%