/* Jarvis animated switch — 1.4.6 switchers phase.
 *
 * Every checkbox site-wide renders as an animated toggle. The element
 * underneath STAYS a real checkbox: same name, same value, same form
 * behaviour, keyboard accessible, focus visible. No markup changes and
 * no JavaScript are involved, so nothing about what a form submits
 * can change here. The knob is a layered background (not a pseudo
 * element: replaced elements such as inputs do not render ::before
 * or ::after), sliding by background-position on :checked.
 *
 * Sizing uses !important only for width, height, and appearance, so
 * older inline width/height styles on individual checkboxes cannot
 * shrink a switch back into a small square. All other properties are
 * normal cascade, so theme styles still win where they should.
 */

input[type="checkbox"] {
    -webkit-appearance: none !important;
    appearance: none !important;
    width: 46px !important;
    height: 28px !important;
    min-width: 46px;
    flex-shrink: 0;
    vertical-align: middle;
    margin-top: 0;
    margin-bottom: 0;
    padding: 0;
    border: 1px solid rgba(0, 0, 0, 0.15);
    border-radius: 999px;
    background-color: #94a3b8;
    background-image: radial-gradient(circle closest-side, #ffffff 98%, rgba(255, 255, 255, 0) 100%);
    background-repeat: no-repeat;
    background-size: 20px 20px;
    background-position: 3px center;
    cursor: pointer;
    transition: background-color 0.18s ease, background-position 0.18s ease;
}

input[type="checkbox"]:checked {
    background-color: var(--orange, #ff6b35);
    background-position: 23px center;
}

input[type="checkbox"]:focus-visible {
    outline: 2px solid var(--orange, #ff6b35);
    outline-offset: 2px;
}

input[type="checkbox"]:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}

@media (prefers-reduced-motion: reduce) {
    input[type="checkbox"] {
        transition: none;
    }
}
