Cookie Alert not disappearing after clicking accept


We are putting together a cookie alert on our new website designed in Webflow but actually struggling to get to to work. We only need something very basic and found this template:

We have implemented it on our home page but its not working and wondered if someone could help us please?