> EU should mandate that sellers can pass transaction costs on to consumers
EU actually mandates the opposite. It is illegal to pass the transaction costs to the consumer. The price you see on an item has the be the final price you end up paying.
In many online shops in EU you can see "Administrative fee" if your order is too small for example. So while companies are not allowed to do "Credit card fee" they still do it indirectly in one way or another, those that don't impose extra fee usually have higher delivery fee.
Brazil has a similar rule, but the price you see on an item is the largest one you may end up paying. So, the seller can still reduce it if you choose a cheaper payment means, and many of them do that.
I love them for it. When I don’t live in Europe it’s infuriating to see the price levitate after every checkout step. Thankfully it’s still not as bad as it used to be like 10-15 years ago.