.switch-row {
  display: flex;
  gap: var(--space-12);
  align-items: center;
  width: calc(100% + 2 * var(--bleed, 0px));
  min-height: 56px;
  margin: 0 calc(-1 * var(--bleed, 0px));
  padding: var(--space-6) var(--space-16);
  font: inherit;
  font-size: var(--font-size-body);
  color: var(--text);
  text-align: left;
  cursor: pointer;
  background: var(--surface);
  border: 0;
  border-top: 1px solid var(--border-soft);
}

.switch-row:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}

.switch-row__text {
  display: flex;
  flex: 1;
  flex-direction: column;
}

.switch-row__note {
  font-size: var(--font-size-badge);
  font-weight: 600;
  color: var(--warn-text);
}

.switch-row__track {
  position: relative;
  flex: none;
  width: 52px;
  height: 32px;
  background: var(--switch-off);
  transition: background var(--duration);
}

.switch-row__knob {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 26px;
  height: 26px;
  background: var(--surface);
  box-shadow: var(--shadow-knob);
  transition: left var(--duration);
}

.switch-row[aria-checked="true"] .switch-row__track {
  background: var(--primary);
}

.switch-row[aria-checked="true"] .switch-row__knob {
  left: 23px;
}
