/* Modern accessible checkbox styling using accent-color */
/* Ensures proper contrast ratio of 3:1 for accessibility */

/* Modern checkbox styling using native browser checkboxes with accent-color */
input[type=checkbox] {
  /* Use default browser checkbox appearance */
  width: 1rem;
  height: 1rem;
  margin: 0;
  vertical-align: baseline;
  position: relative;
  top: 0.125em; /* Fine-tune vertical alignment with text baseline */
  cursor: pointer;
  flex-shrink: 0;
}

/* When checkbox is followed by a label */
input[type=checkbox] + label {
  display: inline;
  vertical-align: baseline;
  cursor: pointer;
  margin-bottom: 0;
  line-height: 1.5;
}

/* Also apply accent-color and alignment to radio buttons for consistency */
input[type=radio] {
  margin: 0;
  vertical-align: baseline;
  position: relative;
  top: 0.125em;
  cursor: pointer;
}

input[type=radio] + label {
  display: inline;
  vertical-align: baseline;
  cursor: pointer;
  margin-bottom: 0;
  line-height: 1.5;
}
