core-field-bool.sln-bool-xs{
  .mat-mdc-slide-toggle{
    min-height: calc(46px / 2);
    .mdc-form-field button{
      height: 18px;
      width: 55px;
    }
    .mdc-switch__icons{
      height: 67%;
      width: 67%;
      top: 3.2px;
    }
  }
  .sln-mat-slide-toggle-label{
    font-size: 12px;
    display: block;
  }
  .mdc-switch--unselected .mdc-switch__track,
  .mdc-switch:not(.mdc-switch--checked) .mdc-switch__track{
    background-size: 22px;
    background-repeat: no-repeat;
    background-position: bottom -1px right 3px;
  }
  .mdc-switch--selected .mdc-switch__track,
  .mdc-switch--checked .mdc-switch__track{
    background-size: 22px;
    background-repeat: no-repeat;
    background-position: bottom 0px right 25px;
  }
  .mdc-switch--selected .mdc-switch__handle-track,
  .mdc-switch--checked .mdc-switch__handle-track{
    transform: translateX(160%);
    width: 23px;
  }
}
core-field-bool.sln-bool-s{
  .mat-mdc-slide-toggle{
    min-height: calc(46px - 15px);
  }
  .mdc-form-field button{
    width: 62px;
    height: 22px;
  }
  .mdc-switch__icons{
    height: 90%;
    width: 90%;
    top: 1.1px;
  }
  .sln-mat-slide-toggle-label{
    font-size: 14px;
  }
  .mdc-switch--unselected .mdc-switch__track,
  .mdc-switch:not(.mdc-switch--checked) .mdc-switch__track{
    background-position: bottom 23px right 2px;
    background-size: 26px;
  }
  .mdc-switch--selected .mdc-switch__track,
  .mdc-switch--checked .mdc-switch__track{
    background-position: bottom 23px right 28px;
    background-size: 26px;
  }
  .mdc-switch--selected .mdc-switch__handle-track,
  .mdc-switch--checked .mdc-switch__handle-track{
    transform: translateX(180%);
    width: 23px;
  }
}
// core-field-bool.sln-bool-l{
//   .mat-mdc-slide-toggle{
//     min-height: calc(46px + 15px);
//   }
//   .sln-mat-slide-toggle-label{
//     font-size: 17px;
//   }
// }
// core-field-bool.sln-bool-xl{
//   .mat-mdc-slide-toggle{
//     min-height: calc(46px * 2);
//   }
//   .sln-mat-slide-toggle-label{
//     font-size: 20px;
//   }
// }

.sln-core-field-bool {
  margin: 5px 0;
}
.sln-mat-slide-toggle {
    display: flex !important;
    min-height: 45px;
    border-radius: 4px;
    border: 1.4px solid var(--GRAY);
    align-items: center;
    background: var(--WHITE);
    // margin-bottom: 15px;
    width: 100%;
    overflow: hidden;
    .mdc-label{
      font-size: 14px;
    }
    .mdc-form-field {
      display: flex;
      flex-direction: row-reverse;
      justify-content: space-between;
      align-items: center;
      width: 100%;
      padding: 0 7px;
      button {
        width: 70px;
        height: 30px;
        border-radius: 30px;
        background: var(--LIGHT-GRAY);
      }
    }
    .mdc-switch__icon{
      display: none;
    }
    .mdc-switch__icons{
      background: var(--WHITE);
      border-radius: 30px;
      box-shadow: 0 0 1px #0000001a, 1px 1px 4px #00000024;
    }
    
    .mdc-switch--selected .mdc-switch__icons,
    .mdc-switch--checked .mdc-switch__icons{ 
      right: 5px;
    } 
    
    .mat-slide-toggle.mat-checked .mat-slide-toggle-bar,
    .mat-mdc-slide-toggle.mat-mdc-slide-toggle-checked .mat-slide-toggle-bar{
      margin: 0;
    }  
  
    // selected
     .mdc-switch--selected .mdc-switch__handle-track,
     .mdc-switch--checked .mdc-switch__handle-track{
        transform: translateX(198%);
        width: 10px;
    }
    // YES
    .mdc-switch--selected .mdc-switch__track,
    .mdc-switch--checked .mdc-switch__track{
      background-repeat: repeat-y;
      background-position: bottom 25px right 28px;
    }
     .mdc-switch.mdc-switch--selected:enabled .mdc-switch__icon,
     .mdc-switch.mdc-switch--checked:enabled .mdc-switch__icon{
        fill: var(--WHITE);
    }
    // unselected
     .mdc-switch--unselected .mdc-switch__handle-track,
     .mdc-switch:not(.mdc-switch--checked) .mdc-switch__handle-track {
          transform: translateX(8%);
    }
     .mdc-switch.mdc-switch--unselected:enabled .mdc-switch__icon,
     .mdc-switch:not(.mdc-switch--checked):enabled .mdc-switch__icon{
      fill: var(--WHITE);
    }
    // NO
    .mdc-switch--unselected .mdc-switch__track,
    .mdc-switch:not(.mdc-switch--checked) .mdc-switch__track{
      background-repeat: repeat-y;
      background-position: bottom 25px right 2px;
    }
    // disabled
     .mdc-switch.mdc-switch--unselected:disabled .mdc-switch__icon,
     .mdc-switch:not(.mdc-switch--checked):disabled .mdc-switch__icon{
      display: none;
    }
     .mdc-switch.mdc-switch--unselected:disabled .mdc-switch__icons,
     .mdc-switch:not(.mdc-switch--checked):disabled .mdc-switch__icons{
        opacity: 1;
    }
    .mdc-switch.mdc-switch--selected:disabled .mdc-switch__icons,
    .mdc-switch.mdc-switch--checked:disabled .mdc-switch__icons{
      opacity: .8;
    }
    .mdc-switch:disabled .mdc-switch__track{
      opacity: .6;
    }

    .mdc-switch__track::before, .mdc-switch__track::after  {
      border: none;
    }
}