What is the difficulty with that?
Electricity from unclear source?
Human ingenuity is infinite. It is not enough to enact simple rules, people will just produce electricity with hydrogen and claim it green if it will make them profit. If it will help them evade carbon tax. Nevermind that hydrogen came from some extremely polluting process involving damaging our planet atmosphere and everyone's health.
A better question would be for imported items and services. How do you prevent tax shifting from carbon emission havens, which is no different from financial tax havens now. You tax them at entry using the most beautiful word, "tariffs". If an importing country doesn't tax carbon or carbon tariff their imports then you tariff them. Interestingly, it would then be a higher tariff for air transport than shipping. Where it actually get complicated is services, which people really don't like taxing. But if I run a LLM datacenter on coal in china or make bitcoin burning middle east oil, or consult on green projects on Indonesian gas those should be tariffed as well, and that's more difficult.
The proverbial blue collar truck owner is already screwed. Random surburban dude should be paying through the nose for his F-250. Create demand for fuel efficiency, and you’ll have cars like my dad’s 1993 Escort Wagon, that got 45mpg.
PS, regressive use taxes are 100% moral, fine, upstanding, and ethical.