Added css-only version using :checked pseudoclass.