/**
 * Salaxy on/off UI-switch. Used in product cards etc.
 */

.salaxy-switch {
    background: @brand-danger;
    border: 1px solid #dfdfdf;
    position: relative;
    display: inline-block;
    box-sizing: content-box;
    overflow: visible;
    width: 32px;
    height: 16px;
    padding: 0px;
    margin: 9px 0 0 0;
    border-radius: 10px;
    cursor: pointer;
    box-shadow: rgb(223, 223, 223) 0px 0px 0px 0px inset;
    transition: 0.3s ease-out all;
    -webkit-transition: 0.3s ease-out all;
    top: -1px;
    small {
      background: #fff;
      border-radius: 100%;
      box-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
     
      position: absolute;
      top: 1px;
      left: 1px;
      transition: 0.3s ease-out all;
      -webkit-transition: 0.3s ease-out all;
      width: 14px;
      height: 14px
    } 
    &.checked {
      background: @brand-primary;
      border-color: @brand-primary;
      small {
          left: 17px;
      }
      .off {
          display: none;
      }
      .on {
          display: block;
      }
    }
    .switch-text {
        font-family: Arial, Helvetica, sans-serif;
        font-size: 13px;
    }
    .off {
        display: block;
        position: absolute;
        right: 10%;
        top: 21%;
        z-index: 0;
        color: white;
    }
    .on {
        display: none;
        z-index: 0;
        color: #fff;
        position: absolute;
        top: 21%;
        left: 9%;
    }
    &.disabled {
        opacity: .50;
        cursor: not-allowed;
    }
    &.switch-xl{
      width: 52px;
      height: 30px;
      border-radius: 20px;
      margin:0;
      &.checked{
        small{
          left: 22px;
        }
      }
      small{
        width: 30px;
        height: 30px;
        top: 0px;
        left: 0px;
      }
    }
    
}