/** Switch
 -------------------------------------*/

.um-toggle-switch label {
    vertical-align: middle;
}

.toggle-option input {
    display: none !important; 
}

.onoffswitch {
    position: relative;
    width: 40px;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    display: inline-block;
    vertical-align: middle;
}

.onoffswitch-checkbox {
    display: none !important;
}

.onoffswitch-label {
    display: block;
    overflow: hidden;
    cursor: pointer;
    height: 20px;
    padding: 0;
    line-height: 20px;
    border: 2px solid #CCCCCC;
    border-radius: 20px;
    background-color: #FFFFFF;
    transition: background-color 0.3s ease-in;
    max-width: none;
    margin-bottom: 0;
}

.onoffswitch-label:before {
    content: "";
    display: block;
    width: 25px;
    margin: 0px;
    background: #FFFFFF;
    position: absolute;
    top: 0;
    bottom: 0;
    right: 15px;
    border: 2px solid #CCCCCC;
    border-radius: 100%;
    transition: all 0.3s ease-in 0s;
}

.onoffswitch-checkbox:checked+.onoffswitch-label {
    background-color: #414A51;
}

.onoffswitch-checkbox:checked+.onoffswitch-label, .onoffswitch-checkbox:checked+.onoffswitch-label:before {
    border-color: #414A51;
}

.onoffswitch-checkbox:checked+.onoffswitch-label:before {
    right: 0px;
}

/*Fix for admin panel*/
.mp-settings-item .um-toggle-switch{
    margin-top: 5px;
    margin-left: 15px;
    display: inline-block;
}
.mp-settings-item .onoffswitch{
    margin-left: 10px;
}
.mp-settings-item .onoffswitch-label:before{
    width: 21px;
}

/*Radio*/
.um-custom-radio{
    position: relative;
    display: inline-block;
}
.um-custom-radio input[type=radio]{
  position: absolute;
  visibility: hidden;
  display: none;
}

.um-custom-radio label{
  display: block;
  position: relative;
  font-size: 1.35em;
  padding: 10px 15px 10px 75px;
  margin: 10px auto;
  height: 30px;
  line-height: 30px;
  z-index: 9;
  cursor: pointer;
  -webkit-transition: all 0.25s linear;
  transition: all 0.25s linear;
  color: #333;
  box-sizing: content-box;
}

.um-custom-radio .um-radio-check{
  display: block;
  position: absolute;
  border: 5px solid #AAAAAA;
  border-radius: 100%;
  height: 25px;
  width: 25px;
  top: 20px;
  left: 20px;
  z-index: 5;
  transition: border .25s linear;
  -webkit-transition: border .25s linear;
  box-sizing: content-box;
}

.um-custom-radio:hover .um-radio-check {
  border: 5px solid #414A51;
}

.um-custom-radio .um-radio-check::before {
  display: block;
  position: absolute;
    content: '';
  border-radius: 100%;
  height: 15px;
  width: 15px;
  top: 5px;
    left: 5px;
  margin: auto;
    transition: background 0.25s linear;
    -webkit-transition: background 0.25s linear;
}

.um-custom-radio input[type=radio]:checked ~ .um-radio-check {
  border: 5px solid #414A51;
}

.um-custom-radio input[type=radio]:checked ~ .um-radio-check::before{
  background: #414A51;
}

.um-custom-radio input[type=radio]:checked ~ label{
  color: #414A51;
  font-weight: 600;
}