/* Premium switches for the whole panel (Bootstrap custom switches, Stisla switches and the panel's own switches). ON / OFF is written inside the switch. */
:root{--rsw-on-a:var(--ra-primary,var(--primary,#4f46e5));--rsw-on-b:#8b5cf6;--rsw-off-a:#d9dce6;--rsw-off-b:#c4c8d6;--rsw-off-t:#6b7185;--rsw-ease:cubic-bezier(.34,1.45,.64,1)}
html[data-ra-theme="dark"],html[data-theme="dark"],body.ra-dark-mode,body.dark{--rsw-off-a:#3b3d48;--rsw-off-b:#2f313b;--rsw-off-t:#9aa0b4}

/* ---------- Bootstrap custom switch ---------- */
html body .custom-switch.custom-control{padding-left:4.1rem !important;min-height:34px !important;display:flex !important;align-items:center !important}
html body .custom-switch .custom-control-label{line-height:1.4 !important;cursor:pointer !important;padding-top:0 !important}
html body .custom-switch .custom-control-label::before{left:-4.1rem !important;top:50% !important;margin-top:-16px !important;width:56px !important;height:32px !important;box-sizing:border-box !important;border:0 !important;border-radius:16px !important;background:linear-gradient(180deg,var(--rsw-off-a),var(--rsw-off-b)) !important;box-shadow:inset 0 2px 5px rgba(0,0,0,.18) !important;content:"OFF" !important;font-weight:800 !important;font-size:9.5px !important;line-height:32px !important;font-family:inherit !important;letter-spacing:.06em !important;color:var(--rsw-off-t) !important;text-align:right !important;padding-right:9px !important;transition:background .25s,box-shadow .25s,color .2s !important}
html body .custom-switch .custom-control-label::after{left:-4.1rem !important;top:50% !important;margin-top:-13px !important;margin-left:3px !important;width:26px !important;height:26px !important;border-radius:50% !important;background:#fff !important;background-color:#fff !important;box-shadow:0 2px 6px rgba(0,0,0,.35),0 0 0 1px rgba(0,0,0,.04) !important;transform:none !important;transition:transform .32s var(--rsw-ease),box-shadow .25s !important}
html body .custom-switch .custom-control-input:checked ~ .custom-control-label::before{content:"ON" !important;text-align:left !important;padding-left:11px !important;color:#fff !important;border:0 !important;background:linear-gradient(135deg,var(--rsw-on-a),var(--rsw-on-b)) !important;box-shadow:0 0 0 4px rgba(99,102,241,.16),0 6px 16px rgba(99,102,241,.45),inset 0 1px 2px rgba(255,255,255,.25) !important}
html body .custom-switch .custom-control-input:checked ~ .custom-control-label::after{background:#fff !important;background-color:#fff !important;transform:translateX(24px) !important;box-shadow:0 2px 8px rgba(0,0,0,.35) !important}
html body .custom-switch .custom-control-input:focus ~ .custom-control-label::before{box-shadow:0 0 0 4px rgba(139,92,246,.28) !important}
html body .custom-switch .custom-control-input:active ~ .custom-control-label::after{width:30px !important}
html body .custom-switch .custom-control-input:checked:active ~ .custom-control-label::after{width:30px !important;transform:translateX(20px) !important}
html body .custom-switch .custom-control-input:disabled ~ .custom-control-label{opacity:.5 !important;cursor:not-allowed !important}

/* ---------- Stisla switch (label.custom-switch > input.custom-switch-input + span.custom-switch-indicator) ---------- */
html body label.custom-switch{display:inline-flex !important;align-items:center !important;gap:12px !important;cursor:pointer !important}
html body .custom-switch-indicator{position:relative !important;display:inline-block !important;flex:0 0 56px !important;width:56px !important;height:32px !important;box-sizing:border-box !important;border:0 !important;border-radius:16px !important;vertical-align:middle !important;background:linear-gradient(180deg,var(--rsw-off-a),var(--rsw-off-b)) !important;box-shadow:inset 0 2px 5px rgba(0,0,0,.18) !important;transition:background .25s,box-shadow .25s !important}
html body .custom-switch-indicator::after{content:"OFF" !important;position:absolute !important;right:9px !important;top:0 !important;font-weight:800 !important;font-size:9.5px !important;line-height:32px !important;font-family:inherit !important;letter-spacing:.06em !important;color:var(--rsw-off-t) !important;transition:color .2s !important}
html body .custom-switch-indicator::before{content:"" !important;position:absolute !important;top:3px !important;left:3px !important;width:26px !important;height:26px !important;border-radius:50% !important;background:#fff !important;box-shadow:0 2px 6px rgba(0,0,0,.35) !important;transition:left .32s var(--rsw-ease) !important}
html body .custom-switch-input:checked ~ .custom-switch-indicator{background:linear-gradient(135deg,var(--rsw-on-a),var(--rsw-on-b)) !important;box-shadow:0 0 0 4px rgba(99,102,241,.16),0 6px 16px rgba(99,102,241,.45),inset 0 1px 2px rgba(255,255,255,.25) !important}
html body .custom-switch-input:checked ~ .custom-switch-indicator::after{content:"ON" !important;right:auto !important;left:11px !important;color:#fff !important}
html body .custom-switch-input:checked ~ .custom-switch-indicator::before{left:27px !important}
html body .custom-switch-input:focus ~ .custom-switch-indicator{box-shadow:0 0 0 4px rgba(139,92,246,.28) !important}
html body .custom-switch-description{margin-left:0 !important}

/* new design */
/* ---------- Bootstrap custom switch ---------- */
html body.ra2.ra2-skin .custom-switch.custom-control{padding-left:4.1rem !important;min-height:34px !important;display:flex !important;align-items:center !important}
html body.ra2.ra2-skin .custom-switch .custom-control-label{line-height:1.4 !important;cursor:pointer !important;padding-top:0 !important}
html body.ra2.ra2-skin .custom-switch .custom-control-label::before{left:-4.1rem !important;top:50% !important;margin-top:-16px !important;width:56px !important;height:32px !important;box-sizing:border-box !important;border:0 !important;border-radius:16px !important;background:linear-gradient(180deg,var(--rsw-off-a),var(--rsw-off-b)) !important;box-shadow:inset 0 2px 5px rgba(0,0,0,.18) !important;content:"OFF" !important;font-weight:800 !important;font-size:9.5px !important;line-height:32px !important;font-family:inherit !important;letter-spacing:.06em !important;color:var(--rsw-off-t) !important;text-align:right !important;padding-right:9px !important;transition:background .25s,box-shadow .25s,color .2s !important}
html body.ra2.ra2-skin .custom-switch .custom-control-label::after{left:-4.1rem !important;top:50% !important;margin-top:-13px !important;margin-left:3px !important;width:26px !important;height:26px !important;border-radius:50% !important;background:#fff !important;background-color:#fff !important;box-shadow:0 2px 6px rgba(0,0,0,.35),0 0 0 1px rgba(0,0,0,.04) !important;transform:none !important;transition:transform .32s var(--rsw-ease),box-shadow .25s !important}
html body.ra2.ra2-skin .custom-switch .custom-control-input:checked ~ .custom-control-label::before{content:"ON" !important;text-align:left !important;padding-left:11px !important;color:#fff !important;border:0 !important;background:linear-gradient(135deg,var(--rsw-on-a),var(--rsw-on-b)) !important;box-shadow:0 0 0 4px rgba(99,102,241,.16),0 6px 16px rgba(99,102,241,.45),inset 0 1px 2px rgba(255,255,255,.25) !important}
html body.ra2.ra2-skin .custom-switch .custom-control-input:checked ~ .custom-control-label::after{background:#fff !important;background-color:#fff !important;transform:translateX(24px) !important;box-shadow:0 2px 8px rgba(0,0,0,.35) !important}
html body.ra2.ra2-skin .custom-switch .custom-control-input:focus ~ .custom-control-label::before{box-shadow:0 0 0 4px rgba(139,92,246,.28) !important}
html body.ra2.ra2-skin .custom-switch .custom-control-input:active ~ .custom-control-label::after{width:30px !important}
html body.ra2.ra2-skin .custom-switch .custom-control-input:checked:active ~ .custom-control-label::after{width:30px !important;transform:translateX(20px) !important}
html body.ra2.ra2-skin .custom-switch .custom-control-input:disabled ~ .custom-control-label{opacity:.5 !important;cursor:not-allowed !important}

/* ---------- Stisla switch (label.custom-switch > input.custom-switch-input + span.custom-switch-indicator) ---------- */
html body.ra2.ra2-skin label.custom-switch{display:inline-flex !important;align-items:center !important;gap:12px !important;cursor:pointer !important}
html body.ra2.ra2-skin .custom-switch-indicator{position:relative !important;display:inline-block !important;flex:0 0 56px !important;width:56px !important;height:32px !important;box-sizing:border-box !important;border:0 !important;border-radius:16px !important;vertical-align:middle !important;background:linear-gradient(180deg,var(--rsw-off-a),var(--rsw-off-b)) !important;box-shadow:inset 0 2px 5px rgba(0,0,0,.18) !important;transition:background .25s,box-shadow .25s !important}
html body.ra2.ra2-skin .custom-switch-indicator::after{content:"OFF" !important;position:absolute !important;right:9px !important;top:0 !important;font-weight:800 !important;font-size:9.5px !important;line-height:32px !important;font-family:inherit !important;letter-spacing:.06em !important;color:var(--rsw-off-t) !important;transition:color .2s !important}
html body.ra2.ra2-skin .custom-switch-indicator::before{content:"" !important;position:absolute !important;top:3px !important;left:3px !important;width:26px !important;height:26px !important;border-radius:50% !important;background:#fff !important;box-shadow:0 2px 6px rgba(0,0,0,.35) !important;transition:left .32s var(--rsw-ease) !important}
html body.ra2.ra2-skin .custom-switch-input:checked ~ .custom-switch-indicator{background:linear-gradient(135deg,var(--rsw-on-a),var(--rsw-on-b)) !important;box-shadow:0 0 0 4px rgba(99,102,241,.16),0 6px 16px rgba(99,102,241,.45),inset 0 1px 2px rgba(255,255,255,.25) !important}
html body.ra2.ra2-skin .custom-switch-input:checked ~ .custom-switch-indicator::after{content:"ON" !important;right:auto !important;left:11px !important;color:#fff !important}
html body.ra2.ra2-skin .custom-switch-input:checked ~ .custom-switch-indicator::before{left:27px !important}
html body.ra2.ra2-skin .custom-switch-input:focus ~ .custom-switch-indicator{box-shadow:0 0 0 4px rgba(139,92,246,.28) !important}
html body.ra2.ra2-skin .custom-switch-description{margin-left:0 !important}
html body .custom-switch-input,html body.ra2.ra2-skin .custom-switch-input{position:absolute !important;opacity:0 !important;width:0 !important;height:0 !important;z-index:-1 !important}
