My understanding is that Google doesn't want people editing any bit of
the AdSense for Search code. So you are stuck with what they offer in
terms of formatting. See the "Code Modification" section on Google's
Program Policies
https://www.google.com/adsense/policies