.toggleLabel {
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  width: auto;
}

.switch {
  position: relative;
  display: inline-block;
}

.big {
  width: 48px;
  min-width: 48px;
  height: 24px;
}

.small {
  width: 30px;
  min-width: 30px;
  height: 15px;
}

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

.slider {
  position: absolute;
  display: flex;
  align-items: center;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  transition: 0.4s;
  border-radius: 50px;
  padding: 0 5px;
  cursor: pointer;
}

.emojiBefore {
  justify-content: flex-end;
}

.emojiAfter {
  justify-content: flex-start;
}

.sliderBlue {
  background-color: var(--color-background-blue);
  border: 1px solid var(--color-airy-blue);
}

.sliderGreen {
  background: var(--color-toggle-grey);
  box-shadow: inset 0px 6px 8px 3px rgba(0, 0, 0, 0.1);
}

.slider:before {
  position: absolute;
  content: '';
  transition: 0.4s;
  border-radius: 50%;
}

.sliderBig:before {
  height: 16px;
  width: 16px;
  left: 4px;
}

.sliderSmall:before {
  height: 11px;
  width: 11px;
  left: 2px;
}

.sliderBlue:before {
  background-color: var(--color-elements-blue);
}

.sliderGreen:before {
  background: linear-gradient(180deg, white 0%, var(--color-very-light-grey) 100%);
}

input:checked + .sliderBlue {
  background-color: var(--color-elements-blue);
}

input:checked + .sliderGreen {
  background-color: var(--color-soft-green);
}

input:focus + .sliderBlue {
  box-shadow: 0 0 0 2pt Highlight;
}

input:checked + .slider:before {
  background-color: white;
}

input:checked + .sliderGreen:before {
  background: var(--color-very-light-grey);
}

input:checked + .sliderBig:before {
  transform: translateX(24px);
}

input:checked + .sliderSmall:before {
  transform: translateX(15px);
}

.toggleText {
  margin-left: 3px;
}
