.nz-toggle-wrap {
  display: inline-block;
  padding: 3px;
  margin: 5px 0 0;
  -webkit-border-radius: 20px;
  border-radius: 20px;
  position: relative;
  -webkit-transition: all 0.3s ease;
  transition: all 0.3s ease;
  max-width: 100%;
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  user-select: none;
}
.nz-toggle {
  display: block;
  width: 100%;
  height: 100%;
  position: relative;
  cursor: pointer;
}
/* Handle */
.nz-toggle-handle {
  -webkit-border-radius: 20px;
  border-radius: 20px;
  background-color: #fff;
  position: absolute;
  -webkit-transition: all 0.2s ease-out;
  transition: all 0.2s ease-out;
  -webkit-box-shadow: 0 2px 10px 0 rgba(0,0,0,0.25);
  box-shadow: 0 2px 10px 0 rgba(0,0,0,0.25);
}
.nz-toggle-tooltip {
  display: block;
  position: absolute;
  background: rgba(0,0,0,0.8);
  color: rgba(255,255,255,0.6);
  font-size: 80%;
  padding: 5px;
  -webkit-border-radius: 10px;
  border-radius: 10px;
  opacity: 0;
  -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=0)";
  filter: alpha(opacity=0);
  pointer-events: none;
  white-space: nowrap;
  -webkit-transition: all 0.3s ease;
  transition: all 0.3s ease;
  z-index: 1000;
}
.nz-toggle-tooltip:before {
  position: absolute;
  content: '';
  width: 0;
  height: 0;
  pointer-events: none;
}
.nz-toggle-tooltip span {
  -webkit-transition: all 0.2s ease;
  transition: all 0.2s ease;
}
.nz-toggle-tooltip span.active {
  color: #fff;
}
.nz-toggle-wrap.horizontal .nz-toggle-handle {
  height: 100%;
  width: 50%;
  top: 0;
  -webkit-transform: translateX(-50%);
  transform: translateX(-50%);
/* States */
}
.nz-toggle-wrap.horizontal.false .nz-toggle-handle {
  left: 0;
  -webkit-transform: translateX(0%);
  transform: translateX(0%);
}
.nz-toggle-wrap.horizontal.null .nz-toggle-handle {
  left: 50%;
  -webkit-transform: translateX(-50%);
  transform: translateX(-50%);
}
.nz-toggle-wrap.horizontal.true .nz-toggle-handle {
  left: 100%;
  -webkit-transform: translateX(-100%);
  transform: translateX(-100%);
}
.nz-toggle-wrap.horizontal .nz-toggle-tooltip {
  bottom: 100%;
  left: 50%;
  -webkit-transform: translate(-50%, 0px) scale(0.85);
  transform: translate(-50%, 0px) scale(0.85);
}
.nz-toggle-wrap.horizontal .nz-toggle-tooltip:before {
  left: 50%;
  top: 100%;
  -webkit-transform: translateX(-50%);
  transform: translateX(-50%);
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 5px solid rgba(0,0,0,0.8);
  border-bottom: 5px solid transparent;
}
.nz-toggle-wrap.tip-bottom .nz-toggle-tooltip {
  bottom: initial;
  top: 100%;
  left: 50%;
  -webkit-transform: translate(-50%, 0px) scale(0.85);
  transform: translate(-50%, 0px) scale(0.85);
}
.nz-toggle-wrap.tip-bottom .nz-toggle-tooltip:before {
  top: initial;
  left: 50%;
  bottom: 100%;
  -webkit-transform: translateX(-50%);
  transform: translateX(-50%);
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-bottom: 5px solid rgba(0,0,0,0.8);
  border-top: 5px solid transparent;
}
.nz-toggle-wrap.vertical .nz-toggle-handle {
  width: 100%;
  height: 50%;
  left: 0;
  top: 50%;
  -webkit-transform: translateY(-50%);
  transform: translateY(-50%);
}
.nz-toggle-wrap.vertical.false .nz-toggle-handle {
  top: 100%;
  -webkit-transform: translateY(-100%);
  transform: translateY(-100%);
}
.nz-toggle-wrap.vertical.null .nz-toggle-handle {
  top: 50%;
  -webkit-transform: translateY(-50%);
  transform: translateY(-50%);
}
.nz-toggle-wrap.vertical.true .nz-toggle-handle {
  top: 0%;
  -webkit-transform: translateY(0%);
  transform: translateY(0%);
}
.nz-toggle-wrap.vertical .nz-toggle-tooltip {
  left: 100%;
  top: 50%;
  -webkit-transform: translate(0, -50%) scale(0.85);
  transform: translate(0, -50%) scale(0.85);
  text-align: left;
}
.nz-toggle-wrap.vertical .nz-toggle-tooltip:before {
  top: 50%;
  right: 100%;
  -webkit-transform: translateY(-50%);
  transform: translateY(-50%);
  border-top: 5px solid transparent;
  border-bottom: 5px solid transparent;
  border-right: 5px solid rgba(0,0,0,0.8);
}
.nz-toggle-wrap.tip-left .nz-toggle-tooltip {
  left: initial;
  right: 100%;
  top: 50%;
  -webkit-transform: translate(0, -50%) scale(0.85);
  transform: translate(0, -50%) scale(0.85);
  text-align: right;
}
.nz-toggle-wrap.tip-left .nz-toggle-tooltip:before {
  right: initial;
  top: 50%;
  left: 100%;
  -webkit-transform: translateY(-50%);
  transform: translateY(-50%);
  border-top: 5px solid transparent;
  border-bottom: 5px solid transparent;
  border-left: 5px solid rgba(0,0,0,0.8);
  border-right: 5px solid transparent;
}
.nz-toggle-wrap.square {
  -webkit-border-radius: 2px;
  border-radius: 2px;
}
.nz-toggle-wrap.square .nz-toggle-handle {
  -webkit-border-radius: 2px;
  border-radius: 2px;
}
.nz-toggle-wrap:hover .nz-toggle-tooltip {
  opacity: 1;
  -ms-filter: none;
  filter: none;
}
.nz-toggle-wrap:hover.horizontal .nz-toggle-tooltip {
  -webkit-transform: translate(-50%, -7px) scale(1);
  transform: translate(-50%, -7px) scale(1);
}
.nz-toggle-wrap:hover.vertical .nz-toggle-tooltip {
  -webkit-transform: translate(7px, -50%) scale(1);
  transform: translate(7px, -50%) scale(1);
}
.nz-toggle-wrap:hover.horizontal.tip-bottom .nz-toggle-tooltip {
  -webkit-transform: translate(-50%, 7px) scale(1);
  transform: translate(-50%, 7px) scale(1);
}
.nz-toggle-wrap:hover.vertical.tip-left .nz-toggle-tooltip {
  -webkit-transform: translate(-7px, -50%) scale(1);
  transform: translate(-7px, -50%) scale(1);
}
