Long-Term Debt - Convertible Senior Notes (Details) $ / shares in Units, $ in Thousands |
|
6 Months Ended |
|
|
|
Mar. 26, 2021
USD ($)
|
Jun. 30, 2022
USD ($)
$ / shares
|
Dec. 31, 2021
USD ($)
|
Mar. 19, 2021
USD ($)
|
| Debt Instrument [Line Items] |
|
|
|
|
| Redemption price percentage |
|
100.00%
|
|
|
| Long-term debt, net |
|
$ 801,849
|
$ 825,565
|
|
| Convertible Senior Notes Due 2028 | Convertible Notes Payable |
|
|
|
|
| Debt Instrument [Line Items] |
|
|
|
|
| Debt Instrument, Face Amount |
$ 20,000
|
$ 170,000
|
$ 170,000
|
$ 150,000
|
| Interest rate, stated percentage |
|
3.25%
|
3.25%
|
3.25%
|
| Proceeds from borrowings, net of issuance costs |
163,600
|
|
|
|
| Debt issuance costs |
$ 6,400
|
|
|
|
| Debt Instrument, Convertible, Conversion Price | $ / shares |
|
$ 6.28
|
|
|
| Redemption price percentage |
|
130.00%
|
|
|
| Debt Instrument, Convertible, Threshold Trading Days |
|
20
|
|
|
| Debt Instrument, Convertible, Threshold Consecutive Trading Days |
|
30
|
|
|
| Debt Instrument, Convertible, Event of Default Minimum Percentage Of Aggregate Principal Amount Holders May Declare Immediately Due And Payable |
|
25.00%
|
|
|
| Debt Instrument, Convertible, Conversion Ratio |
|
0.1592610
|
|
|
| Convertible Senior Notes Due 2028 | Convertible Notes Payable | Debt Instrument, Redemption, Period One |
|
|
|
|
| Debt Instrument [Line Items] |
|
|
|
|
| Redemption price percentage |
|
130.00%
|
|
|
| Debt Instrument, Convertible, Threshold Trading Days |
|
20
|
|
|
| Debt Instrument, Convertible, Threshold Consecutive Trading Days |
|
30
|
|
|
| Convertible Senior Notes Due 2028 | Convertible Notes Payable | Debt Instrument, Redemption, Period Two |
|
|
|
|
| Debt Instrument [Line Items] |
|
|
|
|
| Debt Instrument, Convertible, Threshold Consecutive Trading Days |
|
10
|
|
|
| Debt Instrument, Convertible, Threshold Percentage of Stock Price Trigger |
|
98.00%
|
|
|