Only issue with that is in the US the largest common coin denomination is a quarter, but then again $0.50 would actually be a reasonable price for a surgical mask... Also there's some kind coin shortage plus many just don't carry change.
Otherwise a great idea...