|6 Months Ended|
Jun. 30, 2021
|Investments Debt And Equity Securities [Abstract]|
4. Available-for-Sale Securities
The following table is a summary of available-for-sale securities recorded in cash and cash equivalents or marketable securities in the Company’s condensed consolidated balance sheets (in thousands):
As of June 30, 2021 and December 31, 2020, the Company has not recognized an allowance for credit losses on any securities in an unrealized loss position.
The following table displays additional information regarding gross unrealized losses and fair value by major security type for available-for-sale securities in an unrealized loss position as of June 30, 2021 and December 31, 2020 (in thousands):
The Company currently does not intend to sell these securities prior to maturity and does not consider these investments to be other-than-temporarily impaired at June 30, 2021. There were no sales of available-for-sale securities in any of the periods presented.
As of June 30, 2021, the amortized cost and estimated fair value of the Company’s available-for-sale securities by contractual maturity are shown below (in thousands):