According to this [1] (first thing I was able to find, no clue how accurate): Another major cost for McDonald’s is payroll and employee benefits. These account for 36% of its company-operated restaurant expenses.
I don't know in what world a third is "only a small part". The same article mentions According to PayScale, the average worker in the fast-food industry makes $8.50 per hour. Increase that to $44 and you end up with a much more expensive burger.
[1] https://marketrealist.com/2019/11/how-mcdonalds-wages-major-...