Hi,
1) The mentioned code you can find in Custom CSS for page area – http://prntscr.com/sp6scz
2) Make sure that you added a Title of the button.
3) Custom CSS area should not contain any script code – http://prntscr.com/sp6u9r
Use the next code to change bg color here http://prntscr.com/sp6vtm
.sticky-message-on .content-page .woocommerce-message{
background-color: #dc2935 !important;
}
Regards