After stumbling upon this CSS query regarding styling selected radio buttons labels from Stack Overflow and also checking out this discussion on UX Exchange, I attempted to apply both techniques but couldn't quite get it right. It seems that a parent selector is missing in this scenario, so I'm seeking some guidance from the experts here.
Below is the specific code snippet I've been working with, although I welcome generic examples as well:
<label for="ship-sfc-CNQM" class="checkboxLabel back">
<div class="shippingcontainer">
<input type="radio" name="shipping" value="sfc_CNQM" checked="checked" id="ship-sfc-CNQM">
<div class="back sfc_logos" id="CNQM" title="China Post"></div><div class="back sfcdaterange"><span class="sfcdateprefixlong">Estimated delivery between </span><span class="sfcdateprefixmed">Est. between </span><span class="sfcday">Wednesday </span><span class="sfclongmonth">November </span><span class="sfcshortmonth">Nov </span><span class="sfcdate">11</span><span class="sfcordinal">th</span><span class="sfclongseparator"> and </span><span class="sfcshortseparator"> - </span><span class="sfcday">Tuesday </span><span class="sfclongmonth">December </span><span class="sfcshortmonth">Dec </span><span class="sfcdate">1</span><span class="sfcordinal">st</span></div>
<div class="important forward">$0.00</div>
</div>
</label>
My main question is: How can I style the .checkboxLabel element when its child radio button is checked?