.px-switch-canvas {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: -1;
  pointer-events: none;
}
.px-switch {
  --switch-height: var(--px-medium-compat-size);
  --switch-width: calc(var(--switch-height) * 2);
  --text-color: var(--px-neutral-10);
  --switch-button-size: calc(var(--switch-height) - 8px);
  --icon-size: calc(var(--switch-button-size) - 4px - 2px);
  min-height: var(--switch-height);
  min-width: var(--switch-width);
  background-color: transparent;
  color: var(--text-color);
  display: inline-flex;
  align-items: center;
  position: relative;
  transition: 0.25s;
  z-index: 0;
  cursor: pointer;
}
.px-switch.px-switch__small {
  font-size: 12px;
}
.px-switch.px-switch__medium {
  font-size: 14px;
}
.px-switch.px-switch__large {
  font-size: 15px;
}
.px-switch__active .px-switch-canvas-wrapper {
  padding-left: 8px;
  padding-right: calc(var(--switch-button-size) + 4px + 2px);
}
.px-switch__inactive .px-switch-canvas-wrapper {
  padding-right: 8px;
  padding-left: calc(var(--switch-button-size) + 4px + 2px);
}
.px-switch-canvas-wrapper {
  transition: 0.25s;
  box-sizing: border-box;
  border-color: transparent;
  border-width: var(--px-bit);
  border-style: solid;
  min-width: var(--switch-width);
  height: var(--switch-height);
  position: relative;
  display: flex;
  align-items: center;
}
.px-switch__small {
  --switch-height: var(--px-small-compat-size);
}
.px-switch__large {
  --switch-height: var(--px-large-compat-size);
}
.px-switch-inner {
  position: absolute;
  width: 0;
  height: 0;
  opacity: 0;
  margin: 0;
}
.px-switch__readonly {
  cursor: auto;
}
.px-switch__disabled {
  cursor: not-allowed;
}
.px-switch-button {
  position: absolute;
  height: var(--switch-button-size);
  width: var(--switch-button-size);
  display: flex;
  justify-content: center;
  align-items: center;
  top: 50%;
  left: 0;
  user-select: none;
  font-size: var(--icon-size);
}
.px-switch-button .px-switch-icon {
  width: 1em;
  height: 1em;
}
.px-switch-prefix-wrapper {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  margin-right: 4px;
}
.px-switch-prefix-wrapper__on {
  color: var(--px-primary-6);
}
.px-switch-suffix-wrapper {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  margin-left: 4px;
}
.px-switch-suffix-wrapper__on {
  color: var(--px-primary-6);
}
.px-switch-active-wrapper {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  color: var(--px-neutral-1);
  user-select: none;
}
.px-switch-inactive-wrapper {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  color: var(--px-neutral-1);
  user-select: none;
}
