.container {
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  vertical-align: top;
  position: relative;
}

.label {
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  vertical-align: top;
  position: relative;
  user-select: none;
}

.label[data-disabled] {
  opacity: 0.4;
}

.root {
  display: inline-flex;
  margin: 0;
  padding: 0;
  height: 20px;
  width: 34px;
  flex-shrink: 0;
  cursor: pointer;
  align-items: center;
  border-radius: 9999px;
  border-width: 2px;
  border-style: solid;
  border-color: transparent;
  transition-property: background-color, border-color, color, fill, stroke;
  transition-duration: 150ms;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
}
.root:focus-visible {
  outline: 2px solid transparent;
  outline-offset: 2px;
  box-shadow:
    0 0 0 2px white,
    0 0 0 4px var(--theme-accent-color, var(--theme-colors-blue-500));
}
.root:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}
.root[data-state="checked"] {
  background-color: var(--theme-accent-color, var(--theme-colors-blue-500));
}
.root[data-state="unchecked"] {
  background-color: var(--theme-colors-gray-300);
}

.thumb {
  pointer-events: none;
  display: block;
  height: 1rem;
  width: 1rem;
  border-radius: 9999px;
  background-color: white;
  box-shadow:
    0 10px 15px -3px rgb(0 0 0 / 0.1),
    0 4px 6px -4px rgb(0 0 0 / 0.1);
  transition-property: transform;
  transition-duration: 150ms;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
}
.thumb[data-state="checked"] {
  transform: translateX(0.875rem);
}
.thumb[data-state="unchecked"] {
  transform: translateX(0);
}
