Dynamic Background Color and Checkboxes

Hello,

I’m trying to add a dynamic background color to a custom checkbox when clicked it should display the corresponding color shown on the CMS but for some reason it’s not working.

Here it is when it’s checked…


image
image


Here is my public share link: LINK
(how to access public share link)