XML 60 R50.htm IDEA: XBRL DOCUMENT v3.22.2
DEBT - Convertible Senior Notes and Capped Call Options (Details)
$ / shares in Units, $ in Thousands
3 Months Ended 6 Months Ended
Jan. 12, 2021
$ / shares
Jan. 07, 2021
USD ($)
Jun. 30, 2022
USD ($)
Jun. 30, 2021
USD ($)
Jun. 30, 2022
USD ($)
Jun. 30, 2021
USD ($)
Debt Instrument [Line Items]            
Amortization of debt issuance costs         $ 2,825 $ 2,124
Share price (in dollars per share) | $ / shares $ 8.72          
1.50% Convertible Senior Notes | Convertible notes            
Debt Instrument [Line Items]            
Debt instrument, face amount   $ 287,500        
Stated interest rate   1.50%        
Proceeds from convertible debt   $ 280,000        
Interest on convertible debt     $ 1,100 $ 1,100 2,100 2,000
Amortization of debt issuance costs     $ 400 $ 400 $ 700 $ 700
Debt issuance costs   $ 7,600        
Debt instrument, effective interest rate     2.00% 2.00% 2.00% 2.00%
Debt instrument, conversion ratio 0.0834028          
Conversion price, debt instruments (in dollars per share) | $ / shares $ 11.99          
Conversion price, premium percentage 37.50%          
Debt instrument convertible strike price of capped call transactions (in dollars per share) | $ / shares $ 15.26          
Debt instrument convertible strike price of capped call transactions premium percentage 75.00%          
1.50% Convertible Senior Notes | Convertible notes | Maximum            
Debt Instrument [Line Items]            
Debt instrument, conversion ratio 0.1146788