.wdg-checkbox {
  display: inline-flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  vertical-align: middle;
  margin: 4px 8px;
  border: 0;
  background: none;
  padding: 0;
  font: inherit;
}

.wdg-checkbox.wide.dom {
  display: flex;
}

.wdg-checkbox > div:first-child {
  position: relative;
  width: 34px;
  height: 20px;
  overflow: visible;
  flex-grow: 0;
  margin: 2px 8px 2px 2px;
  order: -1;
}

.wdg-checkbox > div:first-child > div {
  content: ".";
  font-size: 0;
}

.wdg-checkbox.inverted > div:first-child {
  order: 1;
  margin: 2px 2px 2px 8px;
}

.wdg-checkbox.no-text.inverted > div:first-child,
.wdg-checkbox.no-text > div:first-child {
  margin: 2px;
}

.wdg-checkbox > div:last-child {
  order: 0;
  opacity: .6;
  white-space: nowrap;
  overflow-x: hidden;
  text-overflow: ellipsis;
  flex-grow: 1;
  text-align: left;
}

.wdg-checkbox.no-text > div:last-child {
  display: none;
}

.wdg-checkbox .bar {
  position: absolute;
  left: 0;
  top: 3px;
  width: 34px;
  height: 14px;
  border-radius: 7px;
}

.wdg-checkbox .btn {
  position: absolute;
  left: 0;
  top: 0;
  width: 20px;
  height: 20px;
  border-radius: 10px;
  transform: translateX(0);
  transition: all .1s;
}

.wdg-checkbox.checked .btn {
  transform: translateX(16px);
}

.wdg-checkbox.checked > div:last-child {
  opacity: 1;
}
