/* ==========================================================
   Checkbox Row
   ========================================================== */

.checkbox-row {
    display: flex;
    align-items: center;
    gap: 8px;
}


/* ==========================================================
   Checkbox
   ========================================================== */

.checkbox {
    width: 16px;
    height: 16px;
    margin: 0;
    border: 1px solid #b8c0ca;
    border-radius: 6px;
    background: #ffffff;
    appearance: none;
    -webkit-appearance: none;
    cursor: pointer;
    position: relative;
    transition:
        background-color 0.15s ease,
        border-color 0.15s ease,
        box-shadow 0.15s ease;
}

.checkbox:hover {
    border-color: #8f9baa;
}

.checkbox:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 122, 255, 0.18);
}

.checkbox:checked {
    background: #007AFF;
    border-color: #007AFF;
}

.checkbox:checked::after {
    content: "";
    position: absolute;
    left: 4px;
    top: 1px;
    width: 4px;
    height: 8px;
    border: solid #ffffff;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}


/* ==========================================================
   Label
   ========================================================== */

.checkbox-label {
    font-size: 14px;
    color: #1d1d1f;
    cursor: pointer;
    user-select: none;
}


/* ==========================================================
   Disabled
   ========================================================== */

.checkbox:disabled {
    cursor: not-allowed;
    opacity: 0.6;
}

.checkbox:disabled + .checkbox-label {
    color: #8e8e93;
    cursor: not-allowed;
}
