.cmn-toggle 
{
  position: absolute;
  margin-left: -9999px;
  visibility: hidden;
}

.cmn-toggle + label 
{
  display: block;
  position: relative;
  cursor: pointer;
  outline: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

input.cmn-toggle-round-flat + label 
{
  padding: 2px;
  width: 75px;
  height: 30px;
  background-color: #dddddd;
  -webkit-border-radius: 60px;
  -moz-border-radius: 60px;
  -ms-border-radius: 60px;
  -o-border-radius: 60px;
  border-radius: 60px;
  -webkit-transition: background 0.4s;
  -moz-transition: background 0.4s;
  -o-transition: background 0.4s;
  transition: background 0.4s;
}

input.cmn-toggle-round-flat + label:before, input.cmn-toggle-round-flat + label:after 
{
  display: block;
  position: absolute;
  content: "";
}

input.cmn-toggle-round-flat + label:before 
{
  top: 2px;
  left: 2px;
  bottom: 2px;
  right: 2px;
  background-color: #fff;
  -webkit-border-radius: 60px;
  -moz-border-radius: 60px;
  -ms-border-radius: 60px;
  -o-border-radius: 60px;
  border-radius: 60px;
  -webkit-transition: background 0.4s;
  -moz-transition: background 0.4s;
  -o-transition: background 0.4s;
  transition: background 0.4s;
}

input.cmn-toggle-round-flat + label:after 
{
  top: 4px;
  left: 4px;
  bottom: 4px;
  width: 22px;
  background-color: #dddddd;
  -webkit-border-radius: 52px;
  -moz-border-radius: 52px;
  -ms-border-radius: 52px;
  -o-border-radius: 52px;
  border-radius: 52px;
  -webkit-transition: margin 0.4s, background 0.4s;
  -moz-transition: margin 0.4s, background 0.4s;
  -o-transition: margin 0.4s, background 0.4s;
  transition: margin 0.4s, background 0.4s;
}

input.cmn-toggle-round-flat:checked + label 
{
  background-color: #3e5b6d;
}

input.cmn-toggle-round-flat:checked + label:after 
{
  margin-left: 45px;
  background-color: #3e5b6d;
}

.onoffswitch1 {
    -moz-user-select: none;
    clear: both;
    float: right;
    position: relative;
    width: 90px;
}
.onoffswitch1-checkbox {
    display: none;
}
.onoffswitch1-label {
    border: 2px solid rgba(255, 255, 255, 0.6);
    border-radius: 30px;
    cursor: pointer;
    display: block;
    overflow: hidden;
}
.onoffswitch1-inner {
    display: block;
    margin-left: -100%;
    transition: margin 0.3s ease-in 0s;
    width: 200%;
}
.onoffswitch1-inner::before, .onoffswitch1-inner::after {
    border-radius: 30px;
    box-sizing: border-box;
    color: white;
    display: block;
    float: left;
    font-family: Trebuchet,Arial,sans-serif;
    font-size: 14px;
    font-weight: bold;
    height: 26px;
    line-height: 26px;
    padding: 0;
    width: 50%;
}
.onoffswitch1-inner::before {
    background-color: transparent;
    border-radius: 30px 0 0 30px;
    color: #fff;
    content: "M";
    padding-left: 10px;
}
.onoffswitch1-inner::after {
    background-color: transparent;
    border-radius: 0 30px 30px 0;
    color: #fff;
    content: "F";
    padding-right: 10px;
    text-align: right;
}
.onoffswitch1-switch {
    background-color: #fff;
    border: 2px solid rgba(255, 255, 255, 0.6);
    border-radius: 30px;
    bottom: 0;
    box-shadow: 0 1px 1px white inset;
    display: block;
    height: 24px;
    margin: 0;
    position: absolute;
    right: 62px;
    top: 3px;
    transition: all 0.3s ease-in 0s;
    width: 24px;
}
.onoffswitch1-checkbox:checked + .onoffswitch1-label .onoffswitch1-inner {
    margin-left: 0;
}
.onoffswitch1-checkbox:checked + .onoffswitch1-label .onoffswitch1-switch {
    right: 4px;
}
