Multiple Buy Buttons on the same html page

I’m trying to embed multiple buy buttons (for collections) into tabs on a website. The first one loads just fine but tab2, 3 and so on will be cutoff towards the top and have zero functionality. I assume it’s due to the scripts being somewhat duplicated when using more than one buy button on the same page. Is there a way around this? I need to separate out the products with collections since I can’t have product filtering on the embed.

Thanks for any help provided!

I somewhat solved my own issue by creating a multi-page site so I could separate the script. I can now just give the client a folder to add to their root.