Hello,
Please add the code in Theme Options > Custom css or in style.css of child theme then clear cache and check if it works.
Regards