Hello,
Custom code in your child theme style.css is ok. We suggested to you everything we could to avoid layout shifts. We don’t have more tips.
Regards