/*
 * DO NOT EDIT THIS FILE.
 * It's generated automatically by 'yarn build' command.
 * @preserve
 */

.h-boolean {
  position: relative;
  width: 1rem;
  height: 1rem;
}

.h-boolean__element {
  position: absolute;
  z-index: 1;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  cursor: pointer;
  opacity: 0;
  border: 0;
  -webkit-appearance: none;
  appearance: none;
}

.h-boolean__element[disabled] {
  cursor: not-allowed;
}

.h-boolean__icon {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  fill: var(--color-black);
}

.h-boolean__element:focus-visible ~ .h-boolean__icon {
  outline: var(--outline-size) solid var(--outline-color);
  outline-offset: var(--outline-offset);
}

[disabled] ~ .h-boolean__icon {
  opacity: 0.5;
}

.h-boolean__icon--throbber ~ * {
  display: none;
}

.h-boolean__element.error ~ .h-boolean__icon {
  fill: var(--color-danger);
}

.h-boolean__element:checked ~ .h-boolean__icon--empty {
  display: none;
}

.h-boolean__element:not(:checked) ~ .h-boolean__icon--filled {
  display: none;
}
