Debt - Schedule of Net Carrying Amount of the Liability Component of the Notes (Details) - Convertible Debt - USD ($) $ in Thousands |
Jun. 30, 2024 |
Dec. 31, 2023 |
|---|---|---|
| Convertible Senior Notes, Due 2029 | ||
| Debt Instrument [Line Items] | ||
| Principal | $ 747,500 | |
| Unamortized issuance costs | (17,488) | |
| Net carrying amount | 730,012 | |
| Convertible Senior Notes, Due 2025 | ||
| Debt Instrument [Line Items] | ||
| Principal | 434,400 | |
| Principal | 747,500 | $ 747,500 |
| Unamortized issuance costs | (2,041) | (5,375) |
| Principal repaid | (313,095) | 0 |
| Net carrying amount | $ 432,364 | $ 742,125 |
| X | ||||||||||
- Definition Long Term Debt, Excluding Principal Repaid No definition available.
|
| X | ||||||||||
- Definition Amount of annual principal payment for debt instrument. Reference 1: http://fasb.org/us-gaap/role/ref/legacyRef
|
| X | ||||||||||
- Definition Amount, before unamortized (discount) premium and debt issuance costs, of long-term debt. Includes, but is not limited to, notes payable, bonds payable, commercial loans, mortgage loans, convertible debt, subordinated debt and other types of debt. Reference 1: http://fasb.org/us-gaap/role/ref/legacyRef
|
| X | ||||||||||
- Definition Line items represent financial concepts included in a table. These concepts are used to disclose reportable information associated with domain members defined in one or many axes to the table. Reference 1: http://www.xbrl.org/2003/role/exampleRef
|
| X | ||||||||||
- Definition Amount, before accumulated amortization, of debt issuance costs. Includes, but is not limited to, legal, accounting, underwriting, printing, and registration costs. Reference 1: http://www.xbrl.org/2009/role/commonPracticeRef
|
| X | ||||||||||
- Definition Amount, after deduction of unamortized premium (discount) and debt issuance cost, of long-term debt. Excludes lease obligation. Reference 1: http://fasb.org/us-gaap/role/ref/legacyRef
|
| X | ||||||||||
- Details
|
| X | ||||||||||
- Details
|
| X | ||||||||||
- Details
|