Similar post. Just add a wrapper around your code with unique class/ID
<style>
/* instead of current */
.foo {...}
/* add wrapper */
.unique-wrapper-name .foo {...}
</style>
<div class="unique-wrapper-name">
<div class="foo">your actual code here</div>
</div>