.reportToolToggle {
  display: inline-flex;
  padding: em(8px);
  position: relative;
  z-index: 1;
  border-radius: 4px;
  overflow: hidden;
  user-select: none;
  cursor: pointer;
  white-space: nowrap;

  &-knob {
    position: absolute;
    height: em(22px);
    width: em(22px);
    border-radius: 4px;
    background-color: #fff;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg width='14' height='20' viewBox='0 0 14 20' xmlns='http://www.w3.org/2000/svg'%3e%3cg stroke='%23C4CED9' stroke-width='2' fill='none' fill-rule='evenodd' stroke-linecap='square'%3e%3cpath d='M1.353 1.742v16.91M7 1.742v16.91M12.647 1.742v16.91'/%3e%3c/g%3e%3c/svg%3e");
    background-position: center;
    background-size: em(10px);
    border: 1px solid #A3AEBB;
    background-repeat: no-repeat;
    left: em(8px);
    top: em(6px);
    z-index: 1;
    transition: .3s;
  }

  &-text {
    color: #fff;
    font-weight: 500;
    font-size: em(15px);
    transition: .3s;
  }

  &-on {
    margin-right: em(10px);
    opacity: 0;
    visibility: hidden;
  }

  & > input { display: none; }
  & > input ~ &-text:before {
    content: "";
    position: absolute;
    left: 0;
    z-index: -1;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: #7B7F88;
    transition: .3s;
  }

  & > input:checked ~ &-text:before { background-color: $ctaBlue; }

  & > input:checked ~ &-on {
    opacity: 1;
    visibility: visible;
  }

  & > input:checked ~ &-off {
    opacity: 0;
    visibility: hidden;
  }

  & > input:checked ~ &-knob {
    left: calc(100% - #{em(30px)});
  }

  &[for="connectType"] {
    height: 39px;
    align-items: center;
    // stylelint-disable-next-line
    .reportToolToggle-knob {
      top: 8px;
    }
  }
}

