/* Wrapper */
.tb\:checkbox-wrap {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.tb\:checkbox-wrap:has(.tb\:custom-checkbox:disabled) {
    cursor: not-allowed;
}

/* Control container */
.tb\:checkbox-control {
    position: relative;
    width: 16px;
    height: 16px;
}

/* Checkbox input */
.tb\:custom-checkbox {
    appearance: none;
    -webkit-appearance: none;
    width: 16px;
    height: 16px;
    border: 1px solid #d8d8e5;
    border-radius: 2px;
    cursor: pointer;
}

.tb\:custom-checkbox:checked {
    background-color: #632ebe;
    border-color: #632ebe;
}

.tb\:custom-checkbox:indeterminate {
    background-color: #ffffff;
    border-color: #632ebe;
}

.tb\:custom-checkbox:hover,
.tb\:custom-checkbox:focus {
    border-color: #632ebe;
}

.tb\:custom-checkbox:disabled {
    cursor: not-allowed;
    background-color: #A1A5B7;
    border-color: #A1A5B7;
}

.tb\:custom-checkbox:focus,
.tb\:custom-checkbox:focus-visible {
    outline: none;
    box-shadow: 0 0 0 2px rgba(50, 115, 220, 0.25);
}

/* Check indicator (icon overlay) */
.tb\:checkbox-indicator {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #ffffff;
    display: none;
    pointer-events: none;
}

.tb\:custom-checkbox:checked + .tb\:checkbox-indicator,
.tb\:custom-checkbox:indeterminate + .tb\:checkbox-indicator  {
    display: block;
}

/* Icon */
.tb\:check-icon,
.tb\:square-icon {
    width: 10px;
    height: 10px;
    display: none;
}

.tb\:square-icon {
    color: #632ebe;
}

.tb\:custom-checkbox:checked + .tb\:checkbox-indicator .tb\:check-icon ,
.tb\:custom-checkbox:indeterminate + .tb\:checkbox-indicator .tb\:square-icon{
    display: block;
}