/* r27 (4 Dec 2026): on/off switches look like the Control Panel switch (luxvps test look only).
   Control Panel: 34 x 20 track, 1px border, 4px corners, 14 x 14 knob with 2px corners, blue when on.
   Billing switches (mailing list, single sign-on, save card) keep their behaviour; only the look changes.
   The word next to the track says the current state (Yes / No); a click on the track or the word flips it. */
html body .bootstrap-switch.bootstrap-switch-wrapper {
    position: relative;
    display: inline-block;
    width: auto !important;
    height: 20px;
    min-width: 34px;
    margin: 0;
    padding: 0;
    border: 0 !important;
    border-radius: 0;
    background: none !important;
    box-shadow: none !important;
    overflow: visible;
    line-height: 20px;
    vertical-align: middle;
    isolation: isolate;
}
/* track */
html body .bootstrap-switch.bootstrap-switch-wrapper::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    z-index: 0;
    box-sizing: border-box;
    width: 34px;
    height: 20px;
    border: 1px solid #D8D8DC;
    border-radius: 4px;
    background: rgba(27, 27, 30, 0.08);
    transition: background 120ms ease, border-color 120ms ease, box-shadow 120ms ease;
}
/* knob */
html body .bootstrap-switch.bootstrap-switch-wrapper::after {
    content: "";
    position: absolute;
    top: 3px;
    left: 3px;
    z-index: 0;
    width: 14px;
    height: 14px;
    border-radius: 2px;
    background: #FFFFFF;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.25);
    transition: transform 120ms ease, background 120ms ease;
}
html:not([data-lx-theme="light"]) body .bootstrap-switch.bootstrap-switch-wrapper::before {
    border-color: #4D5A9A;
    background: #1A2350;
}
html:not([data-lx-theme="light"]) body .bootstrap-switch.bootstrap-switch-wrapper::after {
    background: #9AA1C2;
}
html body .bootstrap-switch.bootstrap-switch-wrapper.bootstrap-switch-on::before {
    border-color: #0060FE;
    background: #0060FE;
}
html body .bootstrap-switch.bootstrap-switch-wrapper.bootstrap-switch-on::after {
    background: #FFFFFF;
    transform: translateX(14px);
}
/* focus ring for keyboard users only (no ring after a mouse click, like the rest of billing) */
html body .bootstrap-switch.bootstrap-switch-wrapper:has(input:focus-visible)::before {
    box-shadow: 0 0 0 3px rgba(0, 96, 254, 0.2);
}
html body .bootstrap-switch.bootstrap-switch-wrapper.bootstrap-switch-disabled,
html body .bootstrap-switch.bootstrap-switch-wrapper.bootstrap-switch-readonly,
html body .bootstrap-switch.bootstrap-switch-wrapper.bootstrap-switch-indeterminate {
    opacity: 0.55;
}
html body .bootstrap-switch.bootstrap-switch-wrapper .bootstrap-switch-container {
    position: static;
    display: block;
    width: auto !important;
    margin: 0 !important;
    transform: none !important;
    transition: none !important;
    border-radius: 0;
}
/* the word right of the track says the current state (Twenty-One forces inline-block with !important, so these need it too) */
html body .bootstrap-switch.bootstrap-switch-wrapper .bootstrap-switch-handle-on,
html body .bootstrap-switch.bootstrap-switch-wrapper .bootstrap-switch-handle-off {
    position: relative;
    z-index: 1;
    display: none !important;
    box-sizing: border-box;
    width: auto !important;
    height: 20px;
    margin: 0;
    padding: 0 0 0 44px;
    border: 0;
    border-radius: 0;
    background: transparent !important;
    color: inherit !important;
    font-size: 13px;
    font-weight: 500;
    line-height: 20px;
    text-align: left;
    white-space: nowrap;
    cursor: pointer;
}
html body .bootstrap-switch.bootstrap-switch-wrapper.bootstrap-switch-on .bootstrap-switch-handle-on,
html body .bootstrap-switch.bootstrap-switch-wrapper.bootstrap-switch-off .bootstrap-switch-handle-off {
    display: block !important;
}
html body .bootstrap-switch.bootstrap-switch-wrapper .bootstrap-switch-label {
    display: none !important;
}
/* The checkbox itself lies (invisible) over the track and the word, so a click anywhere on the switch flips it
   the normal way: no focus ring after a mouse click, Tab reaches it and Space flips it. */
html body .bootstrap-switch.bootstrap-switch-wrapper input[type="checkbox"] {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    z-index: 2 !important;
    width: 100% !important;
    height: 20px !important;
    margin: 0 !important;
    opacity: 0 !important;
    visibility: visible !important;
    pointer-events: auto !important;
    cursor: pointer;
}
@media (prefers-reduced-motion: reduce) {
    html body .bootstrap-switch.bootstrap-switch-wrapper::before,
    html body .bootstrap-switch.bootstrap-switch-wrapper::after {
        transition: none;
    }
}
