/* One mark for selected controls and for saved or completed UI states. */
:root {
  --ce-check-size:20px;
  --ce-check-teal:#247f78;
  --ce-check-border:#53756b;
  --ce-check-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Crect width='20' height='20' rx='5' fill='%23247f78'/%3E%3Cpath d='m4.75 10.25 3.4 3.4 7.1-7.3' fill='none' stroke='white' stroke-width='2.15' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}
input[type=checkbox]:not(:where([role=switch],.sr-only,.visually-hidden,.ac-switch input,.vi-swatch input,.ds-segment input,.joy-segment input,.joy-networks input,.exp-category>input,.peer,[hidden])) {
  appearance:none!important;-webkit-appearance:none!important;box-sizing:border-box!important;
  width:var(--ce-check-size)!important;height:var(--ce-check-size)!important;
  min-width:var(--ce-check-size)!important;min-height:var(--ce-check-size)!important;
  flex:none;padding:0!important;vertical-align:middle;
  border:1.5px solid var(--ce-check-border)!important;border-radius:5px!important;
  background:#fff!important;cursor:pointer;
}
input[type=checkbox]:not(:where([role=switch],.sr-only,.visually-hidden,.ac-switch input,.vi-swatch input,.ds-segment input,.joy-segment input,.joy-networks input,.exp-category>input,.peer,[hidden])):checked {
  border:0!important;background:var(--ce-check-image) center / 100% 100% no-repeat!important;
}
input[type=checkbox]:not(:where([role=switch],.sr-only,.visually-hidden,.ac-switch input,.vi-swatch input,.ds-segment input,.joy-segment input,.joy-networks input,.exp-category>input,.peer,[hidden])):indeterminate {
  border:0!important;background:linear-gradient(white,white) center / 52% 2px no-repeat var(--ce-check-teal)!important;
}
input[type=checkbox]:not(:where([role=switch],.sr-only,.visually-hidden,.ac-switch input,.vi-swatch input,.ds-segment input,.joy-segment input,.joy-networks input,.exp-category>input,.peer,[hidden])):disabled {opacity:.52;cursor:default}
input[type=checkbox]:focus-visible {outline:2px solid var(--ce-check-teal)!important;outline-offset:3px}

.ce-check-mark, .sg-voucher-check, [data-ce-check-icon] {
  box-sizing:border-box!important;width:var(--ce-check-size)!important;height:var(--ce-check-size)!important;
  min-width:var(--ce-check-size);flex:none;vertical-align:middle!important;
  background:var(--ce-check-image) center / contain no-repeat!important;
  border:0!important;border-radius:5px!important;padding:0!important;
  color:transparent!important;text-shadow:none!important;overflow:hidden!important;
  white-space:nowrap!important;font-size:0!important;line-height:0!important;
}
.ce-check-mark {display:inline-block}
[data-ce-check-icon=empty] {background:#fff!important;border:1.5px solid var(--ce-check-border)!important}
[data-ce-check-icon=mixed] {background:linear-gradient(white,white) center / 52% 2px no-repeat var(--ce-check-teal)!important}

/* These legacy choices already expose their selected state with a pseudo-element. */
.emoji-choice[aria-pressed=true]::after,
.greeting-audio-track:has(button[aria-pressed=true])>button::before,
.song-genres button[aria-pressed=true]::before,.song-ready::before,
body[data-foundation-screen="7"] .filter-chip[aria-pressed=true]::before,
.purchase-intent button[aria-pressed=true]::before,.login-tabs a[aria-current]::before,
.sg-surprise .sg-status-delivered::before,.vr-scan-status[data-state="success"] strong::before {
  content:""!important;display:inline-block!important;flex:none!important;width:var(--ce-check-size)!important;
  height:var(--ce-check-size)!important;vertical-align:middle;background:var(--ce-check-image) center / contain no-repeat!important;
  border:0!important;border-radius:5px!important;padding:0!important;
}
.greeting-audio-track:has(button[aria-pressed=true])>button::before,
.song-genres button[aria-pressed=true]::before,.purchase-intent button[aria-pressed=true]::before,
.login-tabs a[aria-current]::before,.sg-surprise .sg-status-delivered::before,.vr-scan-status[data-state="success"] strong::before {margin-inline-end:.35em}
.emoji-choice[aria-pressed=true]::after {--ce-check-size:16px}
@media(forced-colors:active){
  input[type=checkbox]:not(:where([role=switch],.sr-only,.visually-hidden,.ac-switch input,.vi-swatch input,.ds-segment input,.joy-segment input,.joy-networks input,.exp-category>input,.peer,[hidden])){
    appearance:auto!important;-webkit-appearance:auto!important;background:none!important;border:revert!important;forced-color-adjust:auto
  }
  .ce-check-mark,[data-ce-check-icon]{forced-color-adjust:none}
}
:where(span,i,b)[data-ce-check-icon]:not([hidden],.hidden) {display:inline-block}
[data-ce-check-icon=double] {
  width:27px!important;
  background:var(--ce-check-image) right center / 18px 18px no-repeat,var(--ce-check-image) left center / 18px 18px no-repeat!important;
}
