Hi Halil,
It doesn’t work that way, GB won’t generate CSS for those HTML.
You can try using a block element instead:
1. Select thebuttons block
in the page, click on the 3 dots of the tool bar, click copy:
https://www.screencast.com/t/QfojOxwxnUi
2. Go to appearance > elements, create a new block element, paste it to the content filed.
3. SetEntire site
as location, select hook
as element type, choose after_header_content
as hook name:
https://www.screencast.com/t/ycBw7euLTqs
Then it should keep the same style as the page.
Let me know if this helps 🙂