/**
 * Applies the scrollbar theme to a selector.
 */
ac-toggle {
  display: inline-block;
}
ac-toggle .ac-toggle__container {
  display: flex;
  align-items: center;
}
ac-toggle .ac-toggle__container .ac-toggle__label {
  margin: 0;
  padding: 0 0 0 8px;
  color: var(--color-neutral-darker, #646464);
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
  user-select: none;
}
ac-toggle .ac-toggle__native {
  display: none;
}
ac-toggle .ac-toggle__custom {
  display: flex;
  position: relative;
  align-items: center;
  min-width: 40px;
  max-width: 40px;
  height: 20px;
  transition: ease-in-out 0.05s;
  border-radius: 10px;
  background-color: var(--color-neutral-light, #E6E6E6);
  cursor: pointer;
}
ac-toggle .ac-toggle__custom:before {
  content: "";
  position: absolute;
  width: 12px;
  height: 12px;
  margin: 0 4px;
  transition: ease-in-out 0.05s;
  border-radius: 100%;
  background-color: var(--color-neutral-contrast, #FFFFFF);
}

ac-toggle .ac-toggle__native:checked + .ac-toggle__custom {
  background-color: var(--color-primary-normal, #00466F);
}
ac-toggle .ac-toggle__native:checked + .ac-toggle__custom:before {
  transform: translateX(20px);
}
ac-toggle .ac-toggle__native:checked + .ac-toggle__custom + .ac-toggle__label {
  color: var(--color-primary-normal, #00466F);
}

ac-toggle.ac-toggle--disabled {
  cursor: not-allowed;
}
ac-toggle.ac-toggle--disabled .ac-toggle__container {
  pointer-events: none;
}
ac-toggle.ac-toggle--disabled .ac-toggle__label {
  color: var(--color-neutral-normal, #C8C8C8);
}
ac-toggle.ac-toggle--disabled .ac-toggle__custom {
  border-color: var(--color-neutral-light, #E6E6E6);
  background: var(--color-neutral-lighter, #F5F5F5);
}
ac-toggle.ac-toggle--disabled .ac-toggle__native:checked + .ac-toggle__custom {
  border-color: var(--color-neutral-normal, #C8C8C8);
  background: var(--color-neutral-normal, #C8C8C8);
}
ac-toggle.ac-toggle--disabled .ac-toggle__native:checked + .ac-toggle__custom + .ac-toggle__label {
  color: var(--color-neutral-dark, #A0A0A0);
}

ac-toggle.ac-toggle--label-left .ac-toggle__container {
  flex-direction: row-reverse;
}
ac-toggle.ac-toggle--label-left .ac-toggle__label {
  padding-right: 8px;
}
ac-toggle.ac-toggle--label-left .ac-toggle__helper-text {
  padding-right: 24px;
  padding-left: 0;
  text-align: right;
}