.toggle {
  position: relative;
  display: inline-block;
  width: calc(2em + 4px);
  height: calc(1em + 4px);
}

.toggle input {
  opacity: 0;
  width: 0;
  height: 0;
}

.toggle-button {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #b34848;
  transition: .3s;
  border-radius: 1em;
}

.toggle-button::before {
  position: absolute;
  content: "";
  height: 1em;
  width: 1em;
  left: 2px;
  bottom: 2px;
  background-color: white;
  transition: .3s;
  border-radius: 1em;
}

.setting-description {
  user-select: none;
  display: inline-block;
  min-width: 100%;
}

input:disabled + .toggle-button {
  background-color: #a2aaa0;
  cursor: default;
}

input:checked + .toggle-button {
  background-color: #20ab20;
}

input:checked + .toggle-button::before {
  transform: translateX(1em);
}

.table__settings td:nth-child(2) {
  width: 100%;
}

.table__settings td {
  vertical-align: middle;
}