In the code uses CSS relational pseudo-class :has().
Works from browser versions: Chrome browser v.105, Safari 15.6, Safari on iOS 16 and higher.