Summary of Significant Accounting Policies | Summary of Significant Accounting Policies Principles of Consolidation The accompanying consolidated financial statements include the accounts of the Company and its wholly-owned subsidiaries. The functional currency of its Israeli subsidiary is the U.S. Dollar, as such, exchange rate fluctuations are recorded as a part of earnings. All intercompany transactions and balances have been eliminated. Use of Estimates The preparation of financial statements in conformity with accounting principles generally accepted in the United States of America requires management to make estimates and assumptions that affect the reported amounts of assets and liabilities and the disclosure of contingent assets and liabilities at the date of the financial statements as well as the reported amounts of revenues and expenses during the reporting period. Items subject to such estimates and assumptions include, among others, intangible assets valuation, useful lives, excess and obsolete inventories, restructuring, legal contingencies, valuation allowances, provision for sales returns, flash deal deferred revenue breakage, stock-based compensation and allowance for doubtful accounts. Actual results could differ from these estimates. Cash and Cash Equivalents The Company considers all highly liquid investments purchased with original maturities of three months or less to be cash equivalents. Management determines the appropriate classification of cash equivalents at the time of purchase and reevaluates such designations at each balance sheet date. Cash equivalents primarily consist of money market funds (primarily invested in U.S. government obligations), commercial paper and corporate debt securities. Fair Value The Company records its financial assets and liabilities at fair value. The accounting standard for fair value provides a framework for measuring fair value, clarifies the definition of fair value, and expands disclosures regarding fair value measurements. Fair value is defined as the price that would be received from selling an asset or paid to transfer a liability (an exit price) in an orderly transaction between market participants at the measurement date. The accounting standard establishes a three-level hierarchy, which prioritizes the inputs used in the valuation methodologies in measuring fair value: Level 1 – Quoted prices in active markets for identical assets or liabilities. Level 2 – Inputs other than Level 1 that are observable, either directly or indirectly, such as quoted prices in active markets for similar assets or liabilities; quoted prices for identical or similar assets or liabilities in markets that are not active; or other inputs that are observable or can be corroborated by observable market data for substantially the full term of the assets or liabilities. Level 3 – Unobservable inputs that are supported by little or no market activity and that are significant to the fair value of the assets or liabilities. Investments Investments, which may include agency bonds, corporate debt securities, commercial paper and U.S. government securities, are classified as available-for-sale and are reported at fair value using the specific identification method. Unrealized gains and losses are excluded from earnings and reported as a component of other comprehensive income (loss), net of related estimated tax provisions or benefits. Investments whose maturity dates are less than twelve months are classified as short-term, and those with maturity dates greater than twelve months are classified as long-term. The Company assesses whether an other-than-temporary impairment loss on its investments has occurred due to declines in fair value or other market conditions. With respect to the Company's debt securities, this assessment takes into account the severity and duration of the decline in value, its intent to sell the security, whether it is more likely than not that it will be required to sell the security before recovery of its amortized cost basis, and whether it expects to recover the entire amortized cost basis of the security (that is, whether a credit loss exists). The Company did not recognize any other-than-temporary impairment losses on its investments in the years ended December 31, 2017 , 2016 or 2015. Derivative Financial Instruments The Company uses derivative financial instruments to manage interest-rate risk. The Company accounts for these instruments in accordance with Accounting Standards Codification ("ASC") 815, Derivatives and Hedging ("ASC 815") , which requires that every derivative instrument be recorded on the balance sheet as either an asset or a liability measured at its fair value as of the reporting date. ASC 815 also requires that changes in the derivatives' fair values be recognized in earnings, unless specific hedge accounting documentation criteria is met. Based on the intended use of the derivative instruments and hedge accounting documentation criteria, the Company has designated the aforementioned derivative instruments as qualifying hedging instruments and is accounting for them as cash flow hedges pursuant to ASC 815. The Company uses the hypothetical method to assess the effectiveness of the derivatives. The fair value of the derivatives is recognized gross as other assets or other liabilities and the corresponding changes in the fair values are recorded in accumulated other comprehensive income (loss) in the consolidated balance sheet. Since the hedged item is interest expense, amounts recorded in other comprehensive income (loss) are reclassified to interest expense when the hedged interest payment is accrued. The periodic interest settlements for the derivative instruments are recorded as interest expense and are included as part of the cash flows from operating activities. Concentration of Credit Risk Financial instruments that potentially subject the Company to credit risk consist principally of cash, cash equivalents, investments, derivatives instruments and accounts receivable. As of December 31, 2017 , the Company's cash and cash equivalents were maintained by financial institutions in the United States and its deposits may be in excess of insured limits. The Company believes that the financial institutions that hold its investments are financially sound and, accordingly, minimal credit risk exists with respect to these investments. Similarly, the Company's derivative contracts are transacted with various financial institutions with high credit standings, and accordingly, minimum credit risk exists with respect to these derivative contracts. The Company’s accounts receivable are derived primarily from sales to customers located in the United States who make payments through credit cards, sales of the Company's products in sales of SBS services and revenue generated from online advertisements posted on the Company's websites. Credit card receivables settle relatively quickly and the Company's historical experience of credit card losses have not been material and have been within management’s expectations. Excluding amounts due from credit cards of customers, as of December 31, 2017 , two SBS customers accounted for 55% and 35% of the Company’s net accounts receivable. No other customers accounted for more than 10% of net accounts receivable as of December 31, 2017 . As of December 31, 2016 , excluding amounts due from credit cards of customers, one SBS customers accounted for 33% of the Company’s net accounts receivable. No other customers accounted for more than 10% of net accounts receivable as of December 31, 2016 . No customers accounted for more than 10% of net revenues in the years ended December 31, 2017 , 2016 , and 2015. Valuation of Inventories Inventories are stated at the lower of cost or net realizable value. Cost is computed using standard cost, which approximates actual cost, on a first-in, first-out basis. The value of inventories is reduced by estimates for excess and obsolete inventories. The estimate for excess and obsolete inventories is based upon management’s review of utilization of inventories in light of projected sales, current industry conditions and industry trends. Inventories are primarily raw materials and consist principally of paper, photo book covers, packaging supplies and raw materials for gifts. Deferred Costs Deferred costs are the incremental costs directly associated with flash deal promotions through group buying websites. These costs are paid and deferred at the time of the flash deal, and recognized when the redeemed products are shipped or flash deal deferred revenue breakage has been recognized. Amortization of deferred costs is included in sales and marketing expense in the accompanying consolidated statements of operations. Property and Equipment Property and equipment are stated at historical cost, less accumulated depreciation and amortization. Depreciation and amortization are computed using the straight-line method over the estimated lives of the assets, generally three to seven years, and are allocated between cost of net revenues and operating expenses. Rental assets are depreciated over their estimated useful lives, generally five to six years as component of cost of net revenues, to an estimated net realizable value. Leasehold improvements are amortized over their estimated useful lives, or the lease term if shorter, generally three to ten years. Upon retirement or sale, the cost and related accumulated depreciation are removed from the balance sheet and the resulting gain or loss is reflected in operating expenses, except for rental assets, which are recognized in cost of net revenues. Major additions and improvements are capitalized, while replacements, maintenance and repairs that do not extend the life of the asset are charged to expense as incurred. Software and Website Development Costs The Company capitalizes eligible costs associated with website development and software developed or obtained for internal use . Accordingly, the Company expenses all costs that relate to the planning and post implementation phases. Payroll and payroll related costs and stock-based compensation incurred in the development phase are capitalized and amortized over the product’s estimated useful life, generally three years. Costs associated with minor enhancements and maintenance for the Company’s websites are expensed as incurred. Long-Lived Assets The Company reviews long-lived assets for impairment whenever events or changes in circumstances indicate that the carrying amount of an asset may not be recoverable. Recoverability is measured by comparison of the carrying amount to the future net cash flows which the assets are expected to generate. If such assets are considered to be impaired, the impairment to be recognized is measured by the amount by which the carrying amount of the assets exceeds the projected discounted future cash flows arising from the asset using a discount rate determined by management to be commensurate with the risk inherent to the Company’s current business model. Goodwill and Intangible Assets Goodwill represents the excess of the purchase price over the fair value of the net tangible and identifiable intangible assets acquired in a business combination. Intangible assets resulting from the acquisition of entities accounted for using the purchase method of accounting are estimated by management based on the fair value of assets received. Intangible assets are amortized on a straight-line basis over the estimated useful lives which range from one to sixteen years, and the amortization is allocated between cost of net revenues and operating expenses. Goodwill and intangible assets with indefinite lives are not subject to amortization, but are tested for impairment on an annual basis during the fourth quarter or whenever events or changes in circumstances indicate the carrying amount of these assets may not be recoverable. For the Company’s annual goodwill impairment analysis, the Company operates under two reporting units. As part of the annual goodwill impairment test, the Company first performs a qualitative assessment to determine whether further impairment testing is necessary. If, as a result of its qualitative assessment, it is more-likely-than-not (i.e. greater than 50% chance) that the fair value of the Company's reporting units is less than its carrying amounts, the quantitative impairment test will be required. Otherwise, no further testing will be required. If it is determined, as a result of the qualitative assessment, that it is more-likely-than not that the fair value of the Company's reporting unit is less than its carrying amount, the provisions of authoritative guidance require that the Company perform a two-step impairment test on goodwill. The Company tests goodwill for impairment by first comparing the book value of net assets to the fair value of the reporting units. If the fair value is determined to be less than the book value, a second step is performed to compute the amount of impairment as the difference between the estimated fair value of goodwill and the carrying value. The Company estimates the fair value of the reporting units using a combination of the income approach (using discounted cash flows) and the market approach. Forecasts of future cash flows are based on the Company's best estimate of future net revenues and operating expenses, based primarily on expected reporting unit expansion, pricing, market segment share, and general economic conditions. Intellectual Property Prepaid Royalties The Company has patent license agreements with various third parties. The Company has accounted for these agreements as prepaid royalties that are amortized over the remaining life of the patents. Amortization expense is recorded on a straight-line basis as a component of cost of revenue. The current portion of the prepaid royalty is recorded as a component of prepaid expenses and the long-term portion is recorded in other assets. Lease Obligations The Company categorizes leases at their inception as either operating or capital leases. On certain of the Company's lease agreements, the Company may receive rent holidays and other lease incentives. The Company recognizes lease costs on a straight-line basis without regard to deferred payment terms, such as rent holidays that defer the commencement date of required payments. Additionally, lease incentives received for leases categorized as operating leases are treated as a reduction of the Company's costs over the term of the agreement. With regards to lease incentives received for leases categorized as capital leases, the capital lease asset and related capital lease liability recorded at the beginning of the lease term is reduced by the lease incentive. The Company establishes assets and liabilities for the estimated construction costs incurred under build-to-suit lease arrangements to the extent the Company is involved in the construction of structural improvements or takes construction risk prior to commencement of a lease. Upon occupancy of facilities under build-to-suit leases, the Company assesses whether these arrangements qualify for sales recognition under the sale-leaseback accounting guidance. If the Company continues to be the deemed owner, the facilities are accounted for as financing leases. Revenue Recognition The Company recognizes revenue from Consumer and SBS product sales, net of applicable sales tax, upon shipment of fulfilled orders, when persuasive evidence of an arrangement exists, the selling price is fixed or determinable and collection of resulting receivables is reasonably assured. Customers place Consumer product orders through the Company's websites or mobile apps and pay primarily using credit cards. SBS customers are invoiced upon fulfillment. Shipping charged to customers is recognized as revenue at the time of shipment and the related shipping costs are recognized as cost of net revenues. For gift card sales and flash deal promotions through group-buying websites, the Company recognizes revenue on a gross basis, as it is the primary obligor, when redeemed items are shipped. Revenues from sales of prepaid orders on its websites are deferred until shipment of fulfilled orders or until unredeemed prepaid orders are recognized as breakage revenue. Unredeemed prepaid orders are recognized as breakage revenue based on historical redemption patterns and represent orders for which the Company believes customer redemption is remote and it is not probable that the Company has an obligation to escheat the value of the prepaid order under unclaimed property laws. In the second quarter of 2015, the Company changed its accounting estimate related to flash deal deferred revenue. Beginning in 2010, the Company began to market product offers on flash deal websites such as Groupon and LivingSocial. With limited history as to customer redemption patterns, the Company had been deferring all amounts to a flash deal deferred revenue liability until customer redemption. The Company now has sufficient relevant historical flash deal redemption data to support a change in estimate of the flash deal deferred revenue based on historical customer redemption patterns. Flash deal breakage revenue is recognized based upon its historical redemption patterns and represents the unredeemed flash deal offers for which the Company believes customer redemption is remote and it is not probable that the Company has an obligation to escheat the value of the flash deal revenue under unclaimed property laws. During the years ended December 31, 2017 , 2016 and 2015, the Company recognized flash deal breakage revenue of $1.4 million , $5.3 million and $10.0 million , respectively. The Company provides its customers with a return policy whereby products can be returned during a reasonable period of time for a reprint or refund. The Company maintains an allowance for estimated future returns based on historical data. The provision for estimated returns is included in accrued expenses. The Company periodically provides incentive offers to its customers in exchange for setting up an account and to encourage purchases. Such offers include free products and percentage discounts on current purchases. Discounts, when accepted by customers, are treated as a reduction to the purchase price of the related transaction and are presented in net revenues. Production costs related to free products are included in cost of revenues upon redemption. The Company’s advertising revenues are derived from the sale of online advertisements on its websites. Advertising revenues are recognized as “impressions” (i.e., the number of times that an advertisement appears in pages viewed by users of the Company's websites) are delivered; as “clicks” (which are generated each time users of the Company's websites click through the advertisements to an advertiser’s designated website) are provided to advertisers; or ratably over the term of the agreement with the expectation that the advertisement will be delivered ratably over the contract period. Certain SBS revenue arrangements with multiple deliverables, including products and services, are divided into separate units and revenue is allocated using estimated selling prices if the Company does not have vendor-specific objective evidence or third-party evidence of the selling prices of the deliverables. The Company allocated the arrangement price to each of the elements based on the relative selling prices of each element. Estimated selling prices are management’s best estimates of the prices that the Company would charge its customers if the Company were to sell the standalone elements separately and include considerations of customer demand, prices charged by the Company and others for similar deliverables, and the price if largely based on the cost of producing the product or service. For up-front fees the Company received in exchange for products delivered or services performed, it is deferred and recognized over periods that the fees are earned. In cases in which an up-front fee is not related to specific products or services, the fee is excluded from the consideration that is allocated to the deliverables, and is recognized over the longer of the initial contractual term of the arrangement or the estimated period the customer is expected to benefit from the payment of the up-front fee. For camera, lenses, and video equipment rentals from the BorrowLenses brand, the Company recognizes rental revenue and the related shipping revenue, ratably over the rental period. Revenue from the sale of rental equipment is recognized upon shipment of the equipment. Restructuring Costs The Company records restructuring costs when expenses are incurred. The Company accrues for lease termination on the cease-use date (when the Company has completely vacates the space and the space is commercially available so that it can be subleased if and when a tenant becomes available). The Company accrues for severance once the total severance pool has been calculated, approved and communicated, and recognizes the expense ratably over the required service period, from the communication date to the exit date. The Company also accelerates depreciation and amortization using a revised economic life of property and equipment. Restructuring costs also include inventory markdowns, stock-based compensation and other costs incurred as part of restructuring. Advertising Costs Advertising costs are expensed as incurred, except for direct mail advertising which is expensed when the advertising first takes place. The Company did not have any capitalized direct mail costs at December 31, 2017 and 2016 . Total advertising costs are a component of sales and marketing expenses and include print advertising, Internet advertising, such as display ads and keyword search terms and TV and radio advertising. These amounts totaled approximately $95.6 million , $122.1 million and $117.1 million during the years ended December 31, 2017 , 2016 and 2015 , respectively. Stock-Based Compensation The Company measures stock based awards at fair value and recognizes compensation expense for all share-based payment awards made to its employees and directors, including employee stock options and restricted stock awards ("RSUs"). The Company estimates the fair value of stock options granted using the Black-Scholes valuation model. This model requires the Company to make estimates and assumptions including, among other things, estimates regarding the length of time an employee will retain vested stock options before exercising them, the estimated volatility of the Company's common stock price and the number of options that will be forfeited prior to vesting. The fair value is then amortized on a straight-line basis over the requisite service periods of the awards, which is generally the vesting period. Changes in these estimates and assumptions can materially affect the determination of the fair value of stock-based compensation and consequently, the related amount recognized in the Company's consolidated statements of operations. The cost of RSUs and performance based restricted stock awards ("PBRSUs") is determined using the fair value of the Company’s common stock on the date of grant. Compensation expense is recognized for RSUs on a straight-line basis over the vesting period. Compensation expense associated with PBRSUs is recognized on an accelerated attribution model. As of December 31, 2017, the PBRSUs are only subject to service vesting conditions as the performance criteria has been met. Employee stock-based compensation expense is calculated based on awards ultimately expected to vest and has been reduced for estimated forfeitures. Forfeitures are estimated at the time of grant and revised, if necessary, in subsequent periods if actual forfeitures differ from those estimates. Income Taxes The Company uses the liability method of accounting for income taxes. Under this method, deferred tax assets and liabilities are recognized by applying the statutory tax rates in effect in the years in which the differences between the financial reporting and tax filing bases of existing assets and liabilities are expected to reverse. Valuation allowances are established when necessary to reduce deferred tax assets to the amounts expected to be realized. The Company reports a liability for unrecognized tax benefits resulting from uncertain tax positions taken or expected to be taken in a tax return. The application of income tax law is inherently complex. Laws and regulations in this area are voluminous and are often ambiguous. The Company is required to make subjective assumptions and judgments regarding its income tax exposures. Interpretations and guidance surrounding income tax laws and regulations change over time. As such, changes in the Company’s subjective assumptions and judgments can materially affect amounts recognized in the consolidated balance sheets and statements of operations. The Company’s policy is to recognize interest and /or penalties related to all tax positions in income tax expense. To the extent that accrued interest and penalties do not ultimately become payable, amounts accrued will be reduced and reflected as a reduction of the overall income tax provision in the period that such determination is made. The Company is subject to taxation in the United States and Israel. On December 22, 2017, H.R.1 “An Act to Provide for Reconciliation Pursuant to Titles II and V of the Concurrent Resolution on the Budget for Fiscal year 2018” commonly referred to as the Tax Cuts and Jobs Act (the “Act” or “Tax Reform”) was signed by the President of the United States and became enacted law. The Tax Reform is complex and includes various changes which will impact the Company. The Company performed a preliminary assessment of the Tax Reform impacts and recorded an $8.9 million non-cash benefit due to the revaluation of our federal deferred tax liabilities in the fourth quarter of 2017, as a result of the reduction in the U.S. federal statutory tax rate from 35% to 21% . Net Income (Loss) Per Share Basic net income (loss) per share attributed to common shares is computed by dividing the net income (loss) attributable to common shares for the period by the weighted average number of common shares outstanding during the period. Diluted net income (loss) per share attributed to common shares is computed by dividing the net income attributable to common shares for the period by the weighted average number of common and potential common shares outstanding during the period, if the effect of each class of potential common shares is dilutive. Potential common shares include RSUs and incremental shares of common stock issuable upon the exercise of stock options, conversion of warrants, and the impact of convertible senior notes. Year ended December 31, 2017 2016 2015 Net income (loss) per share: (in thousands, except per share amounts) Numerator Net income (loss) $ 30,085 $ 15,906 $ (843 ) Denominator Denominator for basic net income (loss) per share Weighted-average common shares outstanding 33,113 34,097 36,761 Dilutive effect of stock options and restricted awards 993 1,093 — Denominator for diluted net income per share 34,106 35,190 36,761 Net income (loss) per share Basic $ 0.91 $ 0.47 $ (0.02 ) Diluted $ 0.88 $ 0.45 $ (0.02 ) The following weighted-average outstanding stock options and restricted stock units were excluded from the computation of diluted net income (loss) per common share for the periods presented because including them would have had an anti-dilutive effect (in thousands): Year ended December 31, 2017 2016 2015 Stock options and restricted stock units 1,363 549 4,185 Comprehensive Income Comprehensive income is defined as the change in equity of a business enterprise during a period from transactions and other events and circumstances from non-owner sources. Comprehensive income is composed of net income (loss) and other comprehensive income (loss). The Company's other comprehensive income (loss) consists of unrealized gains and losses on marketable securities classified as available-for-sale and unrealized gains and losses on cash flow hedges. Segment Reporting The Company reports as two operating segments with the Chief Executive Officer acting as the Company’s chief operating decision maker. The Company defined two reportable segments based on factors such as how management manages the operations and how its chief operating decision maker views results. The Company has the following reportable segments: Consumer - Includes sales from the Company's brands and are derived from the sale of a variety of products, such as cards and stationery, professionally-bound photo books, home décor, personalized gifts, high quality prints, and other photo-based merchandise, and the related shipping revenues as well as rental revenue from its BorrowLenses brand. Revenue from advertising displayed on the Company's websites is also included in Consumer revenues. SBS - Includes revenues from personalized direct marketing and other end-consumer communications as well as just-in-time, inventory-free printing for the Company's business customers. In addition to the above reportable segments, the Company has a corporate category that includes activities that are not directly attributable or allocable to a specific segment. This category consists of stock-based compensation and amortization of intangible assets. Recent Accounting Pronouncements In August 2017, the Financial Accounting Standards Board ("FASB") issued Accounting Standards Update ("ASU") 2017-12, Derivatives and Hedging (Topic 815): Targeted Improvements to Accounting for Hedging Activities ("ASU 2017-12") . The Company early adopted ASU 2017-12 during the third quarter of fiscal 2017 with no impact to the financial statements as the Company did not have existing hedging relationships or other derivative instruments in place within the scope of ASC 815 prior to the third quarter of fiscal 2017. In March 2016, the FASB issued ASU 2016-09, Compensation - Stock Compensation (Topic 718): Improvements to Employee Share-Based Payment Accounting ("ASU 2016-09") . The updated guidance changes how companies account for certain aspects of share-based payment awards to employees, including the accounting for income taxes, forfeitures, and statutory tax withholding requirements, as well as classification in the statement of cash flows. The Company adopted ASU 2016-09 beginning January 1, 2017 and the impact of adoption resulted in the following: • The Company recorded approximately $23.2 million of additional deferred tax assets with the corresponding decrease to accumulated deficit related to the prior years' unrecognized excess tax benefits (adoption method was modified retrospective). • The Company recorded a tax benefit of $1.1 million as a discrete item within income tax benefit for the year ended December 31, 2017 related to the excess tax benefit on stock options, restricted stock and performance share units. Prior to adoption this amount would have been recorded as a reduction of additional paid-in capital. This change could create volatility in the Company’s future effective tax rate. • The Company elected not to change its policy on accounting for forfeitures and will continue to estimate the total number of awards for which the requisite service period will not be rendered. • The Company no longer reclassifies the excess tax benefit from operating activities to financing activities in the statement of cash flows. The Company elected to apply this change in presentation prospectively and therefore, prior periods have not been adjusted. • The remaining provisions of ASU 2016-09 did not have a material impact on the accompanying consolidated financial statements. In 2014, the FASB issued new accounting guidance related to revenue recognition. This new standard replaces all current GAAP guidance on this topic and eliminates all industry-specific guidance. The new revenue recognition guidance provides a unified model to determine when and how revenue is recognized. The core principle is that a company should recognize revenue to depict the transfer of promised goods or services to customers in an amount that reflects the consideration for which the entity expects to be entitled in exchange for those goods or services. In 2016, the FASB issued several amendments to the standard, including principal versus agent considerations when another party is involved in providing goods or services to a customer, the application of identifying performance obligations, and the recog |