XML 60 R47.htm IDEA: XBRL DOCUMENT v3.22.0.1
SUMMARY OF SIGNIFICANT ACCOUNTING POLICIES (Details)
$ in Thousands
12 Months Ended
Dec. 31, 2021
USD ($)
revenueCategory
Oct. 01, 2021
USD ($)
Jan. 01, 2021
USD ($)
Dec. 31, 2020
USD ($)
Dec. 31, 2019
USD ($)
Dec. 31, 2018
USD ($)
New Accounting Pronouncements or Change in Accounting Principle [Line Items]            
Stockholders' equity $ 210,296     $ 107,674 $ 395,046 $ 382,611
Convertible senior notes, net $ 223,403     229,490    
Number of revenue category | revenueCategory 3          
Internally-developed software            
New Accounting Pronouncements or Change in Accounting Principle [Line Items]            
Intangible assets, useful life 2 years          
Minimum            
New Accounting Pronouncements or Change in Accounting Principle [Line Items]            
Intangible assets, useful life 1 year          
Contract with third party merchants, term 12 months          
Minimum | Computer hardware and purchased software            
New Accounting Pronouncements or Change in Accounting Principle [Line Items]            
Useful life of property and equipment 3 years          
Minimum | Office Equipment            
New Accounting Pronouncements or Change in Accounting Principle [Line Items]            
Useful life of property and equipment 3 years          
Minimum | Furniture and fixtures and other            
New Accounting Pronouncements or Change in Accounting Principle [Line Items]            
Useful life of property and equipment 3 years          
Maximum            
New Accounting Pronouncements or Change in Accounting Principle [Line Items]            
Intangible assets, useful life 10 years          
Contract with third party merchants, term 18 months          
Maximum | Computer hardware and purchased software            
New Accounting Pronouncements or Change in Accounting Principle [Line Items]            
Useful life of property and equipment 5 years          
Maximum | Office Equipment            
New Accounting Pronouncements or Change in Accounting Principle [Line Items]            
Useful life of property and equipment 5 years          
Maximum | Furniture and fixtures and other            
New Accounting Pronouncements or Change in Accounting Principle [Line Items]            
Useful life of property and equipment 5 years          
Additional Paid-in Capital            
New Accounting Pronouncements or Change in Accounting Principle [Line Items]            
Stockholders' equity $ 2,294,215     2,348,114 2,310,393 2,234,632
Accumulated Deficit            
New Accounting Pronouncements or Change in Accounting Principle [Line Items]            
Stockholders' equity $ (1,156,868)     (1,320,886) (1,032,876) $ (1,010,499)
Cumulative Effect, Period of Adoption, Adjustment            
New Accounting Pronouncements or Change in Accounting Principle [Line Items]            
Stockholders' equity       (18,969) (79)  
Cumulative Effect, Period of Adoption, Adjustment | Additional Paid-in Capital            
New Accounting Pronouncements or Change in Accounting Principle [Line Items]            
Stockholders' equity       (64,319)    
Cumulative Effect, Period of Adoption, Adjustment | Accumulated Deficit            
New Accounting Pronouncements or Change in Accounting Principle [Line Items]            
Stockholders' equity       $ 45,350 $ (79)  
Cumulative Effect, Period of Adoption, Adjustment | Accounting Standards Update 2020-06            
New Accounting Pronouncements or Change in Accounting Principle [Line Items]            
Convertible senior notes, net     $ (19,000)      
Cumulative Effect, Period of Adoption, Adjustment | Accounting Standards Update 2020-06 | Additional Paid-in Capital            
New Accounting Pronouncements or Change in Accounting Principle [Line Items]            
Stockholders' equity   $ 2,700        
Cumulative Effect, Period of Adoption, Adjustment | Accounting Standards Update 2020-06 | Accumulated Deficit            
New Accounting Pronouncements or Change in Accounting Principle [Line Items]            
Stockholders' equity   $ (2,700) $ 48,000      
3.25% Convertible Senior Notes due 2022 | Senior Notes            
New Accounting Pronouncements or Change in Accounting Principle [Line Items]            
Debt effective interest rate 3.76%   3.76% 9.75%