x-switch {
  display: flex;
  position: relative;
  align-items: start;
  justify-content: start;
  transition: 0.3s;
  outline: none;
}
x-switch.loading .loading-indicator {
  opacity: 1;
  z-index: auto;
  visibility: visible;
}
x-switch .loading-indicator {
  width: 1em;
  height: 1em;
  position: relative;
  color: inherit;
  display: inline-block;
  box-sizing: content-box;
  animation: cycle 0.8s infinite linear;
  padding: 0px 1rem;
  opacity: 0;
  margin: -0.5em;
  z-index: -1;
  transition: all 0.3s;
  transition-timing-function: ease-in;
}
x-switch .loading-indicator:after {
  content: " ";
  display: block;
  width: 2em;
  height: 2em;
  box-sizing: border-box;
  transform-origin: 0em 0em;
  transform: translateZ(0) scale(0.5);
  backface-visibility: hidden;
  border-radius: 50%;
  border: 0.3em solid currentColor;
  border-left-color: transparent;
}
x-switch.disabled {
  opacity: 0.6;
  cursor: not-allowed;
}
x-switch.disabled input,
x-switch.disabled select,
x-switch.disabled span,
x-switch.disabled label,
x-switch.disabled div,
x-switch.disabled textarea {
  cursor: not-allowed !important;
}
x-switch:hover {
  cursor: pointer;
}
x-switch.inverted {
  flex-direction: row-reverse;
}
x-switch.bordered {
  border: 1px solid var(--color-border-tinted, #d9d8db);
  border-radius: 0.5rem;
  padding: 0.5rem;
  margin-bottom: 0.5rem;
}
.is-dark-mode x-switch.bordered {
  color: var(--color-text-light, #FEFEFE);
  border: 1px solid var(--color-dark-tint, #414141);
  background-color: var(--color-black, #000000);
}
x-switch.bordered:hover {
  box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 0 3px rgba(var(--color-border-rgb, 200, 199, 204), 0.3);
}
x-switch.bordered.checked {
  border-color: var(--color-primary, #4275F2);
  outline: 0;
  box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 0 3px rgba(var(--color-primary-rgb, 66, 117, 242), 0.3);
}
x-switch.bordered span {
  margin-left: 0.6rem;
  margin-top: 0.6rem;
  margin-right: 1.1rem;
}
x-switch.bordered.inverted > div {
  padding-left: 0.5rem;
}
x-switch.bordered .loading-indicator {
  position: absolute;
  top: 1.75rem;
  left: 0.75rem;
}
x-switch.focus > label span {
  box-shadow: 0 0 0 1px var(--color-primary-tinted), 0 0 0 3px rgba(var(--color-primary-rgb, 66, 117, 242), 0.3) !important;
}
x-switch.loading {
  animation: loadingComponent 2s infinite;
}
x-switch.loading.checked .loading-indicator {
  left: 19px;
}
x-switch > label {
  cursor: pointer;
  position: relative;
  display: flex;
  align-items: center;
  height: 26px;
  margin: 0px;
}
x-switch > label span {
  width: 46px;
  height: 26px;
  position: relative;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: var(--color-border-tinted);
  border-radius: 13px;
  -webkit-transition: 0.4s;
  transition: 0.4s;
  box-shadow: 0 0 0 1px var(--color-border-tint);
}
.is-dark-mode x-switch > label span {
  background-color: var(--color-dark-tint);
  box-shadow: 0 0 0 1px var(--color-border-shaded);
}
x-switch > label span:hover, x-switch > label span:focus {
  box-shadow: 0 0 0 1px var(--color-primary-tinted), 0 0 0 3px rgba(var(--color-primary-rgb, 66, 117, 242), 0.3) !important;
}
x-switch > label span:before {
  position: absolute;
  content: "";
  height: 20px;
  width: 20px;
  left: 3px;
  bottom: 3px;
  background-color: var(--color-white);
  -webkit-transition: 0.4s;
  transition: 0.4s;
  border-radius: 10px;
  box-shadow: 0 0 6px rgba(0, 0, 0, 0.1);
}
x-switch > label span.checked {
  background-color: var(--color-primary);
  box-shadow: 0 0 0 1px var(--color-primary-tint);
}
x-switch > label span.checked:before {
  -webkit-transform: translateX(20px);
  -ms-transform: translateX(20px);
  transform: translateX(20px);
}
x-switch > label span.checked .loading-indicator {
  left: 19px;
}
x-switch > label .loading-indicator {
  color: var(--color-text, #4A4A4A);
  transition: 0.4s;
  position: absolute;
  top: 13px;
  left: -1px;
}
x-switch > div {
  display: flex;
  flex-direction: column;
  flex: 1;
  font-size: 1rem;
  padding-left: 1rem;
  justify-content: center;
  min-height: 26px;
}
x-switch > div:empty {
  display: none;
}
x-switch > div p:last-child {
  margin-bottom: 0;
}
x-switch > input {
  z-index: -1;
  width: 46px;
  height: 26px;
  position: absolute;
  top: 0.1rem;
  left: 0;
  opacity: 0;
}
x-switch:focus .switch {
  box-shadow: 0 0 0 1px var(--color-primary, #4275F2), 0 0 0 3px rgba(var(--color-primary-rgb, 66, 117, 242), 0.3) !important;
}