.root {
    display: inline-flex;
    align-items: center;
    cursor: pointer;
    user-select: none;
}

.input {
    display: none;
}

.circle {
    position: relative;
    width: 20px;
    min-width: 20px;
    height: 20px;
    min-height: 20px;
    border: var(--border-width-sm) solid var(--border-color-medium);
    border-radius: var(--border-radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--color-bg-fill-brand-inverse);
    transition: border-color 0.3s, background-color 0.3s;
}

.innerCircle {
    position: absolute;
    opacity: 0;
    width: 12px;
    height: 12px;
    border-radius: var(--border-radius-full);
    background-color: var(--color-bg-fill-neutral-dark);
    transition: background-color 0.3s, opacity 0.3s;
}

.checked .circle {
    border-color: var(--color-bg-fill-neutral-dark);
}

.checked .innerCircle {
    opacity: 1;
    background-color: var(--color-bg-fill-neutral-dark);
}

.inverted {
    color: var(--color-text-primary-inverted);
}

.inverted .circle {
    border-color: var(--border-color-invert);
    background-color: var(--border-color-alpha-white-10);
}

.inverted .innerCircle {
    background-color: var(--color-bg-fill-brand-inverse);
}

.disabled {
    color: var(--color-text-primary-disabled);
}

.disabled .circle {
    border-color: var(--border-color-medium);
    background-color: var(--color-bg-fill-brand-disabled);
}

.disabled .innerCircle {
    opacity: 0.5;
    background-color: var(--color-bg-fill-brand-disabled);
}

.label {
    margin-left: 8px;
}
