Stop in for a cup of coffee

What's a workaround substitute for the foam firewall gaskets?

Thinking of going to find some craft foam... but don't want that if the stuff like I have from DMT is somehow moisture resistant?
The styrafoam ones? I've used - wait for it - thin styrafoam sheets from packing.