/************ switch example two *************/
.switch {
  position: relative;
  display: inline-block;
  vertical-align: top;
  width: 60px;
  height: 30px;
  padding: 3px;
  /* margin: 0 10px 10px 0; */
  background: linear-gradient(to bottom, #eeeeee, #FFFFFF 25px);
  background-image: -webkit-linear-gradient(top, #eeeeee, #FFFFFF 25px);
  border-radius: 18px;
  box-shadow: inset 0 -1px white, inset 0 1px 1px rgba(0, 0, 0, 0.05);
  cursor: pointer;
}
.switch-input {
  position: absolute;
  top: 0;
  left: 0;
  opacity: 0;
}
.switch-label {
  position: relative;
  display: block;
  height: inherit;
  font-size: 10px;
  text-transform: uppercase;
  background: #eceeef;
  border-radius: inherit;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.12), inset 0 0 2px rgba(0, 0, 0, 0.15);
}
.switch-label:before, .switch-label:after {
  position: absolute;
  top: 50%;
  margin-top: -.5em;
  line-height: 1;
  -webkit-transition: inherit;
  -moz-transition: inherit;
  -o-transition: inherit;
  transition: inherit;
}
.switch-label:before {
  content: attr(data-off);
  right: 11px;
  color: #827345; /*#aaaaaa;*/
  text-shadow: 0 1px rgba(255, 255, 255, 0.5);
}
.switch-label:after {
  content: attr(data-on);
  left: 11px;
  color: #FFFFFF;
  text-shadow: 0 1px rgba(0, 0, 0, 0.2);
  opacity: 0;
}
.switch-input:checked ~ .switch-label {
  background: #E1B42B;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.15), inset 0 0 3px rgba(0, 0, 0, 0.2);
}
.switch-input:checked ~ .switch-label:before {
  opacity: 0;
}
.switch-input:checked ~ .switch-label:after {
  opacity: 1;
}
.switch-handle {
  position: absolute;
  top: 4px;
  left: 4px;
  width: 28px;
  height: 28px;
  background: linear-gradient(to bottom, #FFFFFF 40%, #f0f0f0);
  background-image: -webkit-linear-gradient(top, #FFFFFF 40%, #f0f0f0);
  border-radius: 100%;
  box-shadow: 1px 1px 5px rgba(0, 0, 0, 0.2);
}
.switch-handle:before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  margin: -6px 0 0 -6px;
  width: 12px;
  height: 12px;
  background: linear-gradient(to bottom, #eeeeee, #FFFFFF);
  background-image: -webkit-linear-gradient(top, #eeeeee, #FFFFFF);
  border-radius: 6px;
  box-shadow: inset 0 1px rgba(0, 0, 0, 0.02);
}
.switch-input:checked ~ .switch-handle {
  left: 34px;
  box-shadow: -1px 1px 5px rgba(0, 0, 0, 0.2);
}
 
/* Transition
========================== */
.switch-label, .switch-handle {
  transition: All 0.3s ease;
  -webkit-transition: All 0.3s ease;
  -moz-transition: All 0.3s ease;
  -o-transition: All 0.3s ease;
}
/* Flat design
====================*/
.switch-flat {
  padding: 0;
  background: #FFF;
  background-image: none;
  margin: 2px 0px 2px 0px;
}

.switch-flat .switch-label:after {
  color: #0088cc;
}
.switch-flat .switch-handle {
  top: 4px;
  left: 4px;
  background: #827345;/*#dadada;*/
  width: 22px;
  height: 22px;
  box-shadow: none;
}
/*** the dot color *****/
.switch-flat .switch-handle:before {
  background: #F7CE00; /*#eceeef; */
}

/*&&&&&&&&&&&& Background-color &&&&&&&&&&& */
/**** UNchecked *****/
.switch-flat .switch-label {
  background: #FFF;
  border: solid 2px #C8A43B;/*#eceeef;*/
  box-shadow: none;
}
/**** checked *****/
.switch-flat .switch-input:checked ~ .switch-label {
  background: #FFF;
  border-color: #0088cc;
}
/*&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&& */

/*&&&&& the dot border color &&&&&&&&&&&&&&&& */
.switch-flat .switch-input:checked ~ .switch-handle {
  left: 34px;
  background: #0088cc;
  box-shadow: none;
}
/* ======    addded (the dot color when checked) =========*/
.switch-flat .switch-input:checked ~ .switch-handle:before {
  background: #FFF; /*#eceeef;*/
}


/********* gender switch **************/
.switch-gender{
  margin:0px;
  padding: 0px;
  background: #FFF;
  vertical-align: middle;
}
.switch-gender .switch-label {
  background: #ddd;
  border: solid 2px #666;/*#eceeef;*/
  box-shadow: none;
}
/**** checked *****/
.switch-gender .switch-input:checked ~ .switch-label {
  background: #FFEBEB;
  border-color: #FF88cc;
  box-shadow: none;
}
.switch-gender .switch-handle {
  top: 4px;
  left: 4px;
  background: #666;
  width: 22px;
  height: 22px;
  box-shadow: none;
}
.switch-gender .switch-input:checked ~ .switch-handle {
  left: 34px;
  background: #D44496;
  box-shadow: none;
}
.switch-gender .switch-handle:before {
  background: #F7CE00; /*#eceeef; */
}
.switch-gender .switch-input:checked ~ .switch-handle:before {
  background: #FFF6FB; /*#eceeef;*/
}
.switch-gender .switch-label:after {
  color: #B93B83;
}
.switch-gender .switch-label:before{
  color:#4C4C4C;
}
.switch-gender .switch-label:before {
  content: "\e040";/*attr(data-off)*/
  font-family: "icomoon";
  font-size:1.8em;
  right: 7px;
  top: 12px;
  color: #827345; /*#aaaaaa;*/
  text-shadow: 0 1px rgba(255, 255, 255, 0.5);
}
.switch-gender .switch-label:after {
  content: "\e041";/*attr(data-on)*/
  font-family: "icomoon";
  font-size:1.8em;
  left: 7px;
  top: 12px;
  text-shadow: 0 1px rgba(0, 0, 0, 0.2);
  opacity: 0;
}