Investments |
12 Months Ended | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Dec. 31, 2021 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Investments, Debt and Equity Securities [Abstract] | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Investments | Investments Debt Securities The following tables summarize the amortized cost, gross unrealized gains and losses, and fair value of the Company’s available-for-sale debt securities aggregated by investment category (in thousands):
(1)Includes U.S. government and government agency debt securities (2)Funds receivable and amounts held on behalf of customers
(1)Includes U.S. government and government agency debt securities (2)Funds receivable and amounts held on behalf of customers As of December 31, 2020 and 2021, the Company did not have an allowance for credit losses related to its available-for-sale debt securities. Before reclassifications of gains and losses from accumulated other comprehensive income (loss) on the consolidated balance sheets to other income (expense), net in the consolidated statements of operations, unrealized gains and losses and the associated tax amounts, for the years ended December 31, 2019, 2020, and 2021, were not material. Realized gains and losses reclassified from accumulated other comprehensive income (loss) to other income (expense), net were not material for the years ended December 31, 2019, 2020, and 2021. Debt securities in an unrealized loss position had an estimated fair value of $139.7 million and an immaterial amount of unrealized losses as of December 31, 2019, an estimated fair value of $229.7 million and $1.7 million unrealized losses as of December 31, 2020, and an estimated fair value of $801.5 million and $3.5 million unrealized losses as of December 31, 2021. None of these securities were in a continuous unrealized loss position for more than twelve months as of December 31, 2019 and an immaterial amount of securities were in a continuous loss position for more than twelve months as of December 31, 2020 and 2021. During the years ended December 31, 2019, 2020, and 2021, the Company did not consider any of its marketable debt securities to be other-than-temporarily impaired. During the year ended December 31, 2019, the Company recorded an impairment charge for an available-for-sale non-marketable debt investment totaling $18.0 million. During the years ended December 31, 2020 and 2021, the Company did not record any impairment charges for its available-for-sale non-marketable debt investments. The following table summarizes the contractual maturities of the Company’s available-for-sale debt securities (in thousands):
Equity Investments Equity Investments with Readily Determinable Fair Values As of December 31, 2020 and 2021, the Company had equity investments with readily determinable fair value totaling $155.2 million and zero, respectively, which consisted of mutual funds measured at fair value and classified within marketable securities on the consolidated balance sheet. Equity Investments Without Readily Determinable Fair Values The Company holds investments in privately-held companies in the form of equity securities without readily determinable fair values and in which the Company does not have a controlling interest or significant influence. These investments had net carrying value of $78.1 million and $75.0 million, as of December 31, 2020 and 2021, respectively, and are classified within other assets on the consolidated balance sheets. These investments were initially recorded using the measurement alternative at cost and are subsequently adjusted to fair value for impairments and price changes from observable transactions in the same or similar security from the same issuer. The following table summarizes the total carrying value of equity investments without readily determinable fair values (in thousands):
As of December 31, 2020 and 2021, there were no upward adjustments for price changes to the Company’s equity investments without readily determinable fair values. The Company did not record any realized gains or losses for the Company’s equity investments without readily determinable fair value during the years ended December 31, 2019, 2020, and 2021, respectively. The Company did not record any impairment charges during the year ended December 31, 2019, and recorded impairment charges of $53.1 million and $3.1 million, for the years ended December 31, 2020 and 2021, respectively. The following table summarizes the cumulative impairment charges of equity investments without readily determinable fair values (in thousands):
Gains and Losses on Equity Investments Net unrealized gains (losses) on marketable equity investments totaled $13.2 million and $(21.7) million for the years ended December 31, 2019 and 2020, respectively. During the year ended December 31, 2021, the marketable equity investments were sold, and the Company realized a net loss of $13.4 million. The realized and unrealized gains and losses on marketable equity investments were recorded in other income (expense), net on the consolidated statements of operations.
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||