.checklist ul {
  padding: 0;
  margin: 0;
}

.checklist ul li {
  display: flex;
  align-items: center;
  gap: 10px;
  list-style: none;
  border-block-end: solid 1px grey;
}

.checklist ul li form {
    display: contents;
}

.checklist ul li form button {
    width: 20px;
    height: 20px;
}

.checklist ul li label {
  flex: 1;
  padding: 10px 0;
  cursor: pointer;
}

.checklist ul li:has(input[type='checkbox']:checked) label {
  text-decoration: line-through;
  color: grey;
}

.checklist ul li input[type='checkbox'] {
  height: 20px;
  width: 20px;
  flex-shrink: 0;
}

.checklist .button--subtle {
    color: grey;
    font-size: .8em;
    background-color: transparent;
    border: none;
    cursor: pointer;
}

.checklist .button--subtle:hover {
    color: var(--color-accent);
}
