/* Offerist shared checkbox control. Authenticated cabinet, all sections.
   Keep switch/slider widgets and hidden inputs out of this square control. */
:root {
  --offerist-check-border: #76c8e5;
  --offerist-check-hover: #50f6e9;
  --offerist-check-fill-a: #58f1ec;
  --offerist-check-fill-b: #0de8a0;
  --offerist-check-tick: #082c37;
}
body input[type="checkbox"]:not([hidden]):not([role="switch"]):not(.of-switch-input):not(.toggle-switch-input):not(.switch-input):not(.theme-switch__input) {
  -webkit-appearance: none !important;
  appearance: none !important;
  width: 23px !important;
  height: 23px !important;
  min-width: 23px !important;
  min-height: 23px !important;
  max-width: 23px !important;
  max-height: 23px !important;
  box-sizing: border-box !important;
  display: inline-grid !important;
  place-content: center !important;
  flex: 0 0 23px;
  margin: 0 !important;
  padding: 0 !important;
  vertical-align: middle !important;
  cursor: pointer !important;
  background: #132946 !important;
  border: 2px solid var(--offerist-check-border) !important;
  border-radius: 7px !important;
  box-shadow: 0 0 0 1px rgba(117, 228, 240, .12), inset 0 0 8px rgba(59, 213, 241, .13) !important;
  transition: border-color .16s ease, background .16s ease, box-shadow .16s ease, transform .14s ease !important;
}
body input[type="checkbox"]:not([hidden]):not([role="switch"]):not(.of-switch-input):not(.toggle-switch-input):not(.switch-input):not(.theme-switch__input):hover {
  background: #183c55 !important;
  border-color: var(--offerist-check-hover) !important;
  box-shadow: 0 0 0 4px rgba(46, 238, 206, .17), 0 0 16px rgba(37, 215, 218, .21) !important;
}
body input[type="checkbox"]:not([hidden]):not([role="switch"]):not(.of-switch-input):not(.toggle-switch-input):not(.switch-input):not(.theme-switch__input):checked {
  background: linear-gradient(135deg, var(--offerist-check-fill-a) 0%, var(--offerist-check-fill-b) 100%) !important;
  border-color: #39f2d3 !important;
  box-shadow: 0 0 0 2px rgba(77, 248, 215, .2), 0 0 18px rgba(17, 238, 184, .24) !important;
}
body input[type="checkbox"]:not([hidden]):not([role="switch"]):not(.of-switch-input):not(.toggle-switch-input):not(.switch-input):not(.theme-switch__input):checked::before {
  content: "" !important;
  display: block !important;
  width: 11px !important;
  height: 7px !important;
  margin: 0 !important;
  border: 0 !important;
  border-left: 3px solid var(--offerist-check-tick) !important;
  border-bottom: 3px solid var(--offerist-check-tick) !important;
  background: transparent !important;
  border-radius: 0 !important;
  transform: translateY(-2px) rotate(-45deg) !important;
  animation: none !important;
}
body input[type="checkbox"]:not([hidden]):not([role="switch"]):not(.of-switch-input):not(.toggle-switch-input):not(.switch-input):not(.theme-switch__input):indeterminate {
  background: #1e5363 !important;
  border-color: #39f2d3 !important;
}
body input[type="checkbox"]:not([hidden]):not([role="switch"]):not(.of-switch-input):not(.toggle-switch-input):not(.switch-input):not(.theme-switch__input):indeterminate::before {
  content: "" !important;
  display: block !important;
  width: 11px !important;
  height: 3px !important;
  border: 0 !important;
  border-radius: 3px !important;
  margin: 0 !important;
  background: #54f0dc !important;
  transform: none !important;
}
body input[type="checkbox"]:not([hidden]):not([role="switch"]):not(.of-switch-input):not(.toggle-switch-input):not(.switch-input):not(.theme-switch__input):focus-visible {
  outline: 2px solid #6df9ec !important;
  outline-offset: 4px !important;
}
body input[type="checkbox"]:not([hidden]):not([role="switch"]):not(.of-switch-input):not(.toggle-switch-input):not(.switch-input):not(.theme-switch__input):active {
  transform: scale(.94) !important;
}
body input[type="checkbox"]:not([hidden]):not([role="switch"]):not(.of-switch-input):not(.toggle-switch-input):not(.switch-input):not(.theme-switch__input):disabled {
  cursor: not-allowed !important;
  opacity: .48 !important;
  filter: saturate(.65);
}
@media (prefers-reduced-motion: reduce) {
  body input[type="checkbox"] {
    transition: none !important;
    animation: none !important;
  }
}
