Convertible Senior Notes - Conversion (Details) - USD ($) $ in Thousands |
1 Months Ended | 12 Months Ended | ||||||
|---|---|---|---|---|---|---|---|---|
May 18, 2020 |
May 31, 2020 |
Dec. 31, 2023 |
Dec. 31, 2022 |
Dec. 31, 2021 |
Dec. 31, 2020 |
May 29, 2020 |
Mar. 31, 2018 |
|
| Convertible Senior Notes | ||||||||
| Net proceeds | $ 104,251 | $ 122,886 | $ 108,925 | |||||
| Conversion of convertible senior notes to common stock | $ 15,345 | |||||||
| 3.75% Convertible Senior Notes | ||||||||
| Convertible Senior Notes | ||||||||
| Principal amount | $ 200,000 | $ 212,463 | 197,278 | 197,278 | $ 12,500 | |||
| Less initial purchasers' discount | (6,374) | |||||||
| Less initial purchasers' discount | (6,400) | |||||||
| Less cost of related capped calls | (16,253) | |||||||
| Less other issuance costs | $ (600) | (617) | ||||||
| Net proceeds | $ 189,219 | |||||||
| Interest rate (as a percent) | 3.75% | 3.75% | 3.75% | 3.75% | 3.75% | 3.75% | ||
| Conversion of convertible senior notes to common stock | $ 0 | $ 0 | ||||||