.indi-toggle-switch {
    position: relative;
    display: inline-block;
    margin: 0;
    width: var(--switch-width);
    height: var(--switch-height);
    user-select: none;
}

.indi-toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.indi-toggle-switch-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: gray;
    transition: .4s;
}

.indi-toggle-switch-slider:before {
    position: absolute;
    content: "";
    height: var(--switch-toggle-size);
    width: var(--switch-toggle-size);
    left: var(--switch-padding);
    bottom: var(--switch-padding);
    background-color: white;
    transition: .4s;
}

input:checked + .indi-toggle-switch-slider {
    background-color: var(--indi-primary-colour);
}

input:checked + .indi-toggle-switch-slider:before {
    transform: translateX(calc(var(--switch-width) - var(--switch-toggle-size) - var(--switch-padding) * 2));
}

.indi-toggle-switch-slider.round {
    border-radius: var(--switch-height);
}

.indi-toggle-switch-slider.round:before {
    border-radius: 50%;
}

.indi-toggle-switch.disabled .indi-toggle-switch-slider {
    cursor: default;
}