/* ===== Interruptores (toggles) padronizados: todos iguais ao de Campanhas =====
   Desligado: trilho cinza (--nx-active-bg) e bolinha cinza clara (--nx-muted-hi). Ligado: trilho claro (--nx-text) e bolinha escura (--nx-page).
   Só o tamanho de cada tela é o dela (o de Campanhas é maior). O interruptor de tema da barra de cima (.theme-switch) fica como está.
   Este arquivo é o ÚLTIMO estilo do <body> e usa !important de propósito para vencer as regras antigas de cada tela. Toggle novo = usar uma destas classes ou acrescentar aqui. */

/* Campanhas e telas que reaproveitam .cm-sw (botão com .on) */
html body .cm-sw { background: var(--nx-active-bg) !important; }
html body .cm-sw::after { background: var(--nx-muted-hi) !important; }
html body .cm-sw.on { background: var(--nx-text) !important; }
html body .cm-sw.on::after { background: var(--nx-page) !important; }
html body .cm-sw:disabled { opacity: .45; cursor: not-allowed; }

/* Webhooks (botão com aria-checked) */
html body .oh-sw { background: var(--nx-active-bg) !important; border-radius: 999px !important; }
html body .oh-sw::after { background: var(--nx-muted-hi) !important; }
html body .oh-sw[aria-checked="true"] { background: var(--nx-text) !important; }
html body .oh-sw[aria-checked="true"]::after { background: var(--nx-page) !important; }

/* Editor de checkout e demais telas com <label class="toggle-sw"><input><span class="toggle-sl"> */
html body .toggle-sw .toggle-sl { background: var(--nx-active-bg) !important; border-radius: 999px !important; }
html body .toggle-sw .toggle-sl::before { background: var(--nx-muted-hi) !important; border-radius: 50% !important; }
html body .toggle-sw input:checked + .toggle-sl { background: var(--nx-text) !important; color: inherit !important; }
html body .toggle-sw input:checked + .toggle-sl::before { background: var(--nx-page) !important; }
html body .toggle-sw input:focus-visible + .toggle-sl { box-shadow: 0 0 0 2px var(--nx-bg), 0 0 0 4px var(--nx-ring); }

/* Produtos (.cp-switch) */
html body .cp-switch .sl { background: var(--nx-active-bg) !important; border-radius: 999px !important; }
html body .cp-switch .sl::before { background: var(--nx-muted-hi) !important; }
html body .cp-switch input:checked + .sl { background: var(--nx-text) !important; color: inherit !important; }
html body .cp-switch input:checked + .sl::before { background: var(--nx-page) !important; }

/* Regras automáticas (.rg-sw) */
html body .rg-sw .rg-swt { background: var(--nx-active-bg) !important; border-radius: 999px !important; }
html body .rg-sw .rg-swt::after { background: var(--nx-muted-hi) !important; }
html body .rg-sw input:checked + .rg-swt { background: var(--nx-text) !important; }
html body .rg-sw input:checked + .rg-swt::after { background: var(--nx-page) !important; }

/* Área de membros no painel (.mbly-sw) */
