After you file

I am wondering the same. My federal says $3105 but then my state owed says $332. And on the final ending page, it says “total 2020 tax refund” which is $2773. Now, I did the math and $3105-$332= $2773!!! Please explain to me why the final refund says $2773 because at the end, I only chose $80 fee for the deluxe  edition and I even added my debit card to pay my state $332. I’m just confused because I don’t want to pay state double. And why would it say $2773 total refund if my federal was $3105? I hope this makes sense.