.tou-control~label {
  background-color: #fff;
  width: 45px;
  height: 15px;
  display: block;
  margin: auto;
  border-radius: 1rem;
  position: relative;
}

.tou-control~label:before {
  content: "";
  width: 20px;
  height: 20px;
  display: block;
  background-color: #aaa;
  position: absolute;
  border-radius: 100%;
  transform: translateY(-50%) translateX(0%);
  top: 50%;
  left: 0%;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.23);
  transition-duration: 0.2s;
}

.tou-control:checked~label:before {
  background-color: #008458;
  transform: translateY(-50%) translateX(calc(100% + 5px));
}

.tou-control {
  display: none;
}

.tou-slider {
  height: 13px;
  width: 100%;
  border-radius: 1rem;
  background-color: rgba(244, 202, 93, 0.4);
  display: flex;
  position: relative;
  justify-content: space-evenly;
}

.tou-slider:before {
  content: "";
  background-color: #f3c95c;
  transform: translateY(-50%);
  top: 50%;
  left: 0%;
  position: absolute;
  height: 13px;
  width: var(--tou-value);
  max-width: 100%;
  border-radius: 1rem;
  transition-duration: 0.2s;
}

.tou-slider span {
  height: 25px;
  border-radius: 1rem;
  width: 5px;
  background-color: #1e784f;
  transform: translateY(-50%);
  top: 50%;
  position: relative;
}

.tou-value {
  margin-top: 4rem;
  font-size: 2.5rem;
  font-weight: bold;
  color: #1e784f;
}

.tou-value:after {
  content: " of average household usage";
}

.tou-input {
  background-color: #fff !important;
  border: 1px solid #cdcdcd !important;
  box-shadow: none !important;
}

.tou-input[readonly] {
  border: none !important;
  background: none !important;
  padding: 0;
  font-size: 1.5rem;
  font-weight: bold;
}
