.admin-light-theme [role="switch"] {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  direction: ltr;
  box-sizing: border-box;
  overflow: hidden;
  padding: 0;
  isolation: isolate;
}

.admin-light-theme [role="switch"]:focus-visible {
  outline: none;
  box-shadow: inset 0 0 0 2px #2563eb !important;
}

.admin-light-theme [role="switch"] > span {
  position: absolute;
  top: 50%;
  right: auto;
  left: 2px;
  display: block;
  flex: none;
  margin: 0;
  transform: translateY(-50%) !important;
  translate: none !important;
  transition: left 160ms ease, right 160ms ease, transform 160ms ease;
}

.admin-light-theme [role="switch"][data-state="checked"] > span,
.admin-light-theme [role="switch"][aria-checked="true"] > span {
  right: 2px;
  left: auto;
}

@media (prefers-reduced-motion: reduce) {
  .admin-light-theme [role="switch"] > span {
    transition-duration: 1ms;
  }
}
