/* De gedeelde PMS-vinkvakjes. De invoer blijft een echt formulierbesturingselement. */
:is(input[type="checkbox"],input[type="radio"].pms-check-box) {
 -webkit-appearance:none;
 appearance:none;
 display:inline-block;
 box-sizing:border-box;
 width:16px;
 min-width:16px;
 max-width:16px;
 height:16px;
 min-height:16px;
 max-height:16px;
 margin:0;
 padding:0;
 flex:none;
 vertical-align:middle;
 border:1px solid #767676;
 border-radius:5px;
 background:white no-repeat center / 12px 12px;
 cursor:pointer;
}

:is(input[type="checkbox"],input[type="radio"].pms-check-box):checked:not(:indeterminate) {
 border-color:#477f7a;
 background-color:#477f7a;
 background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='m2 6 2.5 2.5L10 3' fill='none' stroke='white' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.8'/%3E%3C/svg%3E");
}

input[type="checkbox"]:indeterminate {
 border-color:#477f7a;
 background-color:#477f7a;
 background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2.5 6h7' stroke='white' stroke-linecap='round' stroke-width='1.8'/%3E%3C/svg%3E");
}

:is(input[type="checkbox"],input[type="radio"].pms-check-box):focus-visible {
 outline:2px solid #477f7a;
 outline-offset:2px;
}

:is(input[type="checkbox"],input[type="radio"].pms-check-box):disabled {
 opacity:.55;
 cursor:not-allowed;
}

@media(forced-colors:active) {
 :is(input[type="checkbox"],input[type="radio"].pms-check-box) {
  -webkit-appearance:auto;
  appearance:auto;
  accent-color:auto;
 }
 :is(input[type="checkbox"],input[type="radio"].pms-check-box):checked:not(:indeterminate),
 input[type="checkbox"]:indeterminate {
  background-image:none;
 }
}
