.switch {
  display: inline-block;
  height: 22px;
  position: relative;
  width: 75px;
  margin-bottom: 0;
  margin-left: 14px;
  margin-right: 4px;
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  -khtml-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none; }
  .switch .switcher-text {
    position: absolute;
    color: var(--white-color);
    font-size: 1em;
    right: 14px; }

.result-container {
  margin-left: 4px;
  width: 20px;
  height: 20px; }
  .result-container .Toastify__spinner {
    display: block; }

.switchBg {
  bottom: 0;
  left: 0;
  right: 0;
  top: 0;
  position: absolute;
  -webkit-transition: background-color .2s;
  -moz-transition: background-color .2s;
  transition: background-color .2s;
  border-radius: 34px;
  background-color: var(--warning-color); }
  .switchBg.isChecked {
    background-color: var(--main-color); }

.switchInput {
  width: 0;
  height: 0;
  overflow: hidden; }

.label.label-before-toggle {
  font-weight: 500;
  margin: 0 5px;
  vertical-align: middle;
  cursor: pointer; }

.switchHandle {
  bottom: -4px;
  width: 30px;
  height: 30px;
  position: absolute;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.6);
  border-radius: 50%;
  transform: translateX(0);
  outline: none;
  background-color: var(--white-color); }
  .switchHandle:active {
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.6), 0 0 0 10px hsla(var(--main-color-h), var(--main-color-s), var(--main-color-l), 0.3);
    transition: all, 0.1s; }
  .switchHandle.isChecked {
    transform: translateX(40px);
    background-color: var(--main-color); }
    .switchHandle.isChecked + .switcher-text {
      left: 12px;
      text-align: start;
      right: auto; }

.switcher-no-target {
  height: 22px;
  width: 20px;
  z-index: 2;
  position: absolute;
  left: 0; }

.DragSwitchItem label.switch {
  padding-left: 0; }

/* Print styles for DragSwitchItem */
@media print {
  .screen-only {
    display: none !important; }
  .print-only {
    display: flex !important;
    align-items: center;
    gap: 0.5em; }
  .print-icon {
    font-size: 1.2em; }
    .print-icon.print-check {
      color: var(--main-color); }
    .print-icon.print-cross {
      color: var(--warning-color); }
    .print-icon.print-unset {
      color: var(--darker-grey); }
  .DragSwitchItem .label {
    font-weight: 500;
    margin: 0 0.5em; } }

/* Screen styles - hide print elements */
@media screen {
  .DragSwitchItem .print-only {
    display: none !important; }
  .DragSwitchItem .screen-only {
    display: flex !important;
    align-items: center;
    flex-wrap: nowrap; } }
