.switch-wrapper {
  padding: 6px;
  border: 1px solid var(--accent-color);
  border-radius: 37px;
}

.switch {
  position: relative;
  display: flex;
  align-items: center;
}

.switch:after {
  content: "";
  position: absolute;
  width: 50%;
  top: 0;
  transition: left cubic-bezier(.88, -.35, .565, 1.35) .4s;
  border-radius: 27.5px;
  box-shadow: 0 2px 15px 0 rgba(0, 0, 0, .1);
  background-color: var(--accent-color);
  height: 100%;
  z-index: 0;
}

.switch.left:after {
  left: 0;
}

.switch.right:after {
  left: 50%;
}

.switch > button {
  display: flex;
  font-size: 16px;
  font-weight: 500;
  justify-content: center;
  text-align: center;
  color: var(--accent-color);
  padding: 8px 0;
  min-width: 152px;
  border-radius: 24px;
  cursor: pointer;
  transition: all 300ms ease;
  z-index: 1;
}

.switch > button.active {
  font-weight: 500;
  color: var(--primary-text-color);
  box-shadow: 0 0 6px 0 #00000005;
}
