Convertible Senior Notes - Schedule of Convertible Senior Notes (Details) - Convertible Debt |
Nov. 15, 2020
USD ($)
$ / shares
|
Jun. 01, 2019
USD ($)
$ / shares
|
Feb. 15, 2018
USD ($)
$ / shares
|
Nov. 30, 2020
USD ($)
|
Jun. 30, 2019
USD ($)
|
Feb. 28, 2018
USD ($)
|
|---|---|---|---|---|---|---|
| Convertible Senior Notes Due February 2023 | ||||||
| Debt Instrument [Line Items] | ||||||
| Principal amount | $ | $ 230,000,000 | $ 230,000,000 | ||||
| Interest rate | 0.75% | |||||
| Conversion rate of common stock | 0.0174292 | |||||
| Initial conversion price (usd per share) | $ / shares | $ 57.38 | |||||
| Convertible Senior Notes Due June 2026 | ||||||
| Debt Instrument [Line Items] | ||||||
| Principal amount | $ | $ 316,250,000 | $ 316,300,000 | ||||
| Interest rate | 0.75% | |||||
| Conversion rate of common stock | 0.0112851 | |||||
| Initial conversion price (usd per share) | $ / shares | $ 88.61 | |||||
| Convertible Notes Due 2025 | ||||||
| Debt Instrument [Line Items] | ||||||
| Principal amount | $ | $ 350,000,000 | $ 350,000,000 | ||||
| Interest rate | 0.125% | |||||
| Conversion rate of common stock | 0.0071355 | |||||
| Initial conversion price (usd per share) | $ / shares | $ 140.14 |