/*
 * Frontend checkbox toggle style
 * Applies a modern switch-like UI to native checkboxes across public pages.
 */

body:not(.wp-admin) input[type="checkbox"]:not(.hk-toggle-skip) {
  -webkit-appearance: none;
  appearance: none;
  width: 58px;
  height: 32px;
  margin: 0 12px 0 0;
  border-radius: 999px;
  border: 1px solid #bfd0e4;
  background:
    radial-gradient(circle at 15px 50%, #ffffff 0 11px, transparent 11.2px),
    linear-gradient(0deg, #dce6f2, #dce6f2);
  box-shadow: inset 0 1px 2px rgba(15, 23, 42, 0.12);
  vertical-align: middle;
  cursor: pointer;
  flex-shrink: 0;
  transition:
    background-color 0.22s ease,
    border-color 0.22s ease,
    box-shadow 0.22s ease,
    opacity 0.22s ease;
}

body:not(.wp-admin) input[type="checkbox"]:not(.hk-toggle-skip):checked {
  border-color: #2cb6d6;
  background:
    radial-gradient(circle at calc(100% - 15px) 50%, #ffffff 0 11px, transparent 11.2px),
    linear-gradient(90deg, #79e4cf 0%, #42c5ea 100%);
  box-shadow: 0 8px 18px rgba(66, 197, 234, 0.28);
}

body:not(.wp-admin) input[type="checkbox"]:not(.hk-toggle-skip):focus-visible {
  outline: 3px solid rgba(66, 197, 234, 0.34);
  outline-offset: 2px;
}

body:not(.wp-admin) input[type="checkbox"]:not(.hk-toggle-skip):disabled {
  cursor: not-allowed;
  opacity: 0.72;
  box-shadow: inset 0 1px 1px rgba(15, 23, 42, 0.08);
}
