/* Chemical-Mandi R481: universal native checkbox presentation only.
   No JS state changes and no changes to radio buttons / switch widgets. */
html body input[type="checkbox"]:not([role="switch"]):not(.cm-checkbox-optout){
  appearance:none!important;-webkit-appearance:none!important;
  width:27px!important;height:27px!important;min-width:27px!important;
  display:inline-grid!important;place-items:center!important;
  border:2px solid #c49e87!important;border-radius:8px!important;
  background:#fff!important;box-shadow:none!important;
  vertical-align:middle!important;cursor:pointer!important;
  flex-shrink:0!important;transition:background-color .15s,border-color .15s!important;
}
html body input[type="checkbox"]:not([role="switch"]):not(.cm-checkbox-optout)::before{content:none!important;}
html body input[type="checkbox"]:not([role="switch"]):not(.cm-checkbox-optout)::after{
  content:none!important;display:block!important;transform:none!important;
}
html body input[type="checkbox"]:not([role="switch"]):not(.cm-checkbox-optout):checked{
  background:#169447!important;border-color:#169447!important;
}
html body input[type="checkbox"]:not([role="switch"]):not(.cm-checkbox-optout):checked::after{
  content:"✓"!important;color:#fff!important;font:bold 20px/1 system-ui,sans-serif!important;
  width:auto!important;height:auto!important;background:none!important;position:static!important;
}
html body input[type="checkbox"]:not([role="switch"]):not(.cm-checkbox-optout):focus-visible{
  outline:3px solid #f69b3a!important;outline-offset:3px!important;
}
html body input[type="checkbox"]:not([role="switch"]):not(.cm-checkbox-optout):disabled{
  opacity:.55!important;cursor:not-allowed!important;
}
html body input[type="checkbox"][hidden]{display:none!important;}
@media(prefers-reduced-motion:reduce){html body input[type="checkbox"]{transition:none!important;}}

/* R9 consistent checkbox geometry across CM cart, forms and dynamic tables */
html body input[type="checkbox"]:not([role="switch"]):not(.cm-checkbox-optout){width:30px!important;height:30px!important;min-width:30px!important;min-height:30px!important;max-width:30px!important;max-height:30px!important;border-radius:6px!important;box-sizing:border-box!important;place-items:center!important;margin:0 10px 0 0!important;}
html body input[type="checkbox"]:not([role="switch"]):not(.cm-checkbox-optout):checked::after{font-size:21px!important;line-height:1!important;margin:0!important;align-self:center!important;justify-self:center!important;}
.cm-commercial-line .cm-r258-select{display:flex!important;align-items:center!important;justify-content:center!important;flex-shrink:0!important;min-width:44px!important;}
.cm-commercial-actions{display:flex!important;flex-wrap:nowrap!important;align-items:stretch!important;justify-content:flex-end!important;gap:18px!important;}
.cm-commercial-actions > button,.cm-commercial-actions > a{margin:0!important;min-height:48px!important;display:inline-flex!important;align-items:center!important;justify-content:center!important;white-space:normal!important;box-sizing:border-box!important;flex:0 1 245px!important;text-align:center!important;}
.cm-payment-grace{display:flex!important;flex-wrap:wrap!important;align-items:center!important;gap:12px!important;line-height:1.6!important;}
.cm-payment-grace > strong{margin-right:6px!important;}
.cm-payment-grace > span{display:inline-flex!important;flex-wrap:wrap!important;align-items:center!important;gap:12px!important;}
.cm-payment-grace a.primary-btn{display:inline-flex!important;align-items:center!important;justify-content:center!important;margin:0!important;min-height:48px!important;}
.cm-r9-selected-count{font-size:.86rem;color:#496071;margin:0 10px;}
.cm-r9-action-toast{position:fixed;z-index:2147483000;left:50%;bottom:22px;transform:translateX(-50%);width:max-content;max-width:min(92vw,520px);background:#17364b;color:#fff;border-left:5px solid #f26820;padding:11px 17px;border-radius:11px;box-shadow:0 8px 30px #0003;font:600 14px/1.45 system-ui,sans-serif;pointer-events:none;opacity:0;transition:opacity .16s ease;}
.cm-r9-action-toast.cm-show{opacity:1;}
@media(max-width:600px){.cm-commercial-actions{gap:12px!important;}.cm-commercial-actions > button,.cm-commercial-actions > a{flex:1 1 0!important;min-width:0!important;padding:10px 8px!important;font-size:.85rem!important;}.cm-r9-action-toast{bottom:14px;}}
