Annual report pursuant to Section 13 and 15(d)

Debt - Additional Information (Details)

v3.22.0.1
Debt - Additional Information (Details)
$ in Thousands, ₪ in Millions
12 Months Ended
Jun. 24, 2021
USD ($)
Sites
Dec. 31, 2021
USD ($)
Dec. 31, 2021
ILS (₪)
Dec. 31, 2020
USD ($)
Dec. 31, 2019
USD ($)
Oct. 21, 2021
USD ($)
Dec. 21, 2016
USD ($)
Debt Instrument [Line Items]              
Amortization Of Financing Costs And Discounts   $ 9,304   $ 2,236 $ 522    
Financing Costs [Member]              
Debt Instrument [Line Items]              
Payments of Debt Issuance Costs   8,300   11,900      
Debt Issuance Costs, Gross   14,600   14,100      
Accumulated Amortization, Debt Issuance Costs   3,300   1,700      
Deferred Finance Costs Recorded as Asset   200   500      
Amortization Of Financing Costs And Discounts   $ 9,300   $ 2,200 $ 500    
Senior Notes [Member]              
Debt Instrument [Line Items]              
Debt instrument, interest rate, stated percentage   5.125%       5.125%  
Aggregate principal amount of debt issued   $ 450,000          
Purchase Agreement Description   On October 21, 2021, the Company completed a private offering of $450 million aggregate principal amount of 5.125% Senior Notes due 2029 (the “Senior Notes”), pursuant to a note purchase agreement dated October 14, 2021, by and among the Company, certain of the Company’s wholly owned domestic subsidiaries (the “Guarantors”), and BofA Securities, Inc., as representative of the several initial purchasers named therein. The Senior Notes are guaranteed, on an unsecured senior basis, by all of the Guarantors. On October 21, 2021, the Company completed a private offering of $450 million aggregate principal amount of 5.125% Senior Notes due 2029 (the “Senior Notes”), pursuant to a note purchase agreement dated October 14, 2021, by and among the Company, certain of the Company’s wholly owned domestic subsidiaries (the “Guarantors”), and BofA Securities, Inc., as representative of the several initial purchasers named therein. The Senior Notes are guaranteed, on an unsecured senior basis, by all of the Guarantors.        
Senior Notes, Noncurrent           $ 450,000  
Revolving Credit Facility [Member] | GPM [Member]              
Debt Instrument [Line Items]              
Line of Credit Facility, Current Borrowing Capacity   $ 500,000          
Line of Credit Facility, Maximum Borrowing Capacity   700,000          
Capital One Credit Facility [Member]              
Debt Instrument [Line Items]              
Line of Credit Facility, Annual Principal Payment   200,000          
Bonds (Series C) [Member]              
Debt Instrument [Line Items]              
Debt Instrument Redemption Amount Paid   $ 79,000 ₪ 264        
Ares Credit Agreement [Member]              
Debt Instrument [Line Items]              
Credit agreement amendment description   In February 2020, GPM entered into an agreement with Ares Capital Corporation and certain funds managed or controlled by Ares Capital Management (collectively, “Ares”) to provide financing (as amended, the “Ares Credit Agreement”), which amounted to a total of $225 million and was secured by a pledge on substantially all of the assets of GPM and certain of its wholly owned subsidiaries (the “Ares Term Loan”). The principal of the loan was repaid in four equal quarterly installments in a total amount of 1% per annum with the remaining balance due on the maturity date of February 28, 2027. The Ares Term Loan bore interest at ABR plus 3.75% (which was reduced to 3.50% in March 2021) or LIBOR (not less than 1.5% and not less than 1.0% as amended in March 2021) plus 4.75% (which was reduced to 4.50% in March 2021). In February 2020, GPM entered into an agreement with Ares Capital Corporation and certain funds managed or controlled by Ares Capital Management (collectively, “Ares”) to provide financing (as amended, the “Ares Credit Agreement”), which amounted to a total of $225 million and was secured by a pledge on substantially all of the assets of GPM and certain of its wholly owned subsidiaries (the “Ares Term Loan”). The principal of the loan was repaid in four equal quarterly installments in a total amount of 1% per annum with the remaining balance due on the maturity date of February 28, 2027. The Ares Term Loan bore interest at ABR plus 3.75% (which was reduced to 3.50% in March 2021) or LIBOR (not less than 1.5% and not less than 1.0% as amended in March 2021) plus 4.75% (which was reduced to 4.50% in March 2021).        
Proceeds from (Repayments of) Debt   $ 223,000          
PNC Credit Line Agreement [Member]              
Debt Instrument [Line Items]              
Credit agreement amendment description   On October 14, 2021, GPM entered into a fifth amendment to the PNC Credit Agreement, which became effective from the closing of the Senior Notes offering. On October 14, 2021, GPM entered into a fifth amendment to the PNC Credit Agreement, which became effective from the closing of the Senior Notes offering.        
PNC Credit Line Agreement [Member] | Minimum [Member]              
Debt Instrument [Line Items]              
Covenant threshold   10.00% 10.00%        
GPM PNC Term Loan [Member]              
Debt Instrument [Line Items]              
Debt instrument, interest rate, stated percentage   0.50%          
Outstanding term loans   $ 98          
Aggregate principal amount of debt issued   $ 32,400          
Agreement with M T Bank [Member]              
Debt Instrument [Line Items]              
Credit agreement amendment description   On June 24, 2021 (the “M&T Closing Date”), GPM entered into (i) a Second Amended, Restated and Consolidated Credit Agreement, by and among GPM, certain of its subsidiaries as co-borrowers and M&T Bank (the “A&R M&T Credit Agreement”) and (ii) a Second Amended and Restated Master Covenant Agreement, by and between GPM and M&T Bank (the “A&R M&T Master Covenant Agreement”). On June 24, 2021 (the “M&T Closing Date”), GPM entered into (i) a Second Amended, Restated and Consolidated Credit Agreement, by and among GPM, certain of its subsidiaries as co-borrowers and M&T Bank (the “A&R M&T Credit Agreement”) and (ii) a Second Amended and Restated Master Covenant Agreement, by and between GPM and M&T Bank (the “A&R M&T Master Covenant Agreement”).        
Number of real estate | Sites 40            
Agreement with M T Bank [Member] | GPM [Member]              
Debt Instrument [Line Items]              
Line of Credit Facility, Capacity Available for Trade Purchases             $ 20,000
Agreement with M T Bank [Member] | GPM [Member] | Real Estate Loan [Member]              
Debt Instrument [Line Items]              
Aggregate principal amount of debt issued             $ 35,000
Aggregate principal amount of debt outstanding $ 23,200            
Refinancement of loan $ 23,200            
Line of credit facility maturity date Dec. 31, 2021            
Proceeds from term loan $ 10,700            
Line of Credit Facility, Current Borrowing Capacity 20,000            
Agreement with M T Bank [Member] | GPM [Member] | Equipment Loan [Member]              
Debt Instrument [Line Items]              
Line of credit facility remaining borrowing capacity 17,500 $ 12,300          
Line of Credit Facility, Current Borrowing Capacity 20,000            
Loans Converted to Line of Credit $ 2,500