/* Hide element visually, keeping it focusable (with keyboard) and available for screen-readers */
.ToggleSwitch {
  /* Set color on root of component. It can be overridden after the @include */
  color: var(--colorsTextDefault, #141414);
  /* Make sure font-family goes across entire component */
  font-family: "Nunito Sans", sans-serif;
  box-sizing: border-box;
  display: inline-block;
}
.ToggleSwitch + .FormField__addons {
  margin-left: 54px;
}

.ToggleSwitch--fitted.ToggleSwitch,
.ToggleSwitch--fitted .ToggleSwitch__html-label {
  margin-left: 42px;
}

.ToggleSwitch--disabled {
  opacity: 0.4;
}

/** Hide the HTML checkbox input. .ToggleSwitch__element is the visual the user sees. */
.ToggleSwitch__input {
  height: 1px;
  opacity: 0;
  position: absolute;
  width: 1px;
  z-index: -1;
}

.ToggleSwitch__element {
  background: var(--colorsSurfaceGreyStrong, #dfe0e1);
  border-radius: 13px;
  box-sizing: border-box;
  display: inline-flex;
  flex-shrink: 0;
  height: 23px;
  position: relative;
  transition: all cubic-bezier(0.4, 0, 0.2, 1) 100ms 0ms;
  width: 42px;
}
.ToggleSwitch__element::before {
  background: var(--colorsSurfaceDefault, white);
  border-radius: 100%;
  box-shadow: 0 2px 8px rgba(20, 20, 20, 0.1);
  content: "";
  height: 17px;
  left: 3px;
  position: absolute;
  top: 3px;
  transition: all cubic-bezier(0.4, 0, 0.2, 1) 100ms 0ms;
  width: 17px;
}
.ToggleSwitch--fitted .ToggleSwitch__element {
  align-items: center;
  margin: 0;
}
.ToggleSwitch:hover .ToggleSwitch__element {
  background: var(--colorsSurfaceGreyStronger, #bcbcbd);
}
.ToggleSwitch--disabled .ToggleSwitch__element, .ToggleSwitch--disabled:hover .ToggleSwitch__element {
  background: var(--colorsSurfaceGreyStrong, #dfe0e1);
}
.ToggleSwitch__input:checked + .ToggleSwitch__element, .ToggleSwitch--checked .ToggleSwitch__element {
  background: var(--colorsStatusSuccess, #007a4d);
}
.ToggleSwitch__input:checked + .ToggleSwitch__element::before, .ToggleSwitch--checked .ToggleSwitch__element::before {
  left: 22px;
}
.ToggleSwitch:hover .ToggleSwitch__input:checked + .ToggleSwitch__element, .ToggleSwitch:hover .ToggleSwitch--checked .ToggleSwitch__element {
  background: var(--colorsStatusSuccessStrong, #007a4d);
}
.ToggleSwitch--disabled .ToggleSwitch__input:checked + .ToggleSwitch__element, .ToggleSwitch--disabled:hover .ToggleSwitch__input:checked + .ToggleSwitch__element, .ToggleSwitch--disabled .ToggleSwitch--checked .ToggleSwitch__element, .ToggleSwitch--disabled:hover .ToggleSwitch--checked .ToggleSwitch__element {
  background: var(--colorsSurfaceDisabled, #606162);
}
.ToggleSwitch--focus-visible:focus-within .ToggleSwitch__element {
  box-shadow: 0 0 0 3px var(--colorsFocusRingPrimary, #a9d1ff);
}

.Label.ToggleSwitch__label {
  font-size: 16px;
  font-weight: normal;
  margin-left: 12px;
  transition: all cubic-bezier(0.4, 0, 0.2, 1) 100ms 0ms;
  color: var(--colorsTextDefault, #141414);
  /* ToggleSwitch's height is exactly 1px taller than the standard label */
  margin-top: 1px;
}

.ToggleSwitch__html-label {
  align-items: baseline;
}
.ToggleSwitch .ToggleSwitch__html-label {
  cursor: pointer;
  display: flex;
}
.ToggleSwitch--fitted .ToggleSwitch__html-label {
  margin-left: -42px;
}
.ToggleSwitch--disabled .ToggleSwitch__html-label {
  cursor: not-allowed;
}

/* Proper baseline alignment in case of inline usage */
:not(.Togglebox__control) > .ToggleSwitch .ToggleSwitch__element {
  top: 6px;
  margin-top: -6px;
  margin-bottom: -6px;
}

/*# sourceMappingURL=ToggleSwitch.css.map */
