.switch-button-cnt {
  position: relative;
}

.switch-button {
  background: #EFEFEF;
  border-radius: 30px;
  overflow: hidden;
  width: 240px!important;
  text-align: center;
  font-size: 18px;
  letter-spacing: 1px;
  color: #0F0F0F;
  position: relative;
  padding-right: 120px;
  position: relative;
  left: 50%;
  transform: translateX(-50%);
}

.switch-button-cnt div {
  width: auto;
}

.switch-button-checkbox {
  cursor: pointer;
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  z-index: 2;
}

.switch-button-label {
  display: flex;
  justify-content: space-between;
  color: white;
  transition: all 150ms linear;
}

.switch-button-label::before {
  transition: all 300ms linear;
}

.switch-button-checkbox:checked + .switch-button-label:before {
  transform: translateX(120px);
  background: #0F0F0F;
}

.switch-button-checkbox:checked + .switch-button-label {
  color: #0F0F0F;
}

.switch-button-checkbox:checked
  + .switch-button-label
  + #switch-button-label-span-2 {
  color: white;
}

.switch-button-checkbox:checked + .switch-button-label:before {
  transform: translateX(120px);
  background: #0F0F0F;
}

#switch-button-label-span-2 {
  position: absolute;
  left: auto;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  transition: all 150ms linear;
  width: 50%;
}

.switch-button-checkbox + .switch-button-label {
  position: relative;
  padding: 6px 0;
  display: block;
  user-select: none;
  pointer-events: none;
}
.switch-button-checkbox + .switch-button-label:before {
  content: "";
  background: #0F0F0F;
  height: 100%;
  width: 100%;
  position: absolute;
  left: 0;
  top: 0;
  border-radius: 30px;
  transform: translateX(0);
  transition: transform 300ms;
}
.switch-button-checkbox + .switch-button-label .switch-button-label-span {
  position: relative;
}

@media only screen and (max-width: 480px) { 
  .switch-button {
    margin: auto;
  }

  .chart_abstract {
    display: flex;
    justify-content: center;
  }

  .switch-button {
    width: 160px !important;
    font-size: 14px;
    padding-right: 70px;
    left: 0;
    transform: none;
  }

  .switch-button-checkbox:checked + .switch-button-label:before {
    transform: translateX(80px);
    background: #0F0F0F;
  }
}