ul.checkbox {
  list-style: none;
  margin-inline-start: 0;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

ul.checkbox li {
  display: flex;
  align-items: flex-start;
  gap: 0.5em;
}

ul.checkbox li::before {
  content: '';
  display: inline-block;
  flex-shrink: 0;
  width: 1rem;
  height: 1rem;
  padding: 0;
  border: none;
  box-sizing: content-box;
  background-image: url('../icons/checkOutlined.svg');
  background-size: 1rem 1rem;
  background-repeat: no-repeat;
  background-position: center;
  filter: brightness(0);
}

ul.checkbox.checkbox--filled li::before {
  background-image: url('../icons/checkFilled.svg');
}

.gin--dark-mode ul.checkbox li::before {
  filter: brightness(0) invert(1);
}

/* Active state border for dropdown buttons */
.ck-check-list-styles .ck-button.ck-button_on {
  border: 2px solid #e5007c !important;
}

/* Inside CKEditor editor — needs higher specificity to override .ck-content ul.
   Uses absolute positioning instead of flex to preserve cursor placement. */
.ck ul.checkbox {
  list-style: none;
  margin-inline-start: 0;
  padding-left: 1.5em;
}

.ck ul.checkbox li {
  position: relative;
}

.ck ul.checkbox li::before {
  content: '';
  position: absolute;
  left: -1.4em;
  top: 0.15em;
  width: 1rem;
  height: 1rem;
  padding: 0;
  border: none;
  box-sizing: content-box;
  background-image: url('../icons/checkOutlined.svg');
  background-size: 1rem 1rem;
  background-repeat: no-repeat;
  background-position: center;
  filter: brightness(0);
}

.ck ul.checkbox.checkbox--filled li::before {
  background-image: url('../icons/checkFilled.svg');
}

.gin--dark-mode .ck ul.checkbox li::before {
  filter: brightness(0) invert(1);
}
