JSFiddle - React, Tailwind, and code Playground
HTML
<ul class="pewc-checkbox-group-wrapper">
<li>
<input class="pewc-radio-form-field" data-option-cost="0" id="pewc_group_1914_1916_up_to_32_inches" name="pewc_group_1914_1916[]" type="radio" value="Up to 32 inches">
<label for="pewc_group_1914_1916_up_to_32_inches"> Up to 32 inches</label>
</li>
<li>
<input class="pewc-radio-form-field" data-option-cost="30" id="pewc_group_1914_1916_between_33_and_70_inches" name="pewc_group_1914_1916[]" type="radio" value="Between 33 and 70 inches">
<label for="pewc_group_1914_1916_between_33_and_70_inches"> Between 33 and 70 inches - $30</label>
</li>
<li>
<input class="pewc-radio-form-field" data-option-cost="60" id="pewc_group_1914_1916_71_inches_or_larger" name="pewc_group_1914_1916[]" type="radio" value="71 inches or Larger">
<label for="pewc_group_1914_1916_71_inches_or_larger"> 71 inches or Larger - $60</label>
</li>
</ul>
CSS
ul.pewc-checkbox-group-wrapper {
padding-inline-start: 0;
}
.pewc-checkbox-group-wrapper li {
list-style: none;
}
.pewc-checkbox-group-wrapper input[type="radio"] {
display: none;
}
.pewc-checkbox-group-wrapper label {
position: relative;
z-index: 9;
font-weight: 600;
line-height: 30px;
cursor: pointer;
-webkit-box-sizing: border-box;
-moz-box-sizing: border-box;
box-sizing: border-box;
width: 100%;
background-color: white;
margin: 15px 0px 15px 0px;
display: flex;
border: 1px solid #dddddd;
align-items: center;
padding: 10px 15px 10px 15px;
border-radius: 5px;
box-shadow: 0 8px 24px 4px rgba(38, 55, 70, 0.1);
}
.pewc-checkbox-group-wrapper input[type=radio]:checked ~ label {
background-color: #bbb;
}