v3.21.2
Summary of Significant Accounting Policies - Summary of Basic and Diluted Net Loss per Common Share (Details) - USD ($)
$ / shares in Units, shares in Thousands, $ in Thousands
3 Months Ended 9 Months Ended
Sep. 30, 2021
Sep. 30, 2020
Sep. 30, 2021
Sep. 30, 2020
Numerator:        
Net loss $ (31,583) $ (26,720) $ (87,365) $ (99,799)
Denominator:        
Weighted-average common shares outstanding, basic (in shares) 56,559 53,574 56,242 51,141
Weighted-average common shares outstanding, diluted (in shares) 56,559 53,574 56,242 51,141
Net loss per common share, basic (usd per share) $ (0.56) $ (0.50) $ (1.55) $ (1.95)
Net loss per common share, diluted (usd per share) (0.56) $ (0.50) $ (1.55) $ (1.95)
Antidilutive securities excluded from computation of earnings per share (in shares)     2,989 4,556
Warrant Transaction        
Denominator:        
Warrant strike price (usd per share) 78.75   $ 78.75  
Convertible Senior Notes Due February 2023 | Convertible Debt | Bond Hedge        
Denominator:        
Conversion price (usd per share) 57.38   57.38  
Convertible Notes Due 2025 | Convertible Debt        
Denominator:        
Conversion price (usd per share) 140.14   140.14  
Convertible Senior Notes Due June 2026 | Convertible Debt        
Denominator:        
Conversion price (usd per share) $ 88.61   $ 88.61  
Stock options, restricted stock units, and market stock units        
Denominator:        
Antidilutive securities excluded from computation of earnings per share (in shares)     2,296 3,140
Shares related to the 2023 Notes        
Denominator:        
Antidilutive securities excluded from computation of earnings per share (in shares)     86 1,226
Convertible Senior Notes Due February 2023        
Denominator:        
Antidilutive securities excluded from computation of earnings per share (in shares)     48 190
Shares related to the 2026 Notes        
Denominator:        
Antidilutive securities excluded from computation of earnings per share (in shares)     559 0