.onoffswitch {
  position: relative;
  width: 96px;
  -webkit-user-select:none;
  -moz-user-select:none;
  -ms-user-select: none;
  user-select: none;
}
.onoffswitch-checkbox {
  display: none;
}
.onoffswitch-label {
  display: block; overflow: hidden; cursor: pointer;
  border-radius: 50px;
}
.onoffswitch-inner {
  display: block; width: 200%; margin-left: -100%;
  transition: margin 0.3s ease-in 0s;
}
.onoffswitch-inner:before,
.onoffswitch-inner:after {
  display: block; float: left;
  width: 50%; height: 32px;
  padding: 0 32px 0 0;
  line-height: 32px;
  font-size: 13px;
  color: #FFFFFF;
  text-align: center;
  font-family: Trebuchet, Arial, sans-serif;
  font-weight: bold;
  box-sizing: border-box;
}
.onoffswitch-inner:before {
  content: attr(data-text);
  padding-left: 10px;
  background-color: #FFFFFF;
  color: #96855C;
}
.onoffswitch-inner:after {
  content: "Publiek";
  padding-right: 14px;
  background-color: #FFFFFF;
  color: #094E96;
  text-align: right;
}
.onoffswitch-switch {
  display: block;
  width: 28px;
  height: 28px;
  margin: 0px;
  background: #094E96;
  position: absolute; top: 0; bottom: 0;
  right: 64px;
  border: 2px solid #FFFFFF; border-radius: 50px;
  transition: all 0.3s ease-in 0s; 
}
.onoffswitch-checkbox:checked + .onoffswitch-label .onoffswitch-inner {
  margin-left: 0;
}
.onoffswitch-checkbox:checked + .onoffswitch-label .onoffswitch-switch {
  right: 0px; 
  background-color: #96855C; 
}

/* hover */
.onoffswitch-label:hover .onoffswitch-switch {
  right: 62px;
}
.onoffswitch-checkbox:checked + .onoffswitch-label:hover .onoffswitch-switch {
  right: 2px;
}
.onoffswitch-label { 
  touch-action: pan-x;
}

/* RESPONSIVE MOBILE MENU */
#mobile-menu .onoffswitch {
  margin-top: 15px;
}
#mobile-menu .onoffswitch-inner:before,
#mobile-menu .onoffswitch-inner:after {
  background-color: #EEEEEE;
}
