.checkbox {
  width: 223px;
  height: 50px;
  background-color: #000;
  border-radius: 30px;
  position: relative;
  color: #000;
  overflow: hidden;
}
#checkbox_toggle {
  display: none;
}
.checkbox .toggle {
  width: 50%;
  height: 100%;
  position: absolute;
  border-radius: 30px;
  left: 0;
  cursor: pointer;
  background: #000;
  color: #fff;
  transition: 0.4s;
}
.checkbox .slide {
  width: 230px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-around;
  cursor: pointer;
}
.checkbox .slide .text {
  font-size: 16px;
  font-weight: 700;
  z-index: 100;
  cursor: pointer;
  color: #fff;
}
.check:checked + .checkbox .slide .toggle {
  background-color: #000;
  transform: translateX(113px);
  color: #fff;
}
.check:checked + .checkbox {
  background-color: #000;
  color: #fff;
}
.check:checked + .checkbox .slide .text {
  color: #fff;
}
.switch {
  font-size: 17px;
  position: relative;
  display: inline-block;
  width: 200px;
  height: 2.5em;
}
.slider {
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #fff;
  color: #000;
  font-weight: 600;
  border-radius: 30px;
  display: flex;
  justify-content: space-around;
  align-items: center;
}
.slider,
.slider:before {
  position: absolute;
  transition: 0.4s;
}
.slider:before {
  content: "Send";
  height: 90%;
  width: 48%;
  left: 2%;
  border-radius: 20px;
  background-color: #000;
  color: #fff;
  display: grid;
  align-content: center;
  justify-content: center;
}
.slider:after {
  content: "";
  position: absolute;
  top: -7px;
  left: -7px;
  right: -7px;
  bottom: -7px;
  border-radius: 1.71em;
  z-index: -1;
}
.switch input:checked + .slider {
  background-color: #fff;
  color: #000;
}
.switch input:checked + .slider:before {
  content: "Receive";
  transform: translateX(100%);
  color: #fff;
}
.switch input {
  display: none;
}
@media screen and (max-width: 768px) {
  .switch {
    font-size: 15px;
    position: relative;
    display: inline-block;
    width: 180px;
    height: 2.5em;
  }
}
