/* Vchat 0.55.7 — Automations V2 switch isolation fix.
   Never draw the switch on the native checkbox itself: WordPress/browser
   checkbox pseudo-elements can leak into frontend modals and deform it. */
.vchat-frontend-app #vchat-modal.is-automation-v2 .v2-toggle-row{
  display:grid!important;
  grid-template-columns:44px minmax(0,1fr)!important;
  align-items:center!important;
  column-gap:12px!important;
  row-gap:0!important;
  min-height:64px!important;
  margin:12px 0!important;
  padding:11px 13px!important;
  border:1px solid #e4dfed!important;
  border-radius:15px!important;
  background:#fbfaff!important;
  cursor:pointer!important;
  overflow:hidden!important;
}
.vchat-frontend-app #vchat-modal.is-automation-v2 .v2-toggle-row.v2-master{
  background:#f0edfb!important;
  border-color:#d8d0ef!important;
}
/* Native input remains accessible/focusable, but cannot paint any native UI. */
.vchat-frontend-app #vchat-modal.is-automation-v2 .v2-toggle-row>input[type="checkbox"]{
  position:absolute!important;
  width:1px!important;
  height:1px!important;
  min-width:1px!important;
  min-height:1px!important;
  margin:-1px!important;
  padding:0!important;
  border:0!important;
  clip:rect(0 0 0 0)!important;
  clip-path:inset(50%)!important;
  overflow:hidden!important;
  white-space:nowrap!important;
  opacity:0!important;
  appearance:none!important;
  -webkit-appearance:none!important;
  box-shadow:none!important;
  background:transparent!important;
  outline:0!important;
}
.vchat-frontend-app #vchat-modal.is-automation-v2 .v2-toggle-row>input[type="checkbox"]::before,
.vchat-frontend-app #vchat-modal.is-automation-v2 .v2-toggle-row>input[type="checkbox"]::after{
  content:none!important;
  display:none!important;
}
/* Dedicated visual track. */
.vchat-frontend-app #vchat-modal.is-automation-v2 .v2-toggle-row>.v2-switch-ui{
  grid-column:1!important;
  grid-row:1!important;
  position:relative!important;
  display:block!important;
  width:44px!important;
  height:26px!important;
  min-width:44px!important;
  min-height:26px!important;
  max-width:44px!important;
  max-height:26px!important;
  margin:0!important;
  padding:0!important;
  border:1px solid #cfc9dc!important;
  border-radius:999px!important;
  background:#d8d3e7!important;
  box-shadow:inset 0 1px 2px rgba(32,27,51,.06)!important;
  overflow:hidden!important;
  transition:background .18s ease,border-color .18s ease,box-shadow .18s ease!important;
  pointer-events:none!important;
}
.vchat-frontend-app #vchat-modal.is-automation-v2 .v2-toggle-row>.v2-switch-ui>i{
  position:absolute!important;
  left:3px!important;
  top:3px!important;
  display:block!important;
  width:18px!important;
  height:18px!important;
  min-width:18px!important;
  min-height:18px!important;
  margin:0!important;
  padding:0!important;
  border:0!important;
  border-radius:50%!important;
  background:#fff!important;
  box-shadow:0 2px 6px rgba(29,24,47,.20)!important;
  transform:translateX(0)!important;
  transition:transform .18s ease!important;
}
.vchat-frontend-app #vchat-modal.is-automation-v2 .v2-toggle-row>input[type="checkbox"]:checked + .v2-switch-ui{
  border-color:#6754c4!important;
  background:#6754c4!important;
  box-shadow:inset 0 0 0 1px rgba(255,255,255,.05),0 5px 12px rgba(103,84,196,.14)!important;
}
.vchat-frontend-app #vchat-modal.is-automation-v2 .v2-toggle-row>input[type="checkbox"]:checked + .v2-switch-ui>i{
  transform:translateX(18px)!important;
}
.vchat-frontend-app #vchat-modal.is-automation-v2 .v2-toggle-row>input[type="checkbox"]:focus-visible + .v2-switch-ui{
  outline:3px solid rgba(103,84,196,.18)!important;
  outline-offset:2px!important;
}
.vchat-frontend-app #vchat-modal.is-automation-v2 .v2-toggle-row>.v2-toggle-copy{
  grid-column:2!important;
  grid-row:1!important;
  display:grid!important;
  gap:3px!important;
  min-width:0!important;
  margin:0!important;
  padding:0!important;
  color:#332e47!important;
  line-height:1.35!important;
}
.vchat-frontend-app #vchat-modal.is-automation-v2 .v2-toggle-row>.v2-toggle-copy>b{
  display:block!important;
  margin:0!important;
  color:#332e47!important;
  font-size:12px!important;
  line-height:1.25!important;
  font-weight:760!important;
}
.vchat-frontend-app #vchat-modal.is-automation-v2 .v2-toggle-row>.v2-toggle-copy>small{
  display:block!important;
  margin:0!important;
  color:#878096!important;
  font-size:10px!important;
  line-height:1.4!important;
  font-weight:500!important;
}
@media(max-width:640px){
  .vchat-frontend-app #vchat-modal.is-automation-v2 .v2-toggle-row{
    grid-template-columns:42px minmax(0,1fr)!important;
    column-gap:10px!important;
    min-height:62px!important;
    padding:10px 11px!important;
  }
  .vchat-frontend-app #vchat-modal.is-automation-v2 .v2-toggle-row>.v2-switch-ui{
    width:42px!important;min-width:42px!important;max-width:42px!important;
  }
  .vchat-frontend-app #vchat-modal.is-automation-v2 .v2-toggle-row>input[type="checkbox"]:checked + .v2-switch-ui>i{
    transform:translateX(16px)!important;
  }
}
