Convertible Senior Notes - Schedule of Interest Expense Related to 2025 Notes (Details) - USD ($) $ in Thousands |
3 Months Ended | 9 Months Ended | |
|---|---|---|---|
Sep. 30, 2021 |
Sep. 30, 2021 |
Sep. 30, 2020 |
|
| Debt Instrument [Line Items] | |||
| Amortization of debt issuance costs | $ 1,550 | $ 1,427 | |
| Amortization of debt discount | 19,398 | $ 15,381 | |
| Convertible Notes Due 2025 | Convertible Debt | |||
| Debt Instrument [Line Items] | |||
| Contractual interest expense | $ 109 | 327 | |
| Amortization of debt issuance costs | 241 | 717 | |
| Amortization of debt discount | 3,416 | 10,122 | |
| Interest Expense | $ 3,766 | $ 11,166 | |
| X | ||||||||||
- Definition Amount of noncash expense included in interest expense to amortize debt discount and premium associated with the related debt instruments. Excludes amortization of financing costs. Alternate captions include noncash interest expense. Reference 1: http://fasb.org/us-gaap/role/ref/legacyRef
|
| X | ||||||||||
- Definition Amount of amortization expense attributable to debt issuance costs. Reference 1: http://www.xbrl.org/2009/role/commonPracticeRef
|
| 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. No definition available.
|
| X | ||||||||||
- Definition Amount of the cost of borrowed funds accounted for as interest expense. Reference 1: http://www.xbrl.org/2003/role/disclosureRef
|
| X | ||||||||||
- Definition Amount of the cost of borrowed funds accounted for as interest expense for debt. Reference 1: http://www.xbrl.org/2003/role/disclosureRef
|
| X | ||||||||||
- Details
|
| X | ||||||||||
- Details
|