.custom-checkbox-container {
    display: flex;
    align-items: center;
    position: relative;
    cursor: pointer;
    user-select: none;
    padding-left: 30px;
    font-size: 16px;
    min-height: 22px;
}

.custom-checkbox-container input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.checkmark {
    position: absolute;
    top: 0;
    left: 0;
    height: 22px;
    width: 22px;
    border: 1px solid var(--color-tertiary);
    border-radius: 4px;
    transition: background-color 0.2s ease, border-color 0.2s ease;
}

.custom-checkbox-container input[type="checkbox"]:checked ~ .checkmark {
    background-color: var(--color-secondary);
    border-color: var(--color-background);
}

.custom-checkbox-container .checkmark:after {
    content: "";
    position: absolute;
    display: none;
    left: 8px;
    top: 4px;
    width: 5px;
    height: 10px;
    border: solid var(--color-primary);
    border-width: 0 3px 3px 0;
    transform: rotate(45deg);
}

.custom-checkbox-container input[type="checkbox"]:checked ~ .checkmark:after {
    display: block;
}

.custom-checkbox-container:hover input[type="checkbox"] ~ .checkmark {
    background-color: var(--color-background-tertiary);
}

.custom-checkbox-container:hover input[type="checkbox"]:checked ~ .checkmark {
    background-color: var(--color-secondary);
}

.custom-checkbox-container {
    transition: transform 0.2s ease-in-out, padding-left 0.2s ease-out;
}

.custom-checkbox-container:hover {
    cursor: pointer;
    padding-left: 40px;
}