.wrapper {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  user-select: none;
}

.input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
  margin: 0;
}

.track {
  position: relative;
  display: inline-block;
  width: 32px;
  height: 18px;
  border-radius: 9px;
  background: var(--border);
  border: 1px solid var(--border);
  flex-shrink: 0;
  transition: background 0.2s, border-color 0.2s, box-shadow 0.2s;
}

.thumb {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: white;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s;
}

.input:checked + .track {
  background: var(--amber);
  border-color: var(--amber);
}

.input:checked + .track .thumb {
  transform: translateX(14px);
}

.input:focus-visible + .track {
  box-shadow: 0 0 0 3px var(--amber-bg);
  border-color: var(--amber);
}

.input:disabled + .track {
  opacity: 0.6;
}

.wrapper:has(.input:disabled) {
  cursor: not-allowed;
  opacity: 0.6;
}

.label {
  font-family: var(--font-body);
  font-size: 12px;
  color: var(--text-primary);
}
