Income Taxes - Summary of Activity Related to Gross Unrecognized Tax Benefits (Details) - USD ($) $ in Thousands |
12 Months Ended | |
|---|---|---|
Dec. 31, 2020 |
Dec. 31, 2019 |
|
| Income Tax Uncertainties [Abstract] | ||
| Beginning balance of unrecognized tax benefits | $ 286,605 | $ 251,808 |
| Additions for current year tax positions | 56,226 | 40,221 |
| Additions for prior year tax positions | 3,218 | 1,977 |
| Reductions for prior year tax positions | (712) | (7,425) |
| Changes due to lapse of statute of limitations | (570) | |
| Changes due to foreign currency translation adjustments | 204 | 24 |
| Ending balance of unrecognized tax benefits (excluding interest and penalties) | 344,971 | 286,605 |
| Interest and penalties associated with unrecognized tax benefits | 357 | 200 |
| Ending balance of unrecognized tax benefits (including interest and penalties) | $ 345,328 | $ 286,805 |