v3.22.2.2
Fair Value Measurements - Schedule of Fair Values Company’s Investments (Details) - USD ($)
$ in Thousands
Sep. 30, 2022
Dec. 31, 2021
Fair Value, Assets and Liabilities Measured on Recurring and Nonrecurring Basis [Line Items]    
Cost $ 1,152,970 $ 1,070,180
Gross Unrealized Holding Loss (3,241) (557)
Gross Unrealized Holding Gain 10 23
Fair Value 1,149,739 1,069,646
Cash and Cash Equivalents 789,990 780,196
Short-term Investments 251,165 204,416
Long-term Investments 32,138 85,034
Cash    
Fair Value, Assets and Liabilities Measured on Recurring and Nonrecurring Basis [Line Items]    
Cost 289,768 214,771
Gross Unrealized Holding Loss 0 0
Gross Unrealized Holding Gain 0 0
Fair Value 289,768 214,771
Cash and Cash Equivalents 289,768 214,771
Short-term Investments 0 0
Long-term Investments 0 0
Level 1    
Fair Value, Assets and Liabilities Measured on Recurring and Nonrecurring Basis [Line Items]    
Cost 645,429 616,738
Gross Unrealized Holding Loss (576) (55)
Gross Unrealized Holding Gain 2 11
Fair Value 644,855 616,694
Cash and Cash Equivalents 495,205 556,427
Short-term Investments 73,204 52,632
Long-term Investments 0 7,635
Level 1 | Money market funds    
Fair Value, Assets and Liabilities Measured on Recurring and Nonrecurring Basis [Line Items]    
Cost 571,727 556,427
Gross Unrealized Holding Loss 0 0
Gross Unrealized Holding Gain 0 0
Fair Value 571,727 556,427
Cash and Cash Equivalents 495,205 556,427
Short-term Investments 76 0
Long-term Investments 0 0
Funds receivable and seller accounts 76,400  
Level 1 | U.S. Government and agency securities    
Fair Value, Assets and Liabilities Measured on Recurring and Nonrecurring Basis [Line Items]    
Cost 73,702 60,311
Gross Unrealized Holding Loss (576) (55)
Gross Unrealized Holding Gain 2 11
Fair Value 73,128 60,267
Cash and Cash Equivalents 0 0
Short-term Investments 73,128 52,632
Long-term Investments 0 7,635
Level 2    
Fair Value, Assets and Liabilities Measured on Recurring and Nonrecurring Basis [Line Items]    
Cost 217,773 238,671
Gross Unrealized Holding Loss (2,665) (502)
Gross Unrealized Holding Gain 8 12
Fair Value 215,116 238,181
Cash and Cash Equivalents 5,017 8,998
Short-term Investments 177,961 151,784
Long-term Investments 32,138 77,399
Level 2 | Certificate of deposit    
Fair Value, Assets and Liabilities Measured on Recurring and Nonrecurring Basis [Line Items]    
Cost 33,990 20,709
Gross Unrealized Holding Loss (206) (7)
Gross Unrealized Holding Gain 7 1
Fair Value 33,791 20,703
Cash and Cash Equivalents 2,190 0
Short-term Investments 31,601 20,703
Long-term Investments 0 0
Level 2 | Commercial paper    
Fair Value, Assets and Liabilities Measured on Recurring and Nonrecurring Basis [Line Items]    
Cost 44,397 25,235
Gross Unrealized Holding Loss (120) (14)
Gross Unrealized Holding Gain 1 1
Fair Value 44,278 25,222
Cash and Cash Equivalents 1,495 8,998
Short-term Investments 42,783 16,224
Long-term Investments 0 0
Level 2 | Corporate bonds    
Fair Value, Assets and Liabilities Measured on Recurring and Nonrecurring Basis [Line Items]    
Cost 139,386 192,727
Gross Unrealized Holding Loss (2,339) (481)
Gross Unrealized Holding Gain 0 10
Fair Value 137,047 192,256
Cash and Cash Equivalents 1,332 0
Short-term Investments 103,577 114,857
Long-term Investments $ 32,138 $ 77,399