.grayscale-mode {
  filter: grayscale(1);
  filter: gray;
  -webkit-filter: grayscale(100%);
}

.tgl-colors-box {
  cursor: pointer;
  position: fixed;
  right: 7px;
  bottom: 12px;
  display: block;
  width: 80px;
  padding: 5px 5px 3px;
  background-color: #eceff1;
  border-radius: 7px;
  box-shadow: 0 3px 5px 0 rgba(0, 0, 0, 0.2);
  z-index: 10;

  -webkit-transition: -webkit-transform 0.2s ease;
  transition: transform 0.2s ease;
}

.tgl-colors-btn {
  position: relative;
  width: 52px;
  height: 20px;
  border-radius: 10px;
  border: 1px solid #ddd;
  box-shadow: inset 0 2px 2px 0 rgba(0, 0, 0, 0.2);
  overflow: hidden;
  margin: 0 auto;
}

.tgl-colors-elm {
  cursor: pointer;
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  border: none;
  outline: none;
  opacity: 0;
  z-index: 2;
}

.switch-colors-btn {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  border-radius: 8px;
  background-color: transparent;
  box-shadow: inset 0 2px 2px 0 rgba(0, 0, 0, 0.2);

  -webkit-transition: background-color 0.1s ease 0.2s;
  transition: background-color 0.1s ease 0.2s;
}

.switch-colors-btn:before {
  content: "";
  display: block;
  position: absolute;
  right: 1px;
  top: 1px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background-color: #fff;
  box-shadow: 2px 0 3px 0 rgba(0, 0, 0, 0.1);

  -webkit-transition: -webkit-transform 0.3s ease;
	transition: transform 0.3s ease;

	-webkit-transform: translateX(-32px);
  transform: translateX(-32px);
}

.tgl-colors-txt {
  display: block;
  text-align: center;
  font-family: 'TrueMedium';
  font-size: 18px;
  line-height: 0.8em;
  margin-top: 6px;
  color: #333;
}

.tgl-colors-elm.actived + .switch-colors-btn {
  background-color: #6a6a6a;

  -webkit-transition: background-color 0.1s ease 0s;
  transition: background-color 0.1s ease 0s;
}

.tgl-colors-elm.actived + .switch-colors-btn:before {
	-webkit-transform: translateX(0px);
  transform: translateX(0px);
}

.fixed-tgl-box {
  position: absolute;
  height: 42px;
}

.tgl-colors-box.fixed-tgl-box.actived {
  -webkit-transform: translateY(-84px);
  transform: translateY(-84px);
}

.tgl-colors-box.fixed-tgl-box {
  right: 8px;
}

@media screen and (min-width : 480px) {
  .tgl-colors-box {
    width: 99px;
  }
}

@media screen and (min-width : 900px) {
  .tgl-colors-box {
    right: 10px;
  }

  .tgl-colors-box.fixed-tgl-box {
    right: 27px;
  }
}

@media screen and (min-width : 1200px) {
  .tgl-colors-box {
    bottom: 90px;
  }

  .tgl-colors-box.actived {
    -webkit-transform: translateY(-84px);
    transform: translateY(-84px);
  }
}